NFC: Add clang-tidy config file

This makes sure that folks who use clang-tidy see consistent code analysis reports. This is especially helpful for those using IDEs with clang-tidy integration.

The config file is based on the LLVM `.clang-tidy` file: https://github.com/llvm/llvm-project/blob/main/.clang-tidy
This commit is contained in:
Egor Zhdan
2023-08-03 13:47:29 +01:00
parent 42cbacfd15
commit 080eeace70
2 changed files with 17 additions and 0 deletions

14
.clang-tidy Normal file
View File

@@ -0,0 +1,14 @@
# See https://clang.llvm.org/extra/clang-tidy/checks/list.html
Checks: '
-*,
llvm-*,
misc-*,
-misc-const-correctness,
-misc-unused-parameters,
-misc-non-private-member-variables-in-classes,
-misc-no-recursion,
-misc-use-anonymous-namespace,
-readability-qualified-auto,
-llvm-qualified-auto
'