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