Add clang-tidy, fix some bugpron problems. (#7708)

* Add clang-tidy, fix some bugpron problems.

* Fix more issues

* Fix some more issues :))

* Minimal pr to just add clang-tidy

Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
Saman
2022-12-15 13:58:55 +08:00
committed by GitHub
parent 9927747d4e
commit 9ed76559df
2 changed files with 348 additions and 0 deletions

1
scripts/clang-tidy-git.sh Executable file
View File

@@ -0,0 +1 @@
run-clang-tidy -fix -extra-arg=-std=c++11 -extra-arg=-Wno-unknown-warning-option `git diff --name-only origin/HEAD`