-
Notifications
You must be signed in to change notification settings - Fork 4
/
.clang-tidy
220 lines (218 loc) · 10.6 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
---
#Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,clang-diagnostic-*,clang-analyzer-*,bugprone*,cppcoreguidelines-*,misc-*,readability-*'
Checks: '-*,readability-identifier-naming'
#WarningsAsErrors: 'clang-diagnostic-*,clang-analyzer-*,-*,clang-diagnostic-*,clang-analyzer-*,bugprone-*,cppcoreguidelines-*,misc-*,readability-*'
HeaderFilterRegex: '*.h'
AnalyzeTemporaryDtors: false
FormatStyle: file
CheckOptions:
- key: cppcoreguidelines-no-malloc.Allocations
value: '::malloc;::calloc'
- key: cppcoreguidelines-no-malloc.Deallocations
value: '::free'
- key: cppcoreguidelines-no-malloc.Reallocations
value: '::realloc'
- key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader
value: ''
- key: cppcoreguidelines-pro-bounds-constant-array-index.IncludeStyle
value: '0'
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
value: '0'
- key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctions
value: '0'
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
value: '0'
- key: google-build-namespaces.HeaderFileExtensions
value: h,hh,hpp,hxx
- key: google-global-names-in-headers.HeaderFileExtensions
value: h,hh,hpp,hxx
- key: misc-argument-comment.StrictMode
value: '0'
- key: misc-assert-side-effect.AssertMacros
value: assert
- key: misc-assert-side-effect.CheckFunctionCalls
value: '0'
- key: misc-dangling-handle.HandleClasses
value: 'std::basic_string_view;std::experimental::basic_string_view'
- key: misc-definitions-in-headers.HeaderFileExtensions
value: ',h,hh,hpp,hxx'
- key: misc-definitions-in-headers.UseHeaderFileExtension
value: '1'
- key: misc-misplaced-widening-cast.CheckImplicitCasts
value: '0'
- key: misc-move-constructor-init.IncludeStyle
value: llvm
- key: misc-sizeof-expression.WarnOnSizeOfCompareToConstant
value: '1'
- key: misc-sizeof-expression.WarnOnSizeOfConstant
value: '1'
- key: misc-sizeof-expression.WarnOnSizeOfThis
value: '1'
- key: misc-string-constructor.LargeLengthThreshold
value: '8388608'
- key: misc-string-constructor.WarnOnLargeLength
value: '1'
- key: misc-suspicious-enum-usage.StrictMode
value: '0'
- key: misc-suspicious-missing-comma.MaxConcatenatedTokens
value: '5'
- key: misc-suspicious-missing-comma.RatioThreshold
value: '0.200000'
- key: misc-suspicious-missing-comma.SizeThreshold
value: '5'
- key: misc-suspicious-string-compare.StringCompareLikeFunctions
value: ''
- key: misc-suspicious-string-compare.WarnOnImplicitComparison
value: '1'
- key: misc-suspicious-string-compare.WarnOnLogicalNotComparison
value: '0'
- key: misc-throw-by-value-catch-by-reference.CheckThrowTemporaries
value: '1'
- key: readability-braces-around-statements.ShortStatementLines
value: '0'
- key: readability-function-size.BranchThreshold
value: '5'
- key: readability-function-size.LineThreshold
value: '50'
- key: readability-function-size.NestingThreshold
value: '4294967295'
- key: readability-function-size.ParameterThreshold
value: '5'
- key: readability-function-size.StatementThreshold
value: '50'
#fillout identifier-naming
#not all of these work quite as expected
# - key: readability-identifier-naming.AbstractClassCase
# value: CamelCase
# - key: readability-identifier-naming.AbstractClassPrefix
# value: 'A'
- key: readability-identifier-naming.ClassCase
value: CamelCase
# - key: readability-identifier-naming.ClassPrefix
# value: 'C'
# - key: readability-identifier-naming.ClassConstantCase
# value: CamelCase
# - key: readability-identifier-naming.ClassConstantPrefix
# value: 'k'
- key: readability-identifier-naming.ClassMemberCase
value: camelBack
- key: readability-identifier-naming.ClassMethodCase
value: camelBack
# - key: readability-identifier-naming.ConstantCase
# value: UPPER_CASE
# - key: readability-identifier-naming.ConstantSuffix
# value: '_CST'
# - key: readability-identifier-naming.ConstexprFunctionCase
# value: lower_case
# - key: readability-identifier-naming.ConstexprMethodCase
# value: lower_case
# - key: readability-identifier-naming.ConstexprVariableCase
# value: lower_case
# - key: readability-identifier-naming.EnumCase
# value: CamelCase
# - key: readability-identifier-naming.EnumPrefix
# value: 'E'
# - key: readability-identifier-naming.EnumConstantCase
# value: UPPER_CASE
# - key: readability-identifier-naming.FunctionCase
# value: camelBack
# - key: readability-identifier-naming.GlobalConstantCase
# value: UPPER_CASE
# - key: readability-identifier-naming.GlobalFunctionCase
# value: CamelCase
# - key: readability-identifier-naming.GlobalVariableCase
# value: lower_case
# - key: readability-identifier-naming.GlobalVariablePrefix
# value: 'g_'
# - key: readability-identifier-naming.InlineNamespaceCase
# value: lower_case
# - key: readability-identifier-naming.LocalConstantCase
# value: CamelCase
# - key: readability-identifier-naming.LocalConstantPrefix
# value: 'k'
- key: readability-identifier-naming.LocalVariableCase
value: camelBack
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.MemberPrefix
value: '_'
# - key: readability-identifier-naming.ConstantMemberCase
# value: lower_case
# - key: readability-identifier-naming.PrivateMemberPrefix
# value: '__'
# - key: readability-identifier-naming.ProtectedMemberPrefix
# value: '_'
# - key: readability-identifier-naming.PublicMemberCase
# value: lower_case
# this works, but ClassMethodCase doesn't seem to
- key: readability-identifier-naming.MethodCase
value: camelBack
# - key: readability-identifier-naming.PrivateMethodPrefix
# value: '__'
# - key: readability-identifier-naming.ProtectedMethodPrefix
# value: '_'
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: readability-identifier-naming.ParameterCase
value: camelBack
# - key: readability-identifier-naming.ParameterPrefix
# value: 'a_'
- key: readability-identifier-naming.ConstantParameterCase
value: camelBack
# - key: readability-identifier-naming.ConstantParameterPrefix
# value: 'i_'
# - key: readability-identifier-naming.ParameterPackCase
# value: camelBack
# - key: readability-identifier-naming.PureFunctionCase
# value: lower_case
# - key: readability-identifier-naming.PureMethodCase
# value: camelBack
# - key: readability-identifier-naming.StaticConstantCase
# value: UPPER_CASE
# - key: readability-identifier-naming.StaticVariableCase
# value: camelBack
# - key: readability-identifier-naming.StaticVariablePrefix
# value: 's_'
- key: readability-identifier-naming.StructCase
value: CamelCase
# - key: readability-identifier-naming.TemplateParameterCase
# value: UPPER_CASE
# - key: readability-identifier-naming.TemplateTemplateParameterCase
# value: CamelCase
# - key: readability-identifier-naming.TemplateUsingCase
# value: lower_case
# - key: readability-identifier-naming.TemplateUsingPrefix
# value: 'u_'
# - key: readability-identifier-naming.TypeTemplateParameterCase
# value: camelBack
# - key: readability-identifier-naming.TypeTemplateParameterSuffix
# value: '_t'
# - key: readability-identifier-naming.TypedefCase
# value: lower_case
# - key: readability-identifier-naming.TypedefSuffix
# value: '_t'
# - key: readability-identifier-naming.UnionCase
# value: CamelCase
# - key: readability-identifier-naming.UnionPrefix
# value: 'U'
# - key: readability-identifier-naming.UsingCase
# value: lower_case
# - key: readability-identifier-naming.ValueTemplateParameterCase
# value: camelBack
- key: readability-identifier-naming.VariableCase
value: camelBack
# - key: readability-identifier-naming.VirtualMethodCase
# value: UPPER_CASE
# - key: readability-identifier-naming.VirtualMethodPrefix
# value: 'v_'
# - key: readability-identifier-naming.IgnoreFailedSplit
# value: 0
#end readabiliy options
- key: readability-implicit-bool-cast.AllowConditionalIntegerCasts
value: '0'
- key: readability-implicit-bool-cast.AllowConditionalPointerCasts
value: '0'
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
value: '0'
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
value: '0'