-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-tidy
197 lines (189 loc) · 6.73 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
Checks: '-*,
bugprone-*,
-bugprone-bad-signal-to-kill-thread,
-bugprone-no-escape,
-bugprone-posix-return,
-bugprone-signal-handler,
cert-non-aliased-only-*,
cert-dcl21-cpp,
cert-dcl50-cpp,
cert-dcl58-cpp,
-cert-env33-c,
cert-err34-c,
cert-err52-cpp,
cert-err58-cpp,
cert-err60-cpp,
-cert-exp42-c,
cert-flp30-c,
-cert-flp37-c,
cert-mem57-cpp,
cert-msc50-cpp,
cert-msc51-cpp,
cert-oop57-cpp,
cert-oop58-cpp,
clang-analyzer-*,
clang-diagnostic-*,
-clang-diagnostic-gnu-zero-variadic-macro-arguments,
-clang-diagnostic-language-extension-token,
concurrency-*,
-concurrency-thread-canceltype-asynchronous,
cppcoreguidelines-non-aliased-only-*,
cppcoreguidelines-avoid-goto,
cppcoreguidelines-avoid-non-const-global-variables,
cppcoreguidelines-init-variables,
cppcoreguidelines-interfaces-global-init,
-cppcoreguidelines-macro-usage,
cppcoreguidelines-narrowing-conversions,
cppcoreguidelines-no-malloc,
-cppcoreguidelines-owning-memory,
cppcoreguidelines-prefer-member-initializer,
-cppcoreguidelines-pro-bounds-*,
-cppcoreguidelines-pro-type-*,
cppcoreguidelines-pro-type-const-cast,
cppcoreguidelines-pro-type-cstyle-cast,
cppcoreguidelines-pro-type-member-init,
cppcoreguidelines-pro-type-static-cast-downcast,
cppcoreguidelines-pro-type-vararg,
cppcoreguidelines-slicing,
cppcoreguidelines-special-member-functions,
cppcoreguidelines-virtual-class-destructor,
google-non-aliased-only-*,
google-build-explicit-make-pair,
google-build-namespaces,
google-build-using-namespace,
google-default-arguments,
google-explicit-constructor,
google-global-names-in-headers,
google-upgrade-googletest-case,
hicpp-non-aliased-only-*,
hicpp-exception-baseclass,
hicpp-multiway-paths-covered,
hicpp-signed-bitwise,
llvm-namespace-comment,
misc-*,
-misc-misplaced-const,
-misc-no-recursion,
modernize-*,
-modernize-avoid-c-arrays,
-modernize-return-braced-init-list,
-modernize-use-auto,
-modernize-use-trailing-return-type,
performance-*,
readability-*,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-identifier-length,
-readability-redundant-access-specifiers'
WarningsAsErrors: ''
HeaderFilterRegex: '.*'
ExtraArgsBefore: [
'-fms-extensions', '-fms-compatibility', '-D_CRT_USE_BUILTIN_OFFSETOF',
'-WCL4', '-Wpedantic', '-Wthread-safety', '-Wmicrosoft', '-Wdocumentation', '-Wdocumentation-pedantic',
'-fno-delayed-template-parsing', '/clang:-fcomment-block-commands=internal,hideinitializer',
'-DWIN32_LEAN_AND_MEAN=1', '-DNOMINMAX=1'
]
CheckOptions:
- key: bugprone-argument-comment.StrictMode
value: 1
- key: bugprone-assert-side-effect.AssertMacros
value: 'assert,_assert,_wassert,_ASSERT,_ASSERTE,_ASSERT_EXPR'
- key: bugprone-assert-side-effect.CheckFunctionCalls
value: 1
- key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression
value: 1
- key: bugprone-suspicious-enum-usage.StrictMode
value: 1
- key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
value: 1
- key: cppcoreguidelines-narrowing-conversions.PedanticMode
value: 1
- key: hicpp-multiway-paths-covered.WarnOnMissingElse
value: 1
- key: hicpp-signed-bitwise.IgnorePositiveIntegerLiterals
value: 1
- key: misc-throw-by-value-catch-by-reference.CheckThrowTemporaries
value: 0
- key: misc-unused-parameters.StrictMode
value: 1
- key: performance-inefficient-string-concatenation.StrictMode
value: 1
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: readability-identifier-naming.FunctionCase
value: aNy_CasE
- key: readability-identifier-naming.VariableCase
value: camelBack
- key: readability-identifier-naming.StaticVariableCase
value: camelBack
- key: readability-identifier-naming.StaticConstantCase
value: CamelCase
- key: readability-identifier-naming.StaticConstantPrefix
value: 'k'
- key: readability-identifier-naming.ConstexprVariableCase
value: CamelCase
- key: readability-identifier-naming.ConstexprVariablePrefix
value: 'k'
- key: readability-identifier-naming.ConstexprVariableIgnoredRegexp
value: '^is_[A-Za-z0-9_]+_v$'
- key: readability-identifier-naming.GlobalConstantCase
value: CamelCase
- key: readability-identifier-naming.GlobalConstantPrefix
value: 'k'
- key: readability-identifier-naming.ClassCase
value: aNy_CasE
- key: readability-identifier-naming.StructCase
value: aNy_CasE
- key: readability-identifier-naming.UnionCase
value: aNy_CasE
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.EnumConstantCase
value: CamelCase
- key: readability-identifier-naming.EnumConstantPrefix
value: 'k'
- key: readability-identifier-naming.ScopedEnumConstantCase
value: CamelCase
- key: readability-identifier-naming.ScopedEnumConstantPrefix
value: 'k'
- key: readability-identifier-naming.TypeAliasCase
value: aNy_CasE
- key: readability-identifier-naming.TypedefCase
value: aNy_CasE
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.MemberPrefix
value: 'm_'
- key: readability-identifier-naming.PublicMemberCase
value: camelBack
- key: readability-identifier-naming.PublicMemberPrefix
value: ''
- key: readability-identifier-naming.ClassMemberCase
value: camelBack
- key: readability-identifier-naming.ClassMemberPrefix
value: 's_'
- key: readability-identifier-naming.TemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.ValueTemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.ValueTemplateParameterPrefix
value: 'k'
- key: readability-identifier-naming.ParameterPackCase
value: camelBack
- key: readability-identifier-naming.ParameterPackSuffix
value: 's'
- key: readability-identifier-naming.MacroDefinitionCase
value: 'UPPER_CASE'
- key: readability-implicit-bool-conversion.AllowIntegerConditions
value: 1
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: 1
- key: readability-inconsistent-declaration-parameter-name.Strict
value: 1
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues
value: 1
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
value: 1
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
value: 1
- key: readability-uppercase-literal-suffix.NewSuffixes
value: 'L;LL;u;uL;uLL'