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