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