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