xref: /openbmc/phosphor-debug-collector/.clang-tidy (revision ed4e9f5bc66ea421df04e68f21d9a8e38a12f717)
14f68fc46SJayanth OthayothChecks: '
24f68fc46SJayanth Othayoth-*,
3508113afSJayanth Othayothbugprone-argument-comment,
4508113afSJayanth Othayothbugprone-assert-side-effect,
5508113afSJayanth Othayothbugprone-assignment-in-if,
6508113afSJayanth Othayothbugprone-bad-signal-to-kill-thread,
7508113afSJayanth Othayothbugprone-bool-pointer-implicit-conversion,
8508113afSJayanth Othayothbugprone-branch-clone,
9508113afSJayanth Othayothbugprone-casting-through-void,
10508113afSJayanth Othayothbugprone-chained-comparison,
11508113afSJayanth Othayothbugprone-compare-pointer-to-member-virtual-function,
12508113afSJayanth Othayothbugprone-copy-constructor-init,
13508113afSJayanth Othayothbugprone-dangling-handle,
14508113afSJayanth Othayothbugprone-dynamic-static-initializers,
15316a2277SJayanth Othayothbugprone-empty-catch,
16508113afSJayanth Othayothbugprone-fold-init-type,
17109e9948SJayanth Othayothbugprone-forward-declaration-namespace,
18508113afSJayanth Othayothbugprone-forwarding-reference-overload,
19508113afSJayanth Othayothbugprone-implicit-widening-of-multiplication-result,
20508113afSJayanth Othayothbugprone-inaccurate-erase,
21508113afSJayanth Othayothbugprone-inc-dec-in-conditions,
22508113afSJayanth Othayothbugprone-incorrect-enable-if,
23508113afSJayanth Othayothbugprone-incorrect-roundings,
24508113afSJayanth Othayothbugprone-infinite-loop,
25508113afSJayanth Othayothbugprone-integer-division,
26508113afSJayanth Othayothbugprone-lambda-function-name,
27508113afSJayanth Othayothbugprone-macro-parentheses,
28508113afSJayanth Othayothbugprone-macro-repeated-side-effects,
29508113afSJayanth Othayothbugprone-misplaced-operator-in-strlen-in-alloc,
30508113afSJayanth Othayothbugprone-misplaced-pointer-arithmetic-in-alloc,
31508113afSJayanth Othayothbugprone-misplaced-widening-cast,
32508113afSJayanth Othayothbugprone-move-forwarding-reference,
33508113afSJayanth Othayothbugprone-multi-level-implicit-pointer-conversion,
34508113afSJayanth Othayothbugprone-multiple-new-in-one-expression,
35508113afSJayanth Othayothbugprone-multiple-statement-macro,
3617ba876cSJayanth Othayothbugprone-narrowing-conversions,
37508113afSJayanth Othayothbugprone-no-escape,
38508113afSJayanth Othayothbugprone-non-zero-enum-to-bool-conversion,
39508113afSJayanth Othayothbugprone-not-null-terminated-result,
40508113afSJayanth Othayothbugprone-optional-value-conversion,
41508113afSJayanth Othayothbugprone-parent-virtual-call,
42508113afSJayanth Othayothbugprone-posix-return,
43508113afSJayanth Othayothbugprone-redundant-branch-condition,
44508113afSJayanth Othayothbugprone-reserved-identifier,
45508113afSJayanth Othayothbugprone-shared-ptr-array-mismatch,
46508113afSJayanth Othayothbugprone-signal-handler,
47508113afSJayanth Othayothbugprone-signed-char-misuse,
48508113afSJayanth Othayothbugprone-sizeof-container,
49508113afSJayanth Othayothbugprone-sizeof-expression,
50508113afSJayanth Othayothbugprone-spuriously-wake-up-functions,
51508113afSJayanth Othayothbugprone-standalone-empty,
52508113afSJayanth Othayothbugprone-string-constructor,
53508113afSJayanth Othayothbugprone-string-integer-assignment,
54508113afSJayanth Othayothbugprone-string-literal-with-embedded-nul,
55508113afSJayanth Othayothbugprone-stringview-nullptr,
56508113afSJayanth Othayothbugprone-suspicious-enum-usage,
57508113afSJayanth Othayothbugprone-suspicious-include,
58508113afSJayanth Othayothbugprone-suspicious-memory-comparison,
59508113afSJayanth Othayothbugprone-suspicious-memset-usage,
60508113afSJayanth Othayothbugprone-suspicious-missing-comma,
61508113afSJayanth Othayothbugprone-suspicious-realloc-usage,
62508113afSJayanth Othayothbugprone-suspicious-semicolon,
63508113afSJayanth Othayothbugprone-suspicious-string-compare,
64508113afSJayanth Othayothbugprone-swapped-arguments,
65508113afSJayanth Othayothbugprone-switch-missing-default-case,
66508113afSJayanth Othayothbugprone-terminating-continue,
67508113afSJayanth Othayothbugprone-throw-keyword-missing,
68508113afSJayanth Othayothbugprone-too-small-loop-variable,
69418d460aSJayanth Othayothbugprone-unchecked-optional-access,
70508113afSJayanth Othayothbugprone-undefined-memory-manipulation,
71508113afSJayanth Othayothbugprone-undelegated-constructor,
72508113afSJayanth Othayothbugprone-unhandled-exception-at-new,
73508113afSJayanth Othayothbugprone-unhandled-self-assignment,
74508113afSJayanth Othayothbugprone-unique-ptr-array-mismatch,
75508113afSJayanth Othayothbugprone-unsafe-functions,
76508113afSJayanth Othayothbugprone-unused-local-non-trivial-variable,
77508113afSJayanth Othayothbugprone-unused-raii,
78508113afSJayanth Othayothbugprone-unused-return-value,
79508113afSJayanth Othayothbugprone-use-after-move,
80508113afSJayanth Othayothbugprone-virtual-near-miss,
81630de6a3SJayanth Othayothcert-con36-c,
82630de6a3SJayanth Othayothcert-con54-cpp,
83630de6a3SJayanth Othayothcert-dcl03-c,
84630de6a3SJayanth Othayothcert-dcl16-c,
85630de6a3SJayanth Othayothcert-dcl21-cpp,
86630de6a3SJayanth Othayothcert-dcl37-c,
87630de6a3SJayanth Othayothcert-dcl50-cpp,
88630de6a3SJayanth Othayothcert-dcl51-cpp,
89630de6a3SJayanth Othayothcert-dcl54-cpp,
90630de6a3SJayanth Othayothcert-dcl58-cpp,
91630de6a3SJayanth Othayothcert-dcl59-cpp,
92630de6a3SJayanth Othayothcert-env33-c,
93630de6a3SJayanth Othayothcert-err09-cpp,
94630de6a3SJayanth Othayothcert-err34-c,
95630de6a3SJayanth Othayothcert-err52-cpp,
96630de6a3SJayanth Othayothcert-err60-cpp,
97630de6a3SJayanth Othayothcert-err61-cpp,
98630de6a3SJayanth Othayothcert-fio38-c,
99630de6a3SJayanth Othayothcert-flp30-c,
100630de6a3SJayanth Othayothcert-mem57-cpp,
101630de6a3SJayanth Othayothcert-msc30-c,
102630de6a3SJayanth Othayothcert-msc32-c,
103630de6a3SJayanth Othayothcert-msc50-cpp,
104630de6a3SJayanth Othayothcert-msc51-cpp,
105630de6a3SJayanth Othayothcert-oop11-cpp,
106630de6a3SJayanth Othayothcert-oop54-cpp,
107630de6a3SJayanth Othayothcert-oop57-cpp,
108630de6a3SJayanth Othayothcert-oop58-cpp,
109630de6a3SJayanth Othayothcert-pos44-c,
110630de6a3SJayanth Othayothcert-pos47-c,
111630de6a3SJayanth Othayothcert-sig30-c,
112630de6a3SJayanth Othayothcert-str34-c,
11304299a7fSJayanth Othayothclang-analyzer-apiModeling.Errno,
11404299a7fSJayanth Othayothclang-analyzer-apiModeling.TrustNonnull,
11504299a7fSJayanth Othayothclang-analyzer-apiModeling.TrustReturnsNonnull,
11604299a7fSJayanth Othayothclang-analyzer-apiModeling.google.GTest,
11704299a7fSJayanth Othayothclang-analyzer-apiModeling.llvm.CastValue,
11804299a7fSJayanth Othayothclang-analyzer-apiModeling.llvm.ReturnValue,
11904299a7fSJayanth Othayothclang-analyzer-core.BitwiseShift,
12004299a7fSJayanth Othayothclang-analyzer-core.CallAndMessage,
12104299a7fSJayanth Othayothclang-analyzer-core.CallAndMessageModeling,
12204299a7fSJayanth Othayothclang-analyzer-core.DivideZero,
12304299a7fSJayanth Othayothclang-analyzer-core.DynamicTypePropagation,
12404299a7fSJayanth Othayothclang-analyzer-core.NonNullParamChecker,
12504299a7fSJayanth Othayothclang-analyzer-core.NonnilStringConstants,
12604299a7fSJayanth Othayothclang-analyzer-core.NullDereference,
12704299a7fSJayanth Othayothclang-analyzer-core.StackAddrEscapeBase,
12804299a7fSJayanth Othayothclang-analyzer-core.StackAddressEscape,
12904299a7fSJayanth Othayothclang-analyzer-core.UndefinedBinaryOperatorResult,
13004299a7fSJayanth Othayothclang-analyzer-core.VLASize,
13104299a7fSJayanth Othayothclang-analyzer-core.builtin.BuiltinFunctions,
13204299a7fSJayanth Othayothclang-analyzer-core.builtin.NoReturnFunctions,
13304299a7fSJayanth Othayothclang-analyzer-core.uninitialized.ArraySubscript,
13404299a7fSJayanth Othayothclang-analyzer-core.uninitialized.Assign,
13504299a7fSJayanth Othayothclang-analyzer-core.uninitialized.Branch,
13604299a7fSJayanth Othayothclang-analyzer-core.uninitialized.CapturedBlockVariable,
13704299a7fSJayanth Othayothclang-analyzer-core.uninitialized.NewArraySize,
13804299a7fSJayanth Othayothclang-analyzer-core.uninitialized.UndefReturn,
13904299a7fSJayanth Othayothclang-analyzer-cplusplus.InnerPointer,
14004299a7fSJayanth Othayothclang-analyzer-cplusplus.Move,
14104299a7fSJayanth Othayothclang-analyzer-cplusplus.NewDelete,
14204299a7fSJayanth Othayothclang-analyzer-cplusplus.NewDeleteLeaks,
14304299a7fSJayanth Othayothclang-analyzer-cplusplus.PlacementNew,
14404299a7fSJayanth Othayothclang-analyzer-cplusplus.PureVirtualCall,
14504299a7fSJayanth Othayothclang-analyzer-cplusplus.SelfAssignment,
14604299a7fSJayanth Othayothclang-analyzer-cplusplus.SmartPtrModeling,
14704299a7fSJayanth Othayothclang-analyzer-cplusplus.StringChecker,
14804299a7fSJayanth Othayothclang-analyzer-cplusplus.VirtualCallModeling,
14904299a7fSJayanth Othayothclang-analyzer-deadcode.DeadStores,
15004299a7fSJayanth Othayothclang-analyzer-fuchsia.HandleChecker,
15104299a7fSJayanth Othayothclang-analyzer-nullability.NullPassedToNonnull,
15204299a7fSJayanth Othayothclang-analyzer-nullability.NullReturnedFromNonnull,
15304299a7fSJayanth Othayothclang-analyzer-nullability.NullabilityBase,
15404299a7fSJayanth Othayothclang-analyzer-nullability.NullableDereferenced,
15504299a7fSJayanth Othayothclang-analyzer-nullability.NullablePassedToNonnull,
15604299a7fSJayanth Othayothclang-analyzer-nullability.NullableReturnedFromNonnull,
15704299a7fSJayanth Othayothclang-analyzer-optin.core.EnumCastOutOfRange,
15804299a7fSJayanth Othayothclang-analyzer-optin.cplusplus.UninitializedObject,
15904299a7fSJayanth Othayothclang-analyzer-optin.cplusplus.VirtualCall,
16004299a7fSJayanth Othayothclang-analyzer-optin.mpi.MPI-Checker,
16104299a7fSJayanth Othayothclang-analyzer-optin.osx.OSObjectCStyleCast,
16204299a7fSJayanth Othayothclang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
16304299a7fSJayanth Othayothclang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
16404299a7fSJayanth Othayothclang-analyzer-optin.performance.GCDAntipattern,
16504299a7fSJayanth Othayothclang-analyzer-optin.performance.Padding,
16604299a7fSJayanth Othayothclang-analyzer-optin.portability.UnixAPI,
16704299a7fSJayanth Othayothclang-analyzer-osx.API,
16804299a7fSJayanth Othayothclang-analyzer-osx.MIG,
16904299a7fSJayanth Othayothclang-analyzer-osx.NSOrCFErrorDerefChecker,
17004299a7fSJayanth Othayothclang-analyzer-osx.NumberObjectConversion,
17104299a7fSJayanth Othayothclang-analyzer-osx.OSObjectRetainCount,
17204299a7fSJayanth Othayothclang-analyzer-osx.ObjCProperty,
17304299a7fSJayanth Othayothclang-analyzer-osx.SecKeychainAPI,
17404299a7fSJayanth Othayothclang-analyzer-osx.cocoa.AtSync,
17504299a7fSJayanth Othayothclang-analyzer-osx.cocoa.AutoreleaseWrite,
17604299a7fSJayanth Othayothclang-analyzer-osx.cocoa.ClassRelease,
17704299a7fSJayanth Othayothclang-analyzer-osx.cocoa.Dealloc,
17804299a7fSJayanth Othayothclang-analyzer-osx.cocoa.IncompatibleMethodTypes,
17904299a7fSJayanth Othayothclang-analyzer-osx.cocoa.Loops,
18004299a7fSJayanth Othayothclang-analyzer-osx.cocoa.MissingSuperCall,
18104299a7fSJayanth Othayothclang-analyzer-osx.cocoa.NSAutoreleasePool,
18204299a7fSJayanth Othayothclang-analyzer-osx.cocoa.NSError,
18304299a7fSJayanth Othayothclang-analyzer-osx.cocoa.NilArg,
18404299a7fSJayanth Othayothclang-analyzer-osx.cocoa.NonNilReturnValue,
18504299a7fSJayanth Othayothclang-analyzer-osx.cocoa.ObjCGenerics,
18604299a7fSJayanth Othayothclang-analyzer-osx.cocoa.RetainCount,
18704299a7fSJayanth Othayothclang-analyzer-osx.cocoa.RetainCountBase,
18804299a7fSJayanth Othayothclang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
18904299a7fSJayanth Othayothclang-analyzer-osx.cocoa.SelfInit,
19004299a7fSJayanth Othayothclang-analyzer-osx.cocoa.SuperDealloc,
19104299a7fSJayanth Othayothclang-analyzer-osx.cocoa.UnusedIvars,
19204299a7fSJayanth Othayothclang-analyzer-osx.cocoa.VariadicMethodTypes,
19304299a7fSJayanth Othayothclang-analyzer-osx.coreFoundation.CFError,
19404299a7fSJayanth Othayothclang-analyzer-osx.coreFoundation.CFNumber,
19504299a7fSJayanth Othayothclang-analyzer-osx.coreFoundation.CFRetainRelease,
19604299a7fSJayanth Othayothclang-analyzer-osx.coreFoundation.containers.OutOfBounds,
19704299a7fSJayanth Othayothclang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
19804299a7fSJayanth Othayothclang-analyzer-security.FloatLoopCounter,
19904299a7fSJayanth Othayothclang-analyzer-security.cert.env.InvalidPtr,
20004299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
20104299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
20204299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.UncheckedReturn,
20304299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.bcmp,
20404299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.bcopy,
20504299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.bzero,
20604299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
20704299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.getpw,
20804299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.gets,
20904299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.mkstemp,
21004299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.mktemp,
21104299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.rand,
21204299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.strcpy,
21304299a7fSJayanth Othayothclang-analyzer-security.insecureAPI.vfork,
21404299a7fSJayanth Othayothclang-analyzer-unix.API,
21504299a7fSJayanth Othayothclang-analyzer-unix.DynamicMemoryModeling,
21604299a7fSJayanth Othayothclang-analyzer-unix.Errno,
21704299a7fSJayanth Othayothclang-analyzer-unix.Malloc,
21804299a7fSJayanth Othayothclang-analyzer-unix.MallocSizeof,
21904299a7fSJayanth Othayothclang-analyzer-unix.MismatchedDeallocator,
22004299a7fSJayanth Othayothclang-analyzer-unix.StdCLibraryFunctions,
22104299a7fSJayanth Othayothclang-analyzer-unix.Vfork,
22204299a7fSJayanth Othayothclang-analyzer-unix.cstring.BadSizeArg,
22304299a7fSJayanth Othayothclang-analyzer-unix.cstring.CStringModeling,
22404299a7fSJayanth Othayothclang-analyzer-unix.cstring.NullArg,
22504299a7fSJayanth Othayothclang-analyzer-valist.CopyToSelf,
22604299a7fSJayanth Othayothclang-analyzer-valist.Uninitialized,
22704299a7fSJayanth Othayothclang-analyzer-valist.Unterminated,
22804299a7fSJayanth Othayothclang-analyzer-valist.ValistBase,
22904299a7fSJayanth Othayothclang-analyzer-webkit.NoUncountedMemberChecker,
23004299a7fSJayanth Othayothclang-analyzer-webkit.RefCntblBaseVirtualDtor,
23104299a7fSJayanth Othayothclang-analyzer-webkit.UncountedLambdaCapturesChecker,
2326e7bde5aSJayanth Othayothcppcoreguidelines-avoid-capturing-lambda-coroutines,
2336e7bde5aSJayanth Othayothcppcoreguidelines-avoid-goto,
2346e7bde5aSJayanth Othayothcppcoreguidelines-avoid-non-const-global-variables,
2356e7bde5aSJayanth Othayothcppcoreguidelines-avoid-reference-coroutine-parameters,
2366e7bde5aSJayanth Othayothcppcoreguidelines-c-copy-assignment-signature,
2376e7bde5aSJayanth Othayothcppcoreguidelines-interfaces-global-init,
2386e7bde5aSJayanth Othayothcppcoreguidelines-misleading-capture-default-by-value,
2396e7bde5aSJayanth Othayothcppcoreguidelines-narrowing-conversions,
2406e7bde5aSJayanth Othayothcppcoreguidelines-no-malloc,
2416e7bde5aSJayanth Othayothcppcoreguidelines-no-suspend-with-lock,
2426e7bde5aSJayanth Othayothcppcoreguidelines-noexcept-destructor,
2436e7bde5aSJayanth Othayothcppcoreguidelines-noexcept-move-operations,
2446e7bde5aSJayanth Othayothcppcoreguidelines-noexcept-swap,
2456e7bde5aSJayanth Othayothcppcoreguidelines-prefer-member-initializer,
246ceb3e762SJayanth Othayothcppcoreguidelines-pro-bounds-array-to-pointer-decay,
2476e7bde5aSJayanth Othayothcppcoreguidelines-pro-type-const-cast,
2486e7bde5aSJayanth Othayothcppcoreguidelines-pro-type-static-cast-downcast,
2496e7bde5aSJayanth Othayothcppcoreguidelines-pro-type-union-access,
2506e7bde5aSJayanth Othayothcppcoreguidelines-rvalue-reference-param-not-moved,
2516e7bde5aSJayanth Othayothcppcoreguidelines-use-default-member-init,
2526e7bde5aSJayanth Othayothcppcoreguidelines-virtual-class-destructor,
2536e7bde5aSJayanth Othayothcppcoreguidelines-slicing,
2546e7bde5aSJayanth Othayothcppcoreguidelines-special-member-functions,
255*ed4e9f5bSJayanth Othayothmisc-coroutine-hostile-raii,
256*ed4e9f5bSJayanth Othayothmisc-header-include-cycle,
257*ed4e9f5bSJayanth Othayothmisc-misleading-bidirectional,
258*ed4e9f5bSJayanth Othayothmisc-misleading-identifier,
259*ed4e9f5bSJayanth Othayothmisc-misplaced-const,
260*ed4e9f5bSJayanth Othayothmisc-new-delete-overloads,
261*ed4e9f5bSJayanth Othayothmisc-non-copyable-objects,
262*ed4e9f5bSJayanth Othayothmisc-redundant-expression,
263*ed4e9f5bSJayanth Othayothmisc-static-assert,
264*ed4e9f5bSJayanth Othayothmisc-throw-by-value-catch-by-reference,
265*ed4e9f5bSJayanth Othayothmisc-unconventional-assign-operator,
266*ed4e9f5bSJayanth Othayothmisc-uniqueptr-reset-release,
267*ed4e9f5bSJayanth Othayothmisc-unused-alias-decls,
268*ed4e9f5bSJayanth Othayothmisc-unused-parameters,
269*ed4e9f5bSJayanth Othayothmisc-unused-using-decls,
2704f68fc46SJayanth Othayothreadability-identifier-naming'
2714f68fc46SJayanth Othayoth
2724f68fc46SJayanth OthayothWarningsAsErrors: '*'
2734f68fc46SJayanth OthayothHeaderFilterRegex: '.*'
2744f68fc46SJayanth Othayoth
2754f68fc46SJayanth OthayothCheckOptions:
2764f68fc46SJayanth Othayoth  - { key: readability-identifier-naming.ClassCase,          	value: CamelCase  }
2774f68fc46SJayanth Othayoth  - { key: readability-identifier-naming.FunctionCase,  	value: camelBack  }
2784f68fc46SJayanth Othayoth  - { key: readability-identifier-naming.NamespaceCase, 	value: lower_case }
279