xref: /openbmc/estoraged/.clang-tidy (revision 82897c35)
1*82897c35SEd TanousChecks: '
2*82897c35SEd Tanous-*,
3*82897c35SEd Tanousboost-use-to-string,
4*82897c35SEd Tanousbugprone-argument-comment,
5*82897c35SEd Tanousbugprone-assert-side-effect,
6*82897c35SEd Tanousbugprone-bad-signal-to-kill-thread,
7*82897c35SEd Tanousbugprone-bool-pointer-implicit-conversion,
8*82897c35SEd Tanousbugprone-branch-clone,
9*82897c35SEd Tanousbugprone-copy-constructor-init,
10*82897c35SEd Tanousbugprone-dangling-handle,
11*82897c35SEd Tanousbugprone-dynamic-static-initializers,
12*82897c35SEd Tanousbugprone-exception-escape,
13*82897c35SEd Tanousbugprone-fold-init-type,
14*82897c35SEd Tanousbugprone-forward-declaration-namespace,
15*82897c35SEd Tanousbugprone-forwarding-reference-overload,
16*82897c35SEd Tanousbugprone-implicit-widening-of-multiplication-result,
17*82897c35SEd Tanousbugprone-inaccurate-erase,
18*82897c35SEd Tanousbugprone-incorrect-roundings,
19*82897c35SEd Tanousbugprone-infinite-loop,
20*82897c35SEd Tanousbugprone-integer-division,
21*82897c35SEd Tanousbugprone-lambda-function-name,
22*82897c35SEd Tanousbugprone-macro-parentheses,
23*82897c35SEd Tanousbugprone-macro-repeated-side-effects,
24*82897c35SEd Tanousbugprone-misplaced-operator-in-strlen-in-alloc,
25*82897c35SEd Tanousbugprone-misplaced-pointer-arithmetic-in-alloc,
26*82897c35SEd Tanousbugprone-misplaced-widening-cast,
27*82897c35SEd Tanousbugprone-move-forwarding-reference,
28*82897c35SEd Tanousbugprone-multiple-statement-macro,
29*82897c35SEd Tanousbugprone-narrowing-conversions,
30*82897c35SEd Tanousbugprone-no-escape,
31*82897c35SEd Tanousbugprone-not-null-terminated-result,
32*82897c35SEd Tanousbugprone-parent-virtual-call,
33*82897c35SEd Tanousbugprone-posix-return,
34*82897c35SEd Tanousbugprone-redundant-branch-condition,
35*82897c35SEd Tanousbugprone-reserved-identifier,
36*82897c35SEd Tanousbugprone-signal-handler,
37*82897c35SEd Tanousbugprone-signed-char-misuse,
38*82897c35SEd Tanousbugprone-sizeof-container,
39*82897c35SEd Tanousbugprone-sizeof-expression,
40*82897c35SEd Tanousbugprone-spuriously-wake-up-functions,
41*82897c35SEd Tanousbugprone-string-constructor,
42*82897c35SEd Tanousbugprone-string-integer-assignment,
43*82897c35SEd Tanousbugprone-string-literal-with-embedded-nul,
44*82897c35SEd Tanousbugprone-suspicious-enum-usage,
45*82897c35SEd Tanousbugprone-suspicious-include,
46*82897c35SEd Tanousbugprone-suspicious-memset-usage,
47*82897c35SEd Tanousbugprone-suspicious-missing-comma,
48*82897c35SEd Tanousbugprone-suspicious-semicolon,
49*82897c35SEd Tanousbugprone-suspicious-string-compare,
50*82897c35SEd Tanousbugprone-swapped-arguments,
51*82897c35SEd Tanousbugprone-terminating-continue,
52*82897c35SEd Tanousbugprone-throw-keyword-missing,
53*82897c35SEd Tanousbugprone-too-small-loop-variable,
54*82897c35SEd Tanousbugprone-undefined-memory-manipulation,
55*82897c35SEd Tanousbugprone-undelegated-constructor,
56*82897c35SEd Tanousbugprone-unhandled-exception-at-new,
57*82897c35SEd Tanousbugprone-unhandled-self-assignment,
58*82897c35SEd Tanousbugprone-unused-raii,
59*82897c35SEd Tanousbugprone-unused-return-value,
60*82897c35SEd Tanousbugprone-use-after-move,
61*82897c35SEd Tanousbugprone-virtual-near-miss,
62*82897c35SEd Tanouscert-con36-c,
63*82897c35SEd Tanouscert-con54-cpp,
64*82897c35SEd Tanouscert-dcl03-c,
65*82897c35SEd Tanouscert-dcl16-c,
66*82897c35SEd Tanouscert-dcl21-cpp,
67*82897c35SEd Tanouscert-dcl37-c,
68*82897c35SEd Tanouscert-dcl50-cpp,
69*82897c35SEd Tanouscert-dcl51-cpp,
70*82897c35SEd Tanouscert-dcl54-cpp,
71*82897c35SEd Tanouscert-dcl58-cpp,
72*82897c35SEd Tanouscert-dcl59-cpp,
73*82897c35SEd Tanouscert-env33-c,
74*82897c35SEd Tanouscert-err09-cpp,
75*82897c35SEd Tanouscert-err34-c,
76*82897c35SEd Tanouscert-err52-cpp,
77*82897c35SEd Tanouscert-err60-cpp,
78*82897c35SEd Tanouscert-err61-cpp,
79*82897c35SEd Tanouscert-fio38-c,
80*82897c35SEd Tanouscert-flp30-c,
81*82897c35SEd Tanouscert-mem57-cpp,
82*82897c35SEd Tanouscert-msc30-c,
83*82897c35SEd Tanouscert-msc32-c,
84*82897c35SEd Tanouscert-msc50-cpp,
85*82897c35SEd Tanouscert-msc51-cpp,
86*82897c35SEd Tanouscert-oop11-cpp,
87*82897c35SEd Tanouscert-oop54-cpp,
88*82897c35SEd Tanouscert-oop57-cpp,
89*82897c35SEd Tanouscert-oop58-cpp,
90*82897c35SEd Tanouscert-pos44-c,
91*82897c35SEd Tanouscert-pos47-c,
92*82897c35SEd Tanouscert-sig30-c,
93*82897c35SEd Tanouscert-str34-c,
94*82897c35SEd Tanousclang-analyzer-apiModeling.StdCLibraryFunctions,
95*82897c35SEd Tanousclang-analyzer-apiModeling.TrustNonnull,
96*82897c35SEd Tanousclang-analyzer-apiModeling.google.GTest,
97*82897c35SEd Tanousclang-analyzer-apiModeling.llvm.CastValue,
98*82897c35SEd Tanousclang-analyzer-apiModeling.llvm.ReturnValue,
99*82897c35SEd Tanousclang-analyzer-core.CallAndMessage,
100*82897c35SEd Tanousclang-analyzer-core.CallAndMessageModeling,
101*82897c35SEd Tanousclang-analyzer-core.DivideZero,
102*82897c35SEd Tanousclang-analyzer-core.DynamicTypePropagation,
103*82897c35SEd Tanousclang-analyzer-core.NonNullParamChecker,
104*82897c35SEd Tanousclang-analyzer-core.NonnilStringConstants,
105*82897c35SEd Tanousclang-analyzer-core.NullDereference,
106*82897c35SEd Tanousclang-analyzer-core.StackAddrEscapeBase,
107*82897c35SEd Tanousclang-analyzer-core.StackAddressEscape,
108*82897c35SEd Tanousclang-analyzer-core.UndefinedBinaryOperatorResult,
109*82897c35SEd Tanousclang-analyzer-core.VLASize,
110*82897c35SEd Tanousclang-analyzer-core.builtin.BuiltinFunctions,
111*82897c35SEd Tanousclang-analyzer-core.builtin.NoReturnFunctions,
112*82897c35SEd Tanousclang-analyzer-core.uninitialized.ArraySubscript,
113*82897c35SEd Tanousclang-analyzer-core.uninitialized.Assign,
114*82897c35SEd Tanousclang-analyzer-core.uninitialized.Branch,
115*82897c35SEd Tanousclang-analyzer-core.uninitialized.CapturedBlockVariable,
116*82897c35SEd Tanousclang-analyzer-core.uninitialized.UndefReturn,
117*82897c35SEd Tanousclang-analyzer-cplusplus.InnerPointer,
118*82897c35SEd Tanousclang-analyzer-cplusplus.Move,
119*82897c35SEd Tanousclang-analyzer-cplusplus.NewDelete,
120*82897c35SEd Tanousclang-analyzer-cplusplus.NewDeleteLeaks,
121*82897c35SEd Tanousclang-analyzer-cplusplus.PlacementNew,
122*82897c35SEd Tanousclang-analyzer-cplusplus.PureVirtualCall,
123*82897c35SEd Tanousclang-analyzer-cplusplus.SelfAssignment,
124*82897c35SEd Tanousclang-analyzer-cplusplus.SmartPtrModeling,
125*82897c35SEd Tanousclang-analyzer-cplusplus.VirtualCallModeling,
126*82897c35SEd Tanousclang-analyzer-deadcode.DeadStores,
127*82897c35SEd Tanousclang-analyzer-fuchsia.HandleChecker,
128*82897c35SEd Tanousclang-analyzer-nullability.NullPassedToNonnull,
129*82897c35SEd Tanousclang-analyzer-nullability.NullReturnedFromNonnull,
130*82897c35SEd Tanousclang-analyzer-nullability.NullabilityBase,
131*82897c35SEd Tanousclang-analyzer-nullability.NullableDereferenced,
132*82897c35SEd Tanousclang-analyzer-nullability.NullablePassedToNonnull,
133*82897c35SEd Tanousclang-analyzer-nullability.NullableReturnedFromNonnull,
134*82897c35SEd Tanousclang-analyzer-optin.cplusplus.UninitializedObject,
135*82897c35SEd Tanousclang-analyzer-optin.cplusplus.VirtualCall,
136*82897c35SEd Tanousclang-analyzer-optin.mpi.MPI-Checker,
137*82897c35SEd Tanousclang-analyzer-optin.osx.OSObjectCStyleCast,
138*82897c35SEd Tanousclang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
139*82897c35SEd Tanousclang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
140*82897c35SEd Tanousclang-analyzer-optin.performance.GCDAntipattern,
141*82897c35SEd Tanousclang-analyzer-optin.performance.Padding,
142*82897c35SEd Tanousclang-analyzer-optin.portability.UnixAPI,
143*82897c35SEd Tanousclang-analyzer-osx.API,
144*82897c35SEd Tanousclang-analyzer-osx.MIG,
145*82897c35SEd Tanousclang-analyzer-osx.NSOrCFErrorDerefChecker,
146*82897c35SEd Tanousclang-analyzer-osx.NumberObjectConversion,
147*82897c35SEd Tanousclang-analyzer-osx.OSObjectRetainCount,
148*82897c35SEd Tanousclang-analyzer-osx.ObjCProperty,
149*82897c35SEd Tanousclang-analyzer-osx.SecKeychainAPI,
150*82897c35SEd Tanousclang-analyzer-osx.cocoa.AtSync,
151*82897c35SEd Tanousclang-analyzer-osx.cocoa.AutoreleaseWrite,
152*82897c35SEd Tanousclang-analyzer-osx.cocoa.ClassRelease,
153*82897c35SEd Tanousclang-analyzer-osx.cocoa.Dealloc,
154*82897c35SEd Tanousclang-analyzer-osx.cocoa.IncompatibleMethodTypes,
155*82897c35SEd Tanousclang-analyzer-osx.cocoa.Loops,
156*82897c35SEd Tanousclang-analyzer-osx.cocoa.MissingSuperCall,
157*82897c35SEd Tanousclang-analyzer-osx.cocoa.NSAutoreleasePool,
158*82897c35SEd Tanousclang-analyzer-osx.cocoa.NSError,
159*82897c35SEd Tanousclang-analyzer-osx.cocoa.NilArg,
160*82897c35SEd Tanousclang-analyzer-osx.cocoa.NonNilReturnValue,
161*82897c35SEd Tanousclang-analyzer-osx.cocoa.ObjCGenerics,
162*82897c35SEd Tanousclang-analyzer-osx.cocoa.RetainCount,
163*82897c35SEd Tanousclang-analyzer-osx.cocoa.RetainCountBase,
164*82897c35SEd Tanousclang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
165*82897c35SEd Tanousclang-analyzer-osx.cocoa.SelfInit,
166*82897c35SEd Tanousclang-analyzer-osx.cocoa.SuperDealloc,
167*82897c35SEd Tanousclang-analyzer-osx.cocoa.UnusedIvars,
168*82897c35SEd Tanousclang-analyzer-osx.cocoa.VariadicMethodTypes,
169*82897c35SEd Tanousclang-analyzer-osx.coreFoundation.CFError,
170*82897c35SEd Tanousclang-analyzer-osx.coreFoundation.CFNumber,
171*82897c35SEd Tanousclang-analyzer-osx.coreFoundation.CFRetainRelease,
172*82897c35SEd Tanousclang-analyzer-osx.coreFoundation.containers.OutOfBounds,
173*82897c35SEd Tanousclang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
174*82897c35SEd Tanousclang-analyzer-security.FloatLoopCounter,
175*82897c35SEd Tanousclang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
176*82897c35SEd Tanousclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
177*82897c35SEd Tanousclang-analyzer-security.insecureAPI.UncheckedReturn,
178*82897c35SEd Tanousclang-analyzer-security.insecureAPI.bcmp,
179*82897c35SEd Tanousclang-analyzer-security.insecureAPI.bcopy,
180*82897c35SEd Tanousclang-analyzer-security.insecureAPI.bzero,
181*82897c35SEd Tanousclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
182*82897c35SEd Tanousclang-analyzer-security.insecureAPI.getpw,
183*82897c35SEd Tanousclang-analyzer-security.insecureAPI.gets,
184*82897c35SEd Tanousclang-analyzer-security.insecureAPI.mkstemp,
185*82897c35SEd Tanousclang-analyzer-security.insecureAPI.mktemp,
186*82897c35SEd Tanousclang-analyzer-security.insecureAPI.rand,
187*82897c35SEd Tanousclang-analyzer-security.insecureAPI.strcpy,
188*82897c35SEd Tanousclang-analyzer-security.insecureAPI.vfork,
189*82897c35SEd Tanousclang-analyzer-unix.API,
190*82897c35SEd Tanousclang-analyzer-unix.DynamicMemoryModeling,
191*82897c35SEd Tanousclang-analyzer-unix.Malloc,
192*82897c35SEd Tanousclang-analyzer-unix.MallocSizeof,
193*82897c35SEd Tanousclang-analyzer-unix.MismatchedDeallocator,
194*82897c35SEd Tanousclang-analyzer-unix.Vfork,
195*82897c35SEd Tanousclang-analyzer-unix.cstring.BadSizeArg,
196*82897c35SEd Tanousclang-analyzer-unix.cstring.CStringModeling,
197*82897c35SEd Tanousclang-analyzer-unix.cstring.NullArg,
198*82897c35SEd Tanousclang-analyzer-valist.CopyToSelf,
199*82897c35SEd Tanousclang-analyzer-valist.Uninitialized,
200*82897c35SEd Tanousclang-analyzer-valist.Unterminated,
201*82897c35SEd Tanousclang-analyzer-valist.ValistBase,
202*82897c35SEd Tanousclang-analyzer-webkit.NoUncountedMemberChecker,
203*82897c35SEd Tanousclang-analyzer-webkit.RefCntblBaseVirtualDtor,
204*82897c35SEd Tanouscppcoreguidelines-avoid-c-arrays,
205*82897c35SEd Tanouscppcoreguidelines-c-copy-assignment-signature,
206*82897c35SEd Tanouscppcoreguidelines-explicit-virtual-functions,
207*82897c35SEd Tanouscppcoreguidelines-init-variables,
208*82897c35SEd Tanouscppcoreguidelines-interfaces-global-init,
209*82897c35SEd Tanouscppcoreguidelines-macro-usage,
210*82897c35SEd Tanouscppcoreguidelines-narrowing-conversions,
211*82897c35SEd Tanouscppcoreguidelines-no-malloc,
212*82897c35SEd Tanouscppcoreguidelines-prefer-member-initializer,
213*82897c35SEd Tanouscppcoreguidelines-pro-bounds-array-to-pointer-decay,
214*82897c35SEd Tanouscppcoreguidelines-pro-bounds-pointer-arithmetic,
215*82897c35SEd Tanouscppcoreguidelines-pro-type-const-cast,
216*82897c35SEd Tanouscppcoreguidelines-pro-type-cstyle-cast,
217*82897c35SEd Tanouscppcoreguidelines-pro-type-member-init,
218*82897c35SEd Tanouscppcoreguidelines-pro-type-static-cast-downcast,
219*82897c35SEd Tanouscppcoreguidelines-pro-type-union-access,
220*82897c35SEd Tanouscppcoreguidelines-pro-type-vararg,
221*82897c35SEd Tanouscppcoreguidelines-slicing,
222*82897c35SEd Tanouscppcoreguidelines-special-member-functions,
223*82897c35SEd Tanousmisc-misplaced-const,
224*82897c35SEd Tanous#misc-no-recursion,
225*82897c35SEd Tanousmisc-redundant-expression,
226*82897c35SEd Tanousmisc-static-assert,
227*82897c35SEd Tanousmisc-throw-by-value-catch-by-reference,
228*82897c35SEd Tanousmisc-unconventional-assign-operator,
229*82897c35SEd Tanousmisc-uniqueptr-reset-release,
230*82897c35SEd Tanousmisc-unused-using-decls,
231*82897c35SEd Tanousmodernize-avoid-bind,
232*82897c35SEd Tanousmodernize-deprecated-headers,
233*82897c35SEd Tanousmodernize-deprecated-ios-base-aliases,
234*82897c35SEd Tanousmodernize-loop-convert,
235*82897c35SEd Tanousmodernize-make-shared,
236*82897c35SEd Tanousmodernize-make-unique,
237*82897c35SEd Tanousmodernize-raw-string-literal,
238*82897c35SEd Tanousmodernize-replace-auto-ptr,
239*82897c35SEd Tanousmodernize-replace-random-shuffle,
240*82897c35SEd Tanousmodernize-return-braced-init-list,
241*82897c35SEd Tanousmodernize-shrink-to-fit,
242*82897c35SEd Tanousmodernize-unary-static-assert,
243*82897c35SEd Tanousmodernize-use-bool-literals,
244*82897c35SEd Tanousmodernize-use-default-member-init,
245*82897c35SEd Tanousmodernize-use-emplace,
246*82897c35SEd Tanousmodernize-use-equals-default,
247*82897c35SEd Tanousmodernize-use-equals-delete,
248*82897c35SEd Tanousmodernize-use-noexcept,
249*82897c35SEd Tanousmodernize-use-nullptr,
250*82897c35SEd Tanousmodernize-use-override,
251*82897c35SEd Tanousmodernize-use-transparent-functors,
252*82897c35SEd Tanousmodernize-use-uncaught-exceptions,
253*82897c35SEd Tanousmodernize-use-using,
254*82897c35SEd Tanousperformance-faster-string-find,
255*82897c35SEd Tanousperformance-for-range-copy,
256*82897c35SEd Tanousperformance-implicit-conversion-in-loop,
257*82897c35SEd Tanousperformance-inefficient-algorithm,
258*82897c35SEd Tanousperformance-inefficient-string-concatenation,
259*82897c35SEd Tanousperformance-inefficient-vector-operation,
260*82897c35SEd Tanousperformance-move-const-arg,
261*82897c35SEd Tanousperformance-move-constructor-init,
262*82897c35SEd Tanousperformance-no-automatic-move,
263*82897c35SEd Tanousperformance-no-int-to-ptr,
264*82897c35SEd Tanousperformance-noexcept-move-constructor,
265*82897c35SEd Tanousperformance-trivially-destructible,
266*82897c35SEd Tanousperformance-type-promotion-in-math-fn,
267*82897c35SEd Tanousperformance-unnecessary-copy-initialization,
268*82897c35SEd Tanousperformance-unnecessary-value-param,
269*82897c35SEd Tanousreadability-avoid-const-params-in-decls,
270*82897c35SEd Tanousreadability-braces-around-statements,
271*82897c35SEd Tanousreadability-const-return-type,
272*82897c35SEd Tanousreadability-container-size-empty,
273*82897c35SEd Tanousreadability-delete-null-pointer,
274*82897c35SEd Tanousreadability-deleted-default,
275*82897c35SEd Tanousreadability-else-after-return,
276*82897c35SEd Tanousreadability-implicit-bool-conversion,
277*82897c35SEd Tanousreadability-named-parameter,
278*82897c35SEd Tanousreadability-redundant-control-flow,
279*82897c35SEd Tanousreadability-redundant-declaration,
280*82897c35SEd Tanousreadability-redundant-function-ptr-dereference,
281*82897c35SEd Tanousreadability-redundant-member-init,
282*82897c35SEd Tanousreadability-redundant-preprocessor,
283*82897c35SEd Tanousreadability-redundant-smartptr-get,
284*82897c35SEd Tanousreadability-redundant-string-cstr,
285*82897c35SEd Tanousreadability-redundant-string-init,
286*82897c35SEd Tanousreadability-static-accessed-through-instance,
287*82897c35SEd Tanousreadability-identifier-naming,
288*82897c35SEd Tanousreadability-uppercase-literal-suffix'
289*82897c35SEd Tanous
290*82897c35SEd TanousWarningsAsErrors: '*'
291*82897c35SEd TanousHeaderFilterRegex: '.*'
292*82897c35SEd TanousCheckOptions:
293*82897c35SEd Tanous  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
294*82897c35SEd Tanous  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
295*82897c35SEd Tanous  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
296*82897c35SEd Tanous  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
297*82897c35SEd Tanous  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
298*82897c35SEd Tanous  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
299*82897c35SEd Tanous  - { key: cppcoreguidelines-macro-usage.AllowedRegexp, value: ((ERASE_MIN_GEOMETRY)|(ERASE_MAX_GEOMETRY))  }
300*82897c35SEd Tanous
301