-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
62 lines (58 loc) · 2.45 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
53
54
55
56
57
58
59
60
61
62
Checks: '-*,
hicpp-braces-around-statements,
clang-analyzer-*,
-clang-analyzer-core.UndefinedBinaryOperatorResult,
-clang-analyzer-core.NonNullParamChecker,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-core.uninitialized.Assign,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-core.NullDereference,
-clang-analyzer-core.uninitialized.Branch,
-clang-analyzer-unix.Malloc,
bugprone-*,
-bugprone-unchecked-optional-access,
-bugprone-easily-swappable-parameters,
-bugprone-assignment-in-if-condition,
-bugprone-reserved-identifier,
-bugprone-narrowing-conversions,
-bugprone-switch-missing-default-case,
-bugprone-suspicious-include,
-bugprone-branch-clone,
-bugprone-signed-char-misuse,
-bugprone-implicit-widening-of-multiplication-result,
cppcoreguidelines-*,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-special-member-functions,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-pro-type-static-cast-downcast,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-narrowing-conversions,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-no-malloc,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-member-init,
-cppcoreguidelines-prefer-member-initializer'
# misc-include-cleaner
# misc-unused-parameters
WarningsAsErrors: '*'
CheckOptions:
- key: readability-function-cognitive-complexity.Threshold
value: 15
- key: readability-function-cognitive-complexity.DescribeBasicIncrements
value: false
- key: readability-function-size.LineThreshold
value: 100
- key: readability-function-size.StatementThreshold
value: 50
- key: cppcoreguidelines-avoid-do-while.IgnoreMacros
value: 'true'
FormatStyle: file