add clang tidy

This commit is contained in:
pantor
2024-10-05 16:47:03 +02:00
parent fddbfce5a3
commit 17ba53cb9e
2 changed files with 20 additions and 0 deletions

19
.clang-tidy Normal file
View File

@@ -0,0 +1,19 @@
Checks: >
-*,
bugprone-*,
google-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-google-readability-namespace-comments,
-google-runtime-int,
-google-runtime-references,
-misc-non-private-member-variables-in-classes,
-readability-named-parameter,
-readability-braces-around-statements,
-readability-magic-numbers
# Turn all the warnings from the checks above into errors.
WarningsAsErrors: ""

1
scripts/clang_tidy.sh Normal file
View File

@@ -0,0 +1 @@
clang-tidy test/test.cpp -- -Iinclude -Ithird_party/include