xref: /openbmc/entity-manager/.clang-tidy (revision a3ca14a6)
107d467bcSEd TanousChecks: '
207d467bcSEd Tanous-*,
3ab3acb7bSEd Tanousboost-use-to-string,
407d467bcSEd Tanousbugprone-argument-comment,
507d467bcSEd Tanousbugprone-assert-side-effect,
607d467bcSEd Tanousbugprone-bad-signal-to-kill-thread,
707d467bcSEd Tanousbugprone-bool-pointer-implicit-conversion,
807d467bcSEd Tanousbugprone-branch-clone,
907d467bcSEd Tanousbugprone-copy-constructor-init,
1007d467bcSEd Tanousbugprone-dangling-handle,
1107d467bcSEd Tanousbugprone-dynamic-static-initializers,
1207d467bcSEd Tanousbugprone-fold-init-type,
1307d467bcSEd Tanousbugprone-forward-declaration-namespace,
1407d467bcSEd Tanousbugprone-forwarding-reference-overload,
15ab3acb7bSEd Tanousbugprone-implicit-widening-of-multiplication-result,
1607d467bcSEd Tanousbugprone-inaccurate-erase,
1707d467bcSEd Tanousbugprone-incorrect-roundings,
1807d467bcSEd Tanousbugprone-infinite-loop,
1907d467bcSEd Tanousbugprone-integer-division,
2007d467bcSEd Tanousbugprone-lambda-function-name,
2107d467bcSEd Tanousbugprone-macro-parentheses,
2207d467bcSEd Tanousbugprone-macro-repeated-side-effects,
2307d467bcSEd Tanousbugprone-misplaced-operator-in-strlen-in-alloc,
2407d467bcSEd Tanousbugprone-misplaced-pointer-arithmetic-in-alloc,
2507d467bcSEd Tanousbugprone-misplaced-widening-cast,
26ab3acb7bSEd Tanousbugprone-move-forwarding-reference,
2707d467bcSEd Tanousbugprone-multiple-statement-macro,
2807d467bcSEd Tanousbugprone-no-escape,
2907d467bcSEd Tanousbugprone-not-null-terminated-result,
3007d467bcSEd Tanousbugprone-parent-virtual-call,
3107d467bcSEd Tanousbugprone-posix-return,
32ab3acb7bSEd Tanousbugprone-redundant-branch-condition,
3307d467bcSEd Tanousbugprone-reserved-identifier,
34ab3acb7bSEd Tanousbugprone-signal-handler,
3507d467bcSEd Tanousbugprone-signed-char-misuse,
3607d467bcSEd Tanousbugprone-sizeof-container,
3707d467bcSEd Tanousbugprone-sizeof-expression,
3807d467bcSEd Tanousbugprone-spuriously-wake-up-functions,
3907d467bcSEd Tanousbugprone-string-constructor,
4007d467bcSEd Tanousbugprone-string-integer-assignment,
4107d467bcSEd Tanousbugprone-string-literal-with-embedded-nul,
4207d467bcSEd Tanousbugprone-suspicious-enum-usage,
43ab3acb7bSEd Tanousbugprone-suspicious-include,
4407d467bcSEd Tanousbugprone-suspicious-memset-usage,
4507d467bcSEd Tanousbugprone-suspicious-missing-comma,
4607d467bcSEd Tanousbugprone-suspicious-semicolon,
4707d467bcSEd Tanousbugprone-suspicious-string-compare,
4807d467bcSEd Tanousbugprone-swapped-arguments,
4907d467bcSEd Tanousbugprone-terminating-continue,
5007d467bcSEd Tanousbugprone-throw-keyword-missing,
5107d467bcSEd Tanousbugprone-too-small-loop-variable,
5207d467bcSEd Tanousbugprone-undefined-memory-manipulation,
5307d467bcSEd Tanousbugprone-undelegated-constructor,
54ab3acb7bSEd Tanousbugprone-unhandled-exception-at-new,
5507d467bcSEd Tanousbugprone-unhandled-self-assignment,
5607d467bcSEd Tanousbugprone-unused-raii,
5707d467bcSEd Tanousbugprone-unused-return-value,
5807d467bcSEd Tanousbugprone-use-after-move,
5907d467bcSEd Tanousbugprone-virtual-near-miss,
6007d467bcSEd Tanouscert-con36-c,
6107d467bcSEd Tanouscert-con54-cpp,
6207d467bcSEd Tanouscert-dcl03-c,
6307d467bcSEd Tanouscert-dcl16-c,
6407d467bcSEd Tanouscert-dcl21-cpp,
6507d467bcSEd Tanouscert-dcl37-c,
6607d467bcSEd Tanouscert-dcl50-cpp,
6707d467bcSEd Tanouscert-dcl51-cpp,
6807d467bcSEd Tanouscert-dcl54-cpp,
6907d467bcSEd Tanouscert-dcl58-cpp,
7007d467bcSEd Tanouscert-dcl59-cpp,
7107d467bcSEd Tanouscert-env33-c,
7207d467bcSEd Tanouscert-err09-cpp,
7307d467bcSEd Tanouscert-err34-c,
7407d467bcSEd Tanouscert-err52-cpp,
7507d467bcSEd Tanouscert-err60-cpp,
7607d467bcSEd Tanouscert-err61-cpp,
7707d467bcSEd Tanouscert-fio38-c,
7807d467bcSEd Tanouscert-flp30-c,
7907d467bcSEd Tanouscert-mem57-cpp,
8007d467bcSEd Tanouscert-msc30-c,
8107d467bcSEd Tanouscert-msc32-c,
8207d467bcSEd Tanouscert-msc50-cpp,
8307d467bcSEd Tanouscert-msc51-cpp,
8407d467bcSEd Tanouscert-oop11-cpp,
8507d467bcSEd Tanouscert-oop54-cpp,
8607d467bcSEd Tanouscert-oop57-cpp,
87ab3acb7bSEd Tanouscert-oop58-cpp,
88ab3acb7bSEd Tanouscert-pos44-c,
89ab3acb7bSEd Tanouscert-pos47-c,
90ab3acb7bSEd Tanouscert-sig30-c,
91ab3acb7bSEd Tanouscert-str34-c,
9207d467bcSEd Tanousclang-analyzer-apiModeling.StdCLibraryFunctions,
9307d467bcSEd Tanousclang-analyzer-apiModeling.TrustNonnull,
9407d467bcSEd Tanousclang-analyzer-apiModeling.google.GTest,
9507d467bcSEd Tanousclang-analyzer-apiModeling.llvm.CastValue,
9607d467bcSEd Tanousclang-analyzer-apiModeling.llvm.ReturnValue,
9707d467bcSEd Tanousclang-analyzer-core.CallAndMessage,
9807d467bcSEd Tanousclang-analyzer-core.CallAndMessageModeling,
9907d467bcSEd Tanousclang-analyzer-core.DivideZero,
10007d467bcSEd Tanousclang-analyzer-core.DynamicTypePropagation,
10107d467bcSEd Tanousclang-analyzer-core.NonNullParamChecker,
10207d467bcSEd Tanousclang-analyzer-core.NonnilStringConstants,
10307d467bcSEd Tanousclang-analyzer-core.NullDereference,
10407d467bcSEd Tanousclang-analyzer-core.StackAddrEscapeBase,
10507d467bcSEd Tanousclang-analyzer-core.StackAddressEscape,
10607d467bcSEd Tanousclang-analyzer-core.UndefinedBinaryOperatorResult,
10707d467bcSEd Tanousclang-analyzer-core.VLASize,
10807d467bcSEd Tanousclang-analyzer-core.builtin.BuiltinFunctions,
10907d467bcSEd Tanousclang-analyzer-core.builtin.NoReturnFunctions,
11007d467bcSEd Tanousclang-analyzer-core.uninitialized.ArraySubscript,
11107d467bcSEd Tanousclang-analyzer-core.uninitialized.Assign,
11207d467bcSEd Tanousclang-analyzer-core.uninitialized.Branch,
11307d467bcSEd Tanousclang-analyzer-core.uninitialized.CapturedBlockVariable,
11407d467bcSEd Tanousclang-analyzer-core.uninitialized.UndefReturn,
11507d467bcSEd Tanousclang-analyzer-cplusplus.InnerPointer,
11607d467bcSEd Tanousclang-analyzer-cplusplus.Move,
11707d467bcSEd Tanousclang-analyzer-cplusplus.NewDelete,
11807d467bcSEd Tanousclang-analyzer-cplusplus.NewDeleteLeaks,
11907d467bcSEd Tanousclang-analyzer-cplusplus.PlacementNew,
12007d467bcSEd Tanousclang-analyzer-cplusplus.PureVirtualCall,
12107d467bcSEd Tanousclang-analyzer-cplusplus.SelfAssignment,
12207d467bcSEd Tanousclang-analyzer-cplusplus.SmartPtrModeling,
12307d467bcSEd Tanousclang-analyzer-cplusplus.VirtualCallModeling,
12407d467bcSEd Tanousclang-analyzer-deadcode.DeadStores,
12507d467bcSEd Tanousclang-analyzer-fuchsia.HandleChecker,
12607d467bcSEd Tanousclang-analyzer-nullability.NullPassedToNonnull,
12707d467bcSEd Tanousclang-analyzer-nullability.NullReturnedFromNonnull,
12807d467bcSEd Tanousclang-analyzer-nullability.NullabilityBase,
12907d467bcSEd Tanousclang-analyzer-nullability.NullableDereferenced,
13007d467bcSEd Tanousclang-analyzer-nullability.NullablePassedToNonnull,
13107d467bcSEd Tanousclang-analyzer-nullability.NullableReturnedFromNonnull,
13207d467bcSEd Tanousclang-analyzer-optin.cplusplus.UninitializedObject,
13307d467bcSEd Tanousclang-analyzer-optin.cplusplus.VirtualCall,
13407d467bcSEd Tanousclang-analyzer-optin.mpi.MPI-Checker,
13507d467bcSEd Tanousclang-analyzer-optin.osx.OSObjectCStyleCast,
13607d467bcSEd Tanousclang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
13707d467bcSEd Tanousclang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
13807d467bcSEd Tanousclang-analyzer-optin.performance.GCDAntipattern,
13907d467bcSEd Tanousclang-analyzer-optin.performance.Padding,
14007d467bcSEd Tanousclang-analyzer-optin.portability.UnixAPI,
14107d467bcSEd Tanousclang-analyzer-osx.API,
14207d467bcSEd Tanousclang-analyzer-osx.MIG,
14307d467bcSEd Tanousclang-analyzer-osx.NSOrCFErrorDerefChecker,
14407d467bcSEd Tanousclang-analyzer-osx.NumberObjectConversion,
14507d467bcSEd Tanousclang-analyzer-osx.OSObjectRetainCount,
14607d467bcSEd Tanousclang-analyzer-osx.ObjCProperty,
14707d467bcSEd Tanousclang-analyzer-osx.SecKeychainAPI,
14807d467bcSEd Tanousclang-analyzer-osx.cocoa.AtSync,
14907d467bcSEd Tanousclang-analyzer-osx.cocoa.AutoreleaseWrite,
15007d467bcSEd Tanousclang-analyzer-osx.cocoa.ClassRelease,
15107d467bcSEd Tanousclang-analyzer-osx.cocoa.Dealloc,
15207d467bcSEd Tanousclang-analyzer-osx.cocoa.IncompatibleMethodTypes,
15307d467bcSEd Tanousclang-analyzer-osx.cocoa.Loops,
15407d467bcSEd Tanousclang-analyzer-osx.cocoa.MissingSuperCall,
15507d467bcSEd Tanousclang-analyzer-osx.cocoa.NSAutoreleasePool,
15607d467bcSEd Tanousclang-analyzer-osx.cocoa.NSError,
15707d467bcSEd Tanousclang-analyzer-osx.cocoa.NilArg,
15807d467bcSEd Tanousclang-analyzer-osx.cocoa.NonNilReturnValue,
15907d467bcSEd Tanousclang-analyzer-osx.cocoa.ObjCGenerics,
16007d467bcSEd Tanousclang-analyzer-osx.cocoa.RetainCount,
16107d467bcSEd Tanousclang-analyzer-osx.cocoa.RetainCountBase,
16207d467bcSEd Tanousclang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
16307d467bcSEd Tanousclang-analyzer-osx.cocoa.SelfInit,
16407d467bcSEd Tanousclang-analyzer-osx.cocoa.SuperDealloc,
16507d467bcSEd Tanousclang-analyzer-osx.cocoa.UnusedIvars,
16607d467bcSEd Tanousclang-analyzer-osx.cocoa.VariadicMethodTypes,
16707d467bcSEd Tanousclang-analyzer-osx.coreFoundation.CFError,
16807d467bcSEd Tanousclang-analyzer-osx.coreFoundation.CFNumber,
16907d467bcSEd Tanousclang-analyzer-osx.coreFoundation.CFRetainRelease,
17007d467bcSEd Tanousclang-analyzer-osx.coreFoundation.containers.OutOfBounds,
17107d467bcSEd Tanousclang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
17207d467bcSEd Tanousclang-analyzer-security.FloatLoopCounter,
17307d467bcSEd Tanousclang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
17407d467bcSEd Tanousclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
17507d467bcSEd Tanousclang-analyzer-security.insecureAPI.UncheckedReturn,
17607d467bcSEd Tanousclang-analyzer-security.insecureAPI.bcmp,
17707d467bcSEd Tanousclang-analyzer-security.insecureAPI.bcopy,
17807d467bcSEd Tanousclang-analyzer-security.insecureAPI.bzero,
17907d467bcSEd Tanousclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
18007d467bcSEd Tanousclang-analyzer-security.insecureAPI.getpw,
18107d467bcSEd Tanousclang-analyzer-security.insecureAPI.gets,
18207d467bcSEd Tanousclang-analyzer-security.insecureAPI.mkstemp,
18307d467bcSEd Tanousclang-analyzer-security.insecureAPI.mktemp,
18407d467bcSEd Tanousclang-analyzer-security.insecureAPI.rand,
18507d467bcSEd Tanousclang-analyzer-security.insecureAPI.strcpy,
18607d467bcSEd Tanousclang-analyzer-security.insecureAPI.vfork,
18707d467bcSEd Tanousclang-analyzer-unix.API,
18807d467bcSEd Tanousclang-analyzer-unix.DynamicMemoryModeling,
18907d467bcSEd Tanousclang-analyzer-unix.Malloc,
19007d467bcSEd Tanousclang-analyzer-unix.MallocSizeof,
19107d467bcSEd Tanousclang-analyzer-unix.MismatchedDeallocator,
19207d467bcSEd Tanousclang-analyzer-unix.Vfork,
19307d467bcSEd Tanousclang-analyzer-unix.cstring.BadSizeArg,
19407d467bcSEd Tanousclang-analyzer-unix.cstring.CStringModeling,
19507d467bcSEd Tanousclang-analyzer-unix.cstring.NullArg,
19607d467bcSEd Tanousclang-analyzer-valist.CopyToSelf,
19707d467bcSEd Tanousclang-analyzer-valist.Uninitialized,
19807d467bcSEd Tanousclang-analyzer-valist.Unterminated,
19907d467bcSEd Tanousclang-analyzer-valist.ValistBase,
20007d467bcSEd Tanousclang-analyzer-webkit.NoUncountedMemberChecker,
20107d467bcSEd Tanousclang-analyzer-webkit.RefCntblBaseVirtualDtor,
202ab3acb7bSEd Tanouscppcoreguidelines-avoid-c-arrays,
203ab3acb7bSEd Tanouscppcoreguidelines-avoid-goto,
204ab3acb7bSEd Tanouscppcoreguidelines-c-copy-assignment-signature,
205ab3acb7bSEd Tanouscppcoreguidelines-explicit-virtual-functions,
206ab3acb7bSEd Tanouscppcoreguidelines-init-variables,
207ab3acb7bSEd Tanouscppcoreguidelines-interfaces-global-init,
208ab3acb7bSEd Tanouscppcoreguidelines-macro-usage,
209ab3acb7bSEd Tanouscppcoreguidelines-no-malloc,
210ab3acb7bSEd Tanouscppcoreguidelines-prefer-member-initializer,
211ab3acb7bSEd Tanouscppcoreguidelines-pro-bounds-array-to-pointer-decay,
212ab3acb7bSEd Tanouscppcoreguidelines-pro-bounds-pointer-arithmetic,
213ab3acb7bSEd Tanouscppcoreguidelines-pro-type-const-cast,
214ab3acb7bSEd Tanouscppcoreguidelines-pro-type-cstyle-cast,
215ab3acb7bSEd Tanouscppcoreguidelines-pro-type-member-init,
216ab3acb7bSEd Tanouscppcoreguidelines-pro-type-reinterpret-cast,
217ab3acb7bSEd Tanouscppcoreguidelines-pro-type-static-cast-downcast,
218ab3acb7bSEd Tanouscppcoreguidelines-pro-type-union-access,
219ab3acb7bSEd Tanouscppcoreguidelines-slicing,
220ab3acb7bSEd Tanousgoogle-explicit-constructor,
22107d467bcSEd Tanousmisc-misplaced-const,
22207d467bcSEd Tanousmisc-redundant-expression,
22307d467bcSEd Tanousmisc-static-assert,
22407d467bcSEd Tanousmisc-throw-by-value-catch-by-reference,
22507d467bcSEd Tanousmisc-unconventional-assign-operator,
22607d467bcSEd Tanousmisc-uniqueptr-reset-release,
22707d467bcSEd Tanousmisc-unused-using-decls,
22807d467bcSEd Tanousmodernize-avoid-bind,
22907d467bcSEd Tanousmodernize-deprecated-headers,
23007d467bcSEd Tanousmodernize-deprecated-ios-base-aliases,
23107d467bcSEd Tanousmodernize-loop-convert,
23207d467bcSEd Tanousmodernize-make-shared,
23307d467bcSEd Tanousmodernize-make-unique,
23407d467bcSEd Tanousmodernize-raw-string-literal,
235*a3ca14a6SDelphine CC Chiumodernize-redundant-void-arg,
23607d467bcSEd Tanousmodernize-replace-auto-ptr,
23707d467bcSEd Tanousmodernize-replace-random-shuffle,
23807d467bcSEd Tanousmodernize-return-braced-init-list,
23907d467bcSEd Tanousmodernize-shrink-to-fit,
24007d467bcSEd Tanousmodernize-unary-static-assert,
24107d467bcSEd Tanousmodernize-use-bool-literals,
24207d467bcSEd Tanousmodernize-use-default-member-init,
24307d467bcSEd Tanousmodernize-use-emplace,
24407d467bcSEd Tanousmodernize-use-equals-default,
24507d467bcSEd Tanousmodernize-use-equals-delete,
24607d467bcSEd Tanousmodernize-use-noexcept,
24707d467bcSEd Tanousmodernize-use-nullptr,
24807d467bcSEd Tanousmodernize-use-override,
24907d467bcSEd Tanousmodernize-use-transparent-functors,
25007d467bcSEd Tanousmodernize-use-uncaught-exceptions,
25107d467bcSEd Tanousmodernize-use-using,
25207d467bcSEd Tanousperformance-faster-string-find,
25307d467bcSEd Tanousperformance-for-range-copy,
25407d467bcSEd Tanousperformance-implicit-conversion-in-loop,
25507d467bcSEd Tanousperformance-inefficient-algorithm,
25607d467bcSEd Tanousperformance-inefficient-string-concatenation,
25707d467bcSEd Tanousperformance-inefficient-vector-operation,
25807d467bcSEd Tanousperformance-move-const-arg,
25907d467bcSEd Tanousperformance-move-constructor-init,
26007d467bcSEd Tanousperformance-no-automatic-move,
261ab3acb7bSEd Tanousperformance-no-int-to-ptr,
26207d467bcSEd Tanousperformance-noexcept-move-constructor,
26307d467bcSEd Tanousperformance-trivially-destructible,
26407d467bcSEd Tanousperformance-type-promotion-in-math-fn,
26507d467bcSEd Tanousperformance-unnecessary-copy-initialization,
26607d467bcSEd Tanousperformance-unnecessary-value-param,
267ab3acb7bSEd Tanousreadability-avoid-const-params-in-decls,
26807d467bcSEd Tanousreadability-braces-around-statements,
26907d467bcSEd Tanousreadability-const-return-type,
270ab3acb7bSEd Tanousreadability-container-size-empty,
271ab3acb7bSEd Tanousreadability-convert-member-functions-to-static,
27207d467bcSEd Tanousreadability-delete-null-pointer,
27307d467bcSEd Tanousreadability-deleted-default,
27407d467bcSEd Tanousreadability-else-after-return,
275ab3acb7bSEd Tanousreadability-function-size,
276ab3acb7bSEd Tanousreadability-identifier-naming,
277ab3acb7bSEd Tanousreadability-implicit-bool-conversion,
278ab3acb7bSEd Tanousreadability-inconsistent-declaration-parameter-name,
279ab3acb7bSEd Tanousreadability-isolate-declaration,
280ab3acb7bSEd Tanousreadability-make-member-function-const,
281ab3acb7bSEd Tanousreadability-misleading-indentation,
282ab3acb7bSEd Tanousreadability-misplaced-array-index,
283ab3acb7bSEd Tanousreadability-named-parameter,
284ab3acb7bSEd Tanousreadability-non-const-parameter,
285ab3acb7bSEd Tanousreadability-qualified-auto,
286ab3acb7bSEd Tanousreadability-redundant-access-specifiers,
287ab3acb7bSEd Tanousreadability-redundant-control-flow,
288ab3acb7bSEd Tanousreadability-redundant-declaration,
289ab3acb7bSEd Tanousreadability-redundant-function-ptr-dereference,
290ab3acb7bSEd Tanousreadability-redundant-member-init,
291ab3acb7bSEd Tanousreadability-redundant-preprocessor,
292ab3acb7bSEd Tanousreadability-redundant-smartptr-get,
293ab3acb7bSEd Tanousreadability-redundant-string-cstr,
294ab3acb7bSEd Tanousreadability-redundant-string-init,
295ab3acb7bSEd Tanousreadability-simplify-boolean-expr,
296ab3acb7bSEd Tanousreadability-simplify-subscript-expr,
297ab3acb7bSEd Tanousreadability-static-accessed-through-instance,
298ab3acb7bSEd Tanousreadability-static-definition-in-anonymous-namespace,
299ab3acb7bSEd Tanousreadability-string-compare,
300ab3acb7bSEd Tanousreadability-suspicious-call-argument,
301ab3acb7bSEd Tanousreadability-uniqueptr-delete-release,
302ab3acb7bSEd Tanousreadability-uppercase-literal-suffix'
30307d467bcSEd TanousWarningsAsErrors: '*'
30407d467bcSEd TanousHeaderFilterRegex: '.*'
30507d467bcSEd TanousCheckOptions:
30607d467bcSEd Tanous  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
30707d467bcSEd Tanous  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
30807d467bcSEd Tanous  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
30907d467bcSEd Tanous  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
31007d467bcSEd Tanous  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
31107d467bcSEd Tanous  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
312