-
Notifications
You must be signed in to change notification settings - Fork 184
/
.clang-tidy
125 lines (124 loc) · 3.93 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
Checks: '-*,
android-*,
-android-cloexec-fopen,
bugprone-*,
-bugprone-narrowing-conversions,
-bugprone-sizeof-expression,
-bugprone-signed-char-misuse,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-not-null-terminated-result,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-exception-escape,
-bugprone-suspicious-memory-comparison,
-bugprone-assignment-in-if-condition,
-bugprone-unhandled-self-assignment,
-bugprone-macro-parentheses,
-bugprone-undefined-memory-manipulation,
-bugprone-parent-virtual-call,
-bugprone-reserved-identifier,
cert-*,
-cert-str34-c,
-cert-err58-cpp,
-cert-dcl37-c,
-cert-dcl51-cpp,
-cert-err34-c,
-cert-msc30-c,
-cert-msc50-cpp,
-cert-dcl03-c,
-cert-exp42-c,
-cert-flp37-c,
-cert-oop54-cpp,
-cert-err33-c,
-cert-msc32-c,
-cert-msc51-cpp,
clang-analyzer-*,
-clang-analyzer-valist.Uninitialized,
-clang-analyzer-alpha.clone.CloneChecker,
-clang-analyzer-alpha.deadcode.UnreachableCode,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-analyzer-core.StackAddressEscape,
-clang-analyzer-deadcode.DeadStores,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-cplusplus.NewDelete,
-clang-analyzer-core.UndefinedBinaryOperatorResult,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-unix.cstring.NullArg,
-clang-analyzer-optin.performance.Padding,
-clang-analyzer-core.uninitialized.Assign,
-clang-analyzer-security.insecureAPI.rand,
-clang-analyzer-security.insecureAPI.strcpy,
-clang-analyzer-core.uninitialized.UndefReturn,
-clang-analyzer-core.DivideZero,
-clang-analyzer-core.NullDereference,
google-*,
-google-readability-avoid-underscore-in-googletest-name,
-google-readability-todo,
-google-runtime-int,
-google-readability-casting,
-google-readability-braces-around-statements,
-google-readability-namespace-comments,
-google-build-using-namespace,
-google-explicit-constructor,
-google-default-arguments,
-google-readability-function-size,
hicpp-*,
-hicpp-no-array-decay,
-hicpp-avoid-c-arrays,
-hicpp-vararg,
-hicpp-no-malloc,
-hicpp-special-member-functions,
-hicpp-use-emplace,
-hicpp-use-auto,
-hicpp-member-init,
-hicpp-deprecated-headers,
-hicpp-uppercase-literal-suffix,
-hicpp-signed-bitwise,
-hicpp-named-parameter,
-hicpp-braces-around-statements,
-hicpp-exception-baseclass,
-hicpp-explicit-conversions,
-hicpp-static-assert,
-hicpp-multiway-paths-covered,
-hicpp-use-equals-default,
-hicpp-function-size,
misc-*,
-misc-no-recursion,
-misc-const-correctness,
-misc-static-assert,
-misc-non-private-member-variables-in-classes,
-misc-unconventional-assign-operator,
-misc-redundant-expression,
performance-*,
-performance-unnecessary-value-param,
-performance-unnecessary-copy-initialization,
readability-*,
-readability-magic-numbers,
-readability-else-after-return,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-uppercase-literal-suffix,
-readability-isolate-declaration,
-readability-named-parameter,
-readability-simplify-boolean-expr,
-readability-suspicious-call-argument,
-readability-container-data-pointer,
-readability-braces-around-statements,
-readability-static-accessed-through-instance,
-readability-convert-member-functions-to-static,
-readability-redundant-member-init,
-readability-non-const-parameter,
-readability-inconsistent-declaration-parameter-name,
-readability-redundant-string-cstr,
-readability-make-member-function-const,
-readability-static-definition-in-anonymous-namespace,
-readability-function-size,
-readability-string-compare,
-readability-redundant-preprocessor'
CheckOptions:
- key: readability-function-cognitive-complexity.IgnoreMacros
value: 1
- key: readability-function-cognitive-complexity.Threshold
value: 299
- key: bugprone-reserved-identifier.AllowedIdentifiers
value: _FILE_OFFSET_BITS