xref: /openbmc/estoraged/.clang-tidy (revision 71f0903385927b9f279691cedc6cfc75eb57fb0a)
1*71f09033SPatrick WilliamsChecks: '-*,
282897c35SEd Tanous    boost-use-to-string,
382897c35SEd Tanous    bugprone-argument-comment,
482897c35SEd Tanous    bugprone-assert-side-effect,
582897c35SEd Tanous    bugprone-bad-signal-to-kill-thread,
682897c35SEd Tanous    bugprone-bool-pointer-implicit-conversion,
782897c35SEd Tanous    bugprone-branch-clone,
882897c35SEd Tanous    bugprone-copy-constructor-init,
982897c35SEd Tanous    bugprone-dangling-handle,
1082897c35SEd Tanous    bugprone-dynamic-static-initializers,
1182897c35SEd Tanous    bugprone-exception-escape,
1282897c35SEd Tanous    bugprone-fold-init-type,
1382897c35SEd Tanous    bugprone-forward-declaration-namespace,
1482897c35SEd Tanous    bugprone-forwarding-reference-overload,
1582897c35SEd Tanous    bugprone-implicit-widening-of-multiplication-result,
1682897c35SEd Tanous    bugprone-inaccurate-erase,
1782897c35SEd Tanous    bugprone-incorrect-roundings,
1882897c35SEd Tanous    bugprone-infinite-loop,
1982897c35SEd Tanous    bugprone-integer-division,
2082897c35SEd Tanous    bugprone-lambda-function-name,
2182897c35SEd Tanous    bugprone-macro-parentheses,
2282897c35SEd Tanous    bugprone-macro-repeated-side-effects,
2382897c35SEd Tanous    bugprone-misplaced-operator-in-strlen-in-alloc,
2482897c35SEd Tanous    bugprone-misplaced-pointer-arithmetic-in-alloc,
2582897c35SEd Tanous    bugprone-misplaced-widening-cast,
2682897c35SEd Tanous    bugprone-move-forwarding-reference,
2782897c35SEd Tanous    bugprone-multiple-statement-macro,
2882897c35SEd Tanous    bugprone-narrowing-conversions,
2982897c35SEd Tanous    bugprone-no-escape,
3082897c35SEd Tanous    bugprone-not-null-terminated-result,
3182897c35SEd Tanous    bugprone-parent-virtual-call,
3282897c35SEd Tanous    bugprone-posix-return,
3382897c35SEd Tanous    bugprone-redundant-branch-condition,
3482897c35SEd Tanous    bugprone-reserved-identifier,
3582897c35SEd Tanous    bugprone-signal-handler,
3682897c35SEd Tanous    bugprone-signed-char-misuse,
3782897c35SEd Tanous    bugprone-sizeof-container,
3882897c35SEd Tanous    bugprone-sizeof-expression,
3982897c35SEd Tanous    bugprone-spuriously-wake-up-functions,
4082897c35SEd Tanous    bugprone-string-constructor,
4182897c35SEd Tanous    bugprone-string-integer-assignment,
4282897c35SEd Tanous    bugprone-string-literal-with-embedded-nul,
4382897c35SEd Tanous    bugprone-suspicious-enum-usage,
4482897c35SEd Tanous    bugprone-suspicious-include,
4582897c35SEd Tanous    bugprone-suspicious-memset-usage,
4682897c35SEd Tanous    bugprone-suspicious-missing-comma,
4782897c35SEd Tanous    bugprone-suspicious-semicolon,
4882897c35SEd Tanous    bugprone-suspicious-string-compare,
4982897c35SEd Tanous    bugprone-swapped-arguments,
5082897c35SEd Tanous    bugprone-terminating-continue,
5182897c35SEd Tanous    bugprone-throw-keyword-missing,
5282897c35SEd Tanous    bugprone-too-small-loop-variable,
5382897c35SEd Tanous    bugprone-undefined-memory-manipulation,
5482897c35SEd Tanous    bugprone-undelegated-constructor,
5582897c35SEd Tanous    bugprone-unhandled-exception-at-new,
5682897c35SEd Tanous    bugprone-unhandled-self-assignment,
5782897c35SEd Tanous    bugprone-unused-raii,
5882897c35SEd Tanous    bugprone-unused-return-value,
5982897c35SEd Tanous    bugprone-use-after-move,
6082897c35SEd Tanous    bugprone-virtual-near-miss,
6182897c35SEd Tanous    cert-con36-c,
6282897c35SEd Tanous    cert-con54-cpp,
6382897c35SEd Tanous    cert-dcl03-c,
6482897c35SEd Tanous    cert-dcl16-c,
6582897c35SEd Tanous    cert-dcl21-cpp,
6682897c35SEd Tanous    cert-dcl37-c,
6782897c35SEd Tanous    cert-dcl50-cpp,
6882897c35SEd Tanous    cert-dcl51-cpp,
6982897c35SEd Tanous    cert-dcl54-cpp,
7082897c35SEd Tanous    cert-dcl58-cpp,
7182897c35SEd Tanous    cert-dcl59-cpp,
7282897c35SEd Tanous    cert-env33-c,
7382897c35SEd Tanous    cert-err09-cpp,
7482897c35SEd Tanous    cert-err34-c,
7582897c35SEd Tanous    cert-err52-cpp,
7682897c35SEd Tanous    cert-err60-cpp,
7782897c35SEd Tanous    cert-err61-cpp,
7882897c35SEd Tanous    cert-fio38-c,
7982897c35SEd Tanous    cert-flp30-c,
8082897c35SEd Tanous    cert-mem57-cpp,
8182897c35SEd Tanous    cert-msc30-c,
8282897c35SEd Tanous    cert-msc32-c,
8382897c35SEd Tanous    cert-msc50-cpp,
8482897c35SEd Tanous    cert-msc51-cpp,
8582897c35SEd Tanous    cert-oop11-cpp,
8682897c35SEd Tanous    cert-oop54-cpp,
8782897c35SEd Tanous    cert-oop57-cpp,
8882897c35SEd Tanous    cert-oop58-cpp,
8982897c35SEd Tanous    cert-pos44-c,
9082897c35SEd Tanous    cert-pos47-c,
9182897c35SEd Tanous    cert-sig30-c,
9282897c35SEd Tanous    cert-str34-c,
9382897c35SEd Tanous    clang-analyzer-apiModeling.StdCLibraryFunctions,
9482897c35SEd Tanous    clang-analyzer-apiModeling.TrustNonnull,
9582897c35SEd Tanous    clang-analyzer-apiModeling.google.GTest,
9682897c35SEd Tanous    clang-analyzer-apiModeling.llvm.CastValue,
9782897c35SEd Tanous    clang-analyzer-apiModeling.llvm.ReturnValue,
9882897c35SEd Tanous    clang-analyzer-core.CallAndMessageModeling,
9982897c35SEd Tanous    clang-analyzer-core.DivideZero,
10082897c35SEd Tanous    clang-analyzer-core.DynamicTypePropagation,
10182897c35SEd Tanous    clang-analyzer-core.NonNullParamChecker,
10282897c35SEd Tanous    clang-analyzer-core.NonnilStringConstants,
10382897c35SEd Tanous    clang-analyzer-core.NullDereference,
10482897c35SEd Tanous    clang-analyzer-core.StackAddrEscapeBase,
10582897c35SEd Tanous    clang-analyzer-core.StackAddressEscape,
10682897c35SEd Tanous    clang-analyzer-core.UndefinedBinaryOperatorResult,
10782897c35SEd Tanous    clang-analyzer-core.VLASize,
10882897c35SEd Tanous    clang-analyzer-core.builtin.BuiltinFunctions,
10982897c35SEd Tanous    clang-analyzer-core.builtin.NoReturnFunctions,
11082897c35SEd Tanous    clang-analyzer-core.uninitialized.ArraySubscript,
11182897c35SEd Tanous    clang-analyzer-core.uninitialized.Assign,
11282897c35SEd Tanous    clang-analyzer-core.uninitialized.Branch,
11382897c35SEd Tanous    clang-analyzer-core.uninitialized.CapturedBlockVariable,
11482897c35SEd Tanous    clang-analyzer-core.uninitialized.UndefReturn,
11582897c35SEd Tanous    clang-analyzer-cplusplus.InnerPointer,
11682897c35SEd Tanous    clang-analyzer-cplusplus.Move,
11782897c35SEd Tanous    clang-analyzer-cplusplus.NewDelete,
11882897c35SEd Tanous    clang-analyzer-cplusplus.NewDeleteLeaks,
11982897c35SEd Tanous    clang-analyzer-cplusplus.PlacementNew,
12082897c35SEd Tanous    clang-analyzer-cplusplus.PureVirtualCall,
12182897c35SEd Tanous    clang-analyzer-cplusplus.SelfAssignment,
12282897c35SEd Tanous    clang-analyzer-cplusplus.SmartPtrModeling,
12382897c35SEd Tanous    clang-analyzer-cplusplus.VirtualCallModeling,
12482897c35SEd Tanous    clang-analyzer-deadcode.DeadStores,
12582897c35SEd Tanous    clang-analyzer-fuchsia.HandleChecker,
12682897c35SEd Tanous    clang-analyzer-nullability.NullPassedToNonnull,
12782897c35SEd Tanous    clang-analyzer-nullability.NullReturnedFromNonnull,
12882897c35SEd Tanous    clang-analyzer-nullability.NullabilityBase,
12982897c35SEd Tanous    clang-analyzer-nullability.NullableDereferenced,
13082897c35SEd Tanous    clang-analyzer-nullability.NullablePassedToNonnull,
13182897c35SEd Tanous    clang-analyzer-nullability.NullableReturnedFromNonnull,
13282897c35SEd Tanous    clang-analyzer-optin.cplusplus.UninitializedObject,
13382897c35SEd Tanous    clang-analyzer-optin.cplusplus.VirtualCall,
13482897c35SEd Tanous    clang-analyzer-optin.mpi.MPI-Checker,
13582897c35SEd Tanous    clang-analyzer-optin.osx.OSObjectCStyleCast,
13682897c35SEd Tanous    clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
13782897c35SEd Tanous    clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
13882897c35SEd Tanous    clang-analyzer-optin.performance.GCDAntipattern,
13982897c35SEd Tanous    clang-analyzer-optin.performance.Padding,
14082897c35SEd Tanous    clang-analyzer-optin.portability.UnixAPI,
14182897c35SEd Tanous    clang-analyzer-osx.API,
14282897c35SEd Tanous    clang-analyzer-osx.MIG,
14382897c35SEd Tanous    clang-analyzer-osx.NSOrCFErrorDerefChecker,
14482897c35SEd Tanous    clang-analyzer-osx.NumberObjectConversion,
14582897c35SEd Tanous    clang-analyzer-osx.OSObjectRetainCount,
14682897c35SEd Tanous    clang-analyzer-osx.ObjCProperty,
14782897c35SEd Tanous    clang-analyzer-osx.SecKeychainAPI,
14882897c35SEd Tanous    clang-analyzer-osx.cocoa.AtSync,
14982897c35SEd Tanous    clang-analyzer-osx.cocoa.AutoreleaseWrite,
15082897c35SEd Tanous    clang-analyzer-osx.cocoa.ClassRelease,
15182897c35SEd Tanous    clang-analyzer-osx.cocoa.Dealloc,
15282897c35SEd Tanous    clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
15382897c35SEd Tanous    clang-analyzer-osx.cocoa.Loops,
15482897c35SEd Tanous    clang-analyzer-osx.cocoa.MissingSuperCall,
15582897c35SEd Tanous    clang-analyzer-osx.cocoa.NSAutoreleasePool,
15682897c35SEd Tanous    clang-analyzer-osx.cocoa.NSError,
15782897c35SEd Tanous    clang-analyzer-osx.cocoa.NilArg,
15882897c35SEd Tanous    clang-analyzer-osx.cocoa.NonNilReturnValue,
15982897c35SEd Tanous    clang-analyzer-osx.cocoa.ObjCGenerics,
16082897c35SEd Tanous    clang-analyzer-osx.cocoa.RetainCount,
16182897c35SEd Tanous    clang-analyzer-osx.cocoa.RetainCountBase,
16282897c35SEd Tanous    clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
16382897c35SEd Tanous    clang-analyzer-osx.cocoa.SelfInit,
16482897c35SEd Tanous    clang-analyzer-osx.cocoa.SuperDealloc,
16582897c35SEd Tanous    clang-analyzer-osx.cocoa.UnusedIvars,
16682897c35SEd Tanous    clang-analyzer-osx.cocoa.VariadicMethodTypes,
16782897c35SEd Tanous    clang-analyzer-osx.coreFoundation.CFError,
16882897c35SEd Tanous    clang-analyzer-osx.coreFoundation.CFNumber,
16982897c35SEd Tanous    clang-analyzer-osx.coreFoundation.CFRetainRelease,
17082897c35SEd Tanous    clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
17182897c35SEd Tanous    clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
17282897c35SEd Tanous    clang-analyzer-security.FloatLoopCounter,
17382897c35SEd Tanous    clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
17482897c35SEd Tanous    clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
17582897c35SEd Tanous    clang-analyzer-security.insecureAPI.UncheckedReturn,
17682897c35SEd Tanous    clang-analyzer-security.insecureAPI.bcmp,
17782897c35SEd Tanous    clang-analyzer-security.insecureAPI.bcopy,
17882897c35SEd Tanous    clang-analyzer-security.insecureAPI.bzero,
17982897c35SEd Tanous    clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
18082897c35SEd Tanous    clang-analyzer-security.insecureAPI.getpw,
18182897c35SEd Tanous    clang-analyzer-security.insecureAPI.gets,
18282897c35SEd Tanous    clang-analyzer-security.insecureAPI.mkstemp,
18382897c35SEd Tanous    clang-analyzer-security.insecureAPI.mktemp,
18482897c35SEd Tanous    clang-analyzer-security.insecureAPI.rand,
18582897c35SEd Tanous    clang-analyzer-security.insecureAPI.strcpy,
18682897c35SEd Tanous    clang-analyzer-security.insecureAPI.vfork,
18782897c35SEd Tanous    clang-analyzer-unix.API,
18882897c35SEd Tanous    clang-analyzer-unix.DynamicMemoryModeling,
18982897c35SEd Tanous    clang-analyzer-unix.Malloc,
19082897c35SEd Tanous    clang-analyzer-unix.MallocSizeof,
19182897c35SEd Tanous    clang-analyzer-unix.MismatchedDeallocator,
19282897c35SEd Tanous    clang-analyzer-unix.Vfork,
19382897c35SEd Tanous    clang-analyzer-unix.cstring.BadSizeArg,
19482897c35SEd Tanous    clang-analyzer-unix.cstring.CStringModeling,
19582897c35SEd Tanous    clang-analyzer-unix.cstring.NullArg,
19682897c35SEd Tanous    clang-analyzer-valist.CopyToSelf,
19782897c35SEd Tanous    clang-analyzer-valist.Uninitialized,
19882897c35SEd Tanous    clang-analyzer-valist.Unterminated,
19982897c35SEd Tanous    clang-analyzer-valist.ValistBase,
20082897c35SEd Tanous    clang-analyzer-webkit.NoUncountedMemberChecker,
20182897c35SEd Tanous    clang-analyzer-webkit.RefCntblBaseVirtualDtor,
20282897c35SEd Tanous    cppcoreguidelines-avoid-c-arrays,
20382897c35SEd Tanous    cppcoreguidelines-c-copy-assignment-signature,
20482897c35SEd Tanous    cppcoreguidelines-explicit-virtual-functions,
20582897c35SEd Tanous    cppcoreguidelines-init-variables,
20682897c35SEd Tanous    cppcoreguidelines-interfaces-global-init,
20782897c35SEd Tanous    cppcoreguidelines-macro-usage,
20882897c35SEd Tanous    cppcoreguidelines-narrowing-conversions,
20982897c35SEd Tanous    cppcoreguidelines-no-malloc,
21082897c35SEd Tanous    cppcoreguidelines-prefer-member-initializer,
21182897c35SEd Tanous    cppcoreguidelines-pro-bounds-array-to-pointer-decay,
21282897c35SEd Tanous    cppcoreguidelines-pro-bounds-pointer-arithmetic,
21382897c35SEd Tanous    cppcoreguidelines-pro-type-const-cast,
21482897c35SEd Tanous    cppcoreguidelines-pro-type-cstyle-cast,
21582897c35SEd Tanous    cppcoreguidelines-pro-type-member-init,
21682897c35SEd Tanous    cppcoreguidelines-pro-type-static-cast-downcast,
21782897c35SEd Tanous    cppcoreguidelines-pro-type-union-access,
21882897c35SEd Tanous    cppcoreguidelines-pro-type-vararg,
21982897c35SEd Tanous    cppcoreguidelines-slicing,
22082897c35SEd Tanous    cppcoreguidelines-special-member-functions,
22182897c35SEd Tanous    misc-misplaced-const,
22282897c35SEd Tanous    misc-redundant-expression,
22382897c35SEd Tanous    misc-static-assert,
22482897c35SEd Tanous    misc-throw-by-value-catch-by-reference,
22582897c35SEd Tanous    misc-unconventional-assign-operator,
22682897c35SEd Tanous    misc-uniqueptr-reset-release,
22782897c35SEd Tanous    misc-unused-using-decls,
22882897c35SEd Tanous    modernize-avoid-bind,
22982897c35SEd Tanous    modernize-deprecated-headers,
23082897c35SEd Tanous    modernize-deprecated-ios-base-aliases,
23182897c35SEd Tanous    modernize-loop-convert,
23282897c35SEd Tanous    modernize-make-shared,
23382897c35SEd Tanous    modernize-make-unique,
23482897c35SEd Tanous    modernize-raw-string-literal,
23582897c35SEd Tanous    modernize-replace-auto-ptr,
23682897c35SEd Tanous    modernize-replace-random-shuffle,
23782897c35SEd Tanous    modernize-return-braced-init-list,
23882897c35SEd Tanous    modernize-shrink-to-fit,
23982897c35SEd Tanous    modernize-unary-static-assert,
24082897c35SEd Tanous    modernize-use-bool-literals,
24182897c35SEd Tanous    modernize-use-default-member-init,
24282897c35SEd Tanous    modernize-use-emplace,
24382897c35SEd Tanous    modernize-use-equals-default,
24482897c35SEd Tanous    modernize-use-equals-delete,
24582897c35SEd Tanous    modernize-use-noexcept,
24682897c35SEd Tanous    modernize-use-nullptr,
24782897c35SEd Tanous    modernize-use-override,
24882897c35SEd Tanous    modernize-use-transparent-functors,
24982897c35SEd Tanous    modernize-use-uncaught-exceptions,
25082897c35SEd Tanous    modernize-use-using,
25182897c35SEd Tanous    performance-faster-string-find,
25282897c35SEd Tanous    performance-for-range-copy,
25382897c35SEd Tanous    performance-implicit-conversion-in-loop,
25482897c35SEd Tanous    performance-inefficient-algorithm,
25582897c35SEd Tanous    performance-inefficient-string-concatenation,
25682897c35SEd Tanous    performance-inefficient-vector-operation,
25782897c35SEd Tanous    performance-move-const-arg,
25882897c35SEd Tanous    performance-move-constructor-init,
25982897c35SEd Tanous    performance-no-automatic-move,
26082897c35SEd Tanous    performance-no-int-to-ptr,
26182897c35SEd Tanous    performance-noexcept-move-constructor,
26282897c35SEd Tanous    performance-trivially-destructible,
26382897c35SEd Tanous    performance-type-promotion-in-math-fn,
26482897c35SEd Tanous    performance-unnecessary-copy-initialization,
26582897c35SEd Tanous    performance-unnecessary-value-param,
26682897c35SEd Tanous    readability-avoid-const-params-in-decls,
26782897c35SEd Tanous    readability-braces-around-statements,
26882897c35SEd Tanous    readability-const-return-type,
26982897c35SEd Tanous    readability-container-size-empty,
27082897c35SEd Tanous    readability-delete-null-pointer,
27182897c35SEd Tanous    readability-deleted-default,
27282897c35SEd Tanous    readability-else-after-return,
273*71f09033SPatrick Williams    readability-identifier-naming,
27482897c35SEd Tanous    readability-implicit-bool-conversion,
27582897c35SEd Tanous    readability-named-parameter,
27682897c35SEd Tanous    readability-redundant-control-flow,
27782897c35SEd Tanous    readability-redundant-declaration,
27882897c35SEd Tanous    readability-redundant-function-ptr-dereference,
27982897c35SEd Tanous    readability-redundant-member-init,
28082897c35SEd Tanous    readability-redundant-preprocessor,
28182897c35SEd Tanous    readability-redundant-smartptr-get,
28282897c35SEd Tanous    readability-redundant-string-cstr,
28382897c35SEd Tanous    readability-redundant-string-init,
28482897c35SEd Tanous    readability-static-accessed-through-instance,
285*71f09033SPatrick Williams    readability-uppercase-literal-suffix
286*71f09033SPatrick Williams    '
287*71f09033SPatrick Williams
288*71f09033SPatrick WilliamsCheckOptions:
289*71f09033SPatrick Williams-   key: cppcoreguidelines-macro-usage.AllowedRegexp
290*71f09033SPatrick Williams    value: ((ERASE_MIN_GEOMETRY)|(ERASE_MAX_GEOMETRY)|(twiddleextCsdEraseGroupDef))
291*71f09033SPatrick Williams-   key: readability-identifier-naming.ClassCase
292*71f09033SPatrick Williams    value: CamelCase
293*71f09033SPatrick Williams-   key: readability-identifier-naming.FunctionCase
294*71f09033SPatrick Williams    value: camelBack
295*71f09033SPatrick Williams-   key: readability-identifier-naming.NamespaceCase
296*71f09033SPatrick Williams    value: lower_case
297*71f09033SPatrick Williams-   key: readability-identifier-naming.ParameterCase
298*71f09033SPatrick Williams    value: camelBack
299*71f09033SPatrick Williams-   key: readability-identifier-naming.StructCase
300*71f09033SPatrick Williams    value: CamelCase
301*71f09033SPatrick Williams-   key: readability-identifier-naming.VariableCase
302*71f09033SPatrick Williams    value: camelBack
303*71f09033SPatrick Williams
304*71f09033SPatrick WilliamsHeaderFilterRegex: (?!^subprojects).*
30582897c35SEd Tanous
30682897c35SEd TanousWarningsAsErrors: '*'
307