Merge pull request #274 from shenlebantongying/staged

dev: add .clang-tidy
This commit is contained in:
xiaoyifang 2022-12-25 19:25:45 +08:00 committed by GitHub
commit 2a561cb404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
.clang-tidy Normal file
View file

@ -0,0 +1,32 @@
# https://clang.llvm.org/extra/clang-tidy/
---
Checks: >
-*
bugprone-*,
cert-*,
clang-analyzer-*,
clang-diagnostic-*,
cppcoreguidelines-*,
google-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-bugprone-reserved-identifier,
-cppcoreguidelines-owning-memory,
-google-default-arguments
-misc-non-private-member-variables-in-classes,
-misc-const-correctness,
-modernize-avoid-c-arrays,
-modernize-use-auto,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
-readability-magic-numbers,
-readability-function-cognitive-complexity,
CheckOptions:
- key: modernize-loop-convert.MinConfidence
value: reasonable
...