-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.clang-tidy
52 lines (49 loc) · 1.9 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# TODO: the indented lines below starting with a '-' indicate disabled checks. We want to have as few of these as possible.
Checks: '-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-exception-escape,
-bugprone-narrowing-conversions,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
clang-analyzer-*,
-clang-analyzer-security.insecureAPI.strcpy,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-analyzer-cplusplus.StringChecker,
cppcoreguidelines-*,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-prefer-member-initializer,
-cppcoreguidelines-narrowing-conversions,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-type-member-init,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-missing-std-forward,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-special-member-functions,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-type-vararg,
modernize-*,
-modernize-avoid-c-arrays,
-modernize-use-trailing-return-type,
performance-*,
-performance-unnecessary-value-param,
portability-*,
readability-*,
-readability-identifier-length,
-readability-named-parameter,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-function-cognitive-complexity,
-readability-avoid-unconditional-preprocessor-if'
HeaderFilterRegex: 'src/.*|examples/.*'
WarningsAsErrors: '*'
ExtraArgs: - -Wno-unknown-pragmas # TODO: remove this after switch to clang-tidy-18