diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..211bb9b --- /dev/null +++ b/.clang-tidy @@ -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: "" diff --git a/scripts/clang_tidy.sh b/scripts/clang_tidy.sh new file mode 100644 index 0000000..95e549f --- /dev/null +++ b/scripts/clang_tidy.sh @@ -0,0 +1 @@ +clang-tidy test/test.cpp -- -Iinclude -Ithird_party/include