-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
37 lines (36 loc) · 1.1 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Clang Tidy file, in YAML format, for reference regarding the checks and options available refer to:
# - clang-tidy-15 --help
# - https://releases.llvm.org/15.0.0/tools/clang/tools/extra/docs/clang-tidy/index.html
# - https://releases.llvm.org/15.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/list.html
Checks: >
-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
clang-analyzer-*,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-interfaces-global-init,
-cppcoreguidelines-avoid-magic-numbers,
misc-*,
portability-*,
performance-*,
readability-*,
-readability-identifier-length,
-readability-avoid-const-params-in-decls,
-readability-magic-numbers,
-readability-redundant-declaration
WarningsAsErrors: >
bugprone-*,
clang-analyzer-*,
cppcoreguidelines-*,
misc-*,
portability-*,
performance-*,
readability-*
HeaderFilterRegex: >
src/*
tests/tests/*
InheritParentConfig: true
CheckOptions:
readability-function-cognitive-complexity.Threshold: 35