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