xref: /openbmc/libcper/.clang-tidy (revision 9cca617220115b5a263fa894902221b5572b4d45)
1*9cca6172SPatrick WilliamsChecks: '-*,
266219857SEd Tanous    bugprone-argument-comment,
366219857SEd Tanous    bugprone-assert-side-effect,
466219857SEd Tanous    bugprone-bad-signal-to-kill-thread,
566219857SEd Tanous    bugprone-bool-pointer-implicit-conversion,
666219857SEd Tanous    bugprone-branch-clone,
766219857SEd Tanous    bugprone-dangling-handle,
866219857SEd Tanous    bugprone-dynamic-static-initializers,
966219857SEd Tanous    bugprone-fold-init-type,
1066219857SEd Tanous    bugprone-inaccurate-erase,
1166219857SEd Tanous    bugprone-incorrect-roundings,
1266219857SEd Tanous    bugprone-infinite-loop,
1366219857SEd Tanous    bugprone-integer-division,
1466219857SEd Tanous    bugprone-macro-parentheses,
1566219857SEd Tanous    bugprone-macro-repeated-side-effects,
1666219857SEd Tanous    bugprone-misplaced-operator-in-strlen-in-alloc,
1766219857SEd Tanous    bugprone-misplaced-pointer-arithmetic-in-alloc,
1866219857SEd Tanous    bugprone-misplaced-widening-cast,
1966219857SEd Tanous    bugprone-multiple-statement-macro,
2066219857SEd Tanous    bugprone-no-escape,
2166219857SEd Tanous    bugprone-not-null-terminated-result,
2266219857SEd Tanous    bugprone-posix-return,
2366219857SEd Tanous    bugprone-redundant-branch-condition,
2466219857SEd Tanous    bugprone-reserved-identifier,
2566219857SEd Tanous    bugprone-signal-handler,
2666219857SEd Tanous    bugprone-signed-char-misuse,
2766219857SEd Tanous    bugprone-sizeof-container,
2866219857SEd Tanous    bugprone-sizeof-expression,
2966219857SEd Tanous    bugprone-spuriously-wake-up-functions,
3066219857SEd Tanous    bugprone-string-constructor,
3166219857SEd Tanous    bugprone-string-integer-assignment,
3266219857SEd Tanous    bugprone-string-literal-with-embedded-nul,
3366219857SEd Tanous    bugprone-suspicious-enum-usage,
3466219857SEd Tanous    bugprone-suspicious-include,
3566219857SEd Tanous    bugprone-suspicious-memset-usage,
3666219857SEd Tanous    bugprone-suspicious-missing-comma,
3766219857SEd Tanous    bugprone-suspicious-semicolon,
3866219857SEd Tanous    bugprone-suspicious-string-compare,
3966219857SEd Tanous    bugprone-swapped-arguments,
4066219857SEd Tanous    bugprone-terminating-continue,
4166219857SEd Tanous    bugprone-too-small-loop-variable,
4266219857SEd Tanous    bugprone-undefined-memory-manipulation,
4366219857SEd Tanous    bugprone-unhandled-self-assignment,
4466219857SEd Tanous    bugprone-unused-return-value,
4566219857SEd Tanous    cert-con36-c,
4666219857SEd Tanous    cert-con54-cpp,
4766219857SEd Tanous    cert-dcl03-c,
4866219857SEd Tanous    cert-dcl16-c,
4966219857SEd Tanous    cert-dcl21-cpp,
5066219857SEd Tanous    cert-dcl37-c,
5166219857SEd Tanous    cert-dcl50-cpp,
5266219857SEd Tanous    cert-dcl51-cpp,
5366219857SEd Tanous    cert-dcl54-cpp,
5466219857SEd Tanous    cert-dcl58-cpp,
5566219857SEd Tanous    cert-dcl59-cpp,
5666219857SEd Tanous    cert-env33-c,
5766219857SEd Tanous    cert-err09-cpp,
5866219857SEd Tanous    cert-err52-cpp,
5966219857SEd Tanous    cert-err60-cpp,
6066219857SEd Tanous    cert-err61-cpp,
6166219857SEd Tanous    cert-fio38-c,
6266219857SEd Tanous    cert-flp30-c,
6366219857SEd Tanous    cert-mem57-cpp,
6466219857SEd Tanous    cert-oop11-cpp,
6566219857SEd Tanous    cert-oop54-cpp,
6666219857SEd Tanous    cert-oop57-cpp,
6766219857SEd Tanous    cert-oop58-cpp,
6866219857SEd Tanous    cert-pos44-c,
6966219857SEd Tanous    cert-pos47-c,
7066219857SEd Tanous    cert-sig30-c,
7166219857SEd Tanous    cert-str34-c,
7266219857SEd Tanous    clang-analyzer-apiModeling.TrustNonnull,
7366219857SEd Tanous    clang-analyzer-apiModeling.google.GTest,
7466219857SEd Tanous    clang-analyzer-apiModeling.llvm.CastValue,
7566219857SEd Tanous    clang-analyzer-apiModeling.llvm.ReturnValue,
7666219857SEd Tanous    clang-analyzer-core.CallAndMessage,
7766219857SEd Tanous    clang-analyzer-core.CallAndMessageModeling,
7866219857SEd Tanous    clang-analyzer-core.DivideZero,
7966219857SEd Tanous    clang-analyzer-core.DynamicTypePropagation,
8066219857SEd Tanous    clang-analyzer-core.NonNullParamChecker,
8166219857SEd Tanous    clang-analyzer-core.NonnilStringConstants,
8266219857SEd Tanous    clang-analyzer-core.NullDereference,
8366219857SEd Tanous    clang-analyzer-core.StackAddrEscapeBase,
8466219857SEd Tanous    clang-analyzer-core.StackAddressEscape,
8566219857SEd Tanous    clang-analyzer-core.UndefinedBinaryOperatorResult,
8666219857SEd Tanous    clang-analyzer-core.VLASize,
8766219857SEd Tanous    clang-analyzer-core.builtin.BuiltinFunctions,
8866219857SEd Tanous    clang-analyzer-core.builtin.NoReturnFunctions,
8966219857SEd Tanous    clang-analyzer-core.uninitialized.ArraySubscript,
9066219857SEd Tanous    clang-analyzer-core.uninitialized.Assign,
9166219857SEd Tanous    clang-analyzer-core.uninitialized.Branch,
9266219857SEd Tanous    clang-analyzer-core.uninitialized.CapturedBlockVariable,
9366219857SEd Tanous    clang-analyzer-core.uninitialized.UndefReturn,
9466219857SEd Tanous    clang-analyzer-deadcode.DeadStores,
9566219857SEd Tanous    clang-analyzer-nullability.NullPassedToNonnull,
9666219857SEd Tanous    clang-analyzer-nullability.NullReturnedFromNonnull,
9766219857SEd Tanous    clang-analyzer-nullability.NullabilityBase,
9866219857SEd Tanous    clang-analyzer-nullability.NullableDereferenced,
9966219857SEd Tanous    clang-analyzer-nullability.NullablePassedToNonnull,
10066219857SEd Tanous    clang-analyzer-nullability.NullableReturnedFromNonnull,
10166219857SEd Tanous    clang-analyzer-optin.mpi.MPI-Checker,
10266219857SEd Tanous    clang-analyzer-optin.performance.GCDAntipattern,
10366219857SEd Tanous    clang-analyzer-optin.performance.Padding,
10466219857SEd Tanous    clang-analyzer-optin.portability.UnixAPI,
10566219857SEd Tanous    clang-analyzer-security.FloatLoopCounter,
10666219857SEd Tanous    clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
10766219857SEd Tanous    clang-analyzer-security.insecureAPI.UncheckedReturn,
10866219857SEd Tanous    clang-analyzer-security.insecureAPI.bcmp,
10966219857SEd Tanous    clang-analyzer-security.insecureAPI.bcopy,
11066219857SEd Tanous    clang-analyzer-security.insecureAPI.bzero,
11166219857SEd Tanous    clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
11266219857SEd Tanous    clang-analyzer-security.insecureAPI.getpw,
11366219857SEd Tanous    clang-analyzer-security.insecureAPI.gets,
11466219857SEd Tanous    clang-analyzer-security.insecureAPI.mkstemp,
11566219857SEd Tanous    clang-analyzer-security.insecureAPI.mktemp,
11666219857SEd Tanous    clang-analyzer-security.insecureAPI.rand,
11766219857SEd Tanous    clang-analyzer-security.insecureAPI.vfork,
11866219857SEd Tanous    clang-analyzer-unix.API,
11966219857SEd Tanous    clang-analyzer-unix.DynamicMemoryModeling,
12066219857SEd Tanous    clang-analyzer-unix.Malloc,
12166219857SEd Tanous    clang-analyzer-unix.MallocSizeof,
12266219857SEd Tanous    clang-analyzer-unix.MismatchedDeallocator,
12366219857SEd Tanous    clang-analyzer-unix.Vfork,
12466219857SEd Tanous    clang-analyzer-unix.cstring.BadSizeArg,
12566219857SEd Tanous    clang-analyzer-unix.cstring.CStringModeling,
12666219857SEd Tanous    clang-analyzer-unix.cstring.NullArg,
12766219857SEd Tanous    clang-analyzer-valist.CopyToSelf,
12866219857SEd Tanous    clang-analyzer-valist.Uninitialized,
12966219857SEd Tanous    clang-analyzer-valist.Unterminated,
13066219857SEd Tanous    clang-analyzer-valist.ValistBase,
13166219857SEd Tanous    clang-analyzer-webkit.NoUncountedMemberChecker,
13266219857SEd Tanous    clang-analyzer-webkit.RefCntblBaseVirtualDtor,
13366219857SEd Tanous    misc-misplaced-const,
13466219857SEd Tanous    misc-redundant-expression,
13566219857SEd Tanous    misc-static-assert,
13666219857SEd Tanous    misc-throw-by-value-catch-by-reference,
13766219857SEd Tanous    misc-unconventional-assign-operator,
13866219857SEd Tanous    misc-uniqueptr-reset-release,
13966219857SEd Tanous    misc-unused-using-decls,
14066219857SEd Tanous    modernize-avoid-bind,
14166219857SEd Tanous    modernize-deprecated-ios-base-aliases,
14266219857SEd Tanous    modernize-loop-convert,
14366219857SEd Tanous    modernize-make-shared,
14466219857SEd Tanous    modernize-make-unique,
14566219857SEd Tanous    modernize-raw-string-literal,
14666219857SEd Tanous    modernize-replace-auto-ptr,
14766219857SEd Tanous    modernize-replace-random-shuffle,
14866219857SEd Tanous    modernize-return-braced-init-list,
14966219857SEd Tanous    modernize-shrink-to-fit,
15066219857SEd Tanous    modernize-unary-static-assert,
15166219857SEd Tanous    modernize-use-bool-literals,
15266219857SEd Tanous    modernize-use-transparent-functors,
15366219857SEd Tanous    modernize-use-uncaught-exceptions,
15466219857SEd Tanous    performance-faster-string-find,
15566219857SEd Tanous    performance-for-range-copy,
15666219857SEd Tanous    performance-implicit-conversion-in-loop,
15766219857SEd Tanous    performance-inefficient-algorithm,
15866219857SEd Tanous    performance-inefficient-string-concatenation,
15966219857SEd Tanous    performance-inefficient-vector-operation,
16066219857SEd Tanous    performance-no-int-to-ptr,
16166219857SEd Tanous    performance-type-promotion-in-math-fn,
16266219857SEd Tanous    performance-unnecessary-copy-initialization,
16366219857SEd Tanous    performance-unnecessary-value-param,
16466219857SEd Tanous    readability-avoid-const-params-in-decls,
16566219857SEd Tanous    readability-braces-around-statements,
16666219857SEd Tanous    readability-const-return-type,
16766219857SEd Tanous    readability-container-size-empty,
16866219857SEd Tanous    readability-convert-member-functions-to-static,
16966219857SEd Tanous    readability-delete-null-pointer,
17066219857SEd Tanous    readability-deleted-default,
17166219857SEd Tanous    readability-else-after-return,
17266219857SEd Tanous    readability-function-size,
17366219857SEd Tanous    -readability-identifier-naming,
17466219857SEd Tanous    readability-inconsistent-declaration-parameter-name,
17566219857SEd Tanous    readability-isolate-declaration,
17666219857SEd Tanous    readability-make-member-function-const,
17766219857SEd Tanous    readability-misleading-indentation,
17866219857SEd Tanous    readability-misplaced-array-index,
17966219857SEd Tanous    readability-named-parameter,
18066219857SEd Tanous    readability-non-const-parameter,
18166219857SEd Tanous    -readability-qualified-auto,
18266219857SEd Tanous    readability-redundant-access-specifiers,
18366219857SEd Tanous    readability-redundant-control-flow,
18466219857SEd Tanous    readability-redundant-declaration,
18566219857SEd Tanous    readability-redundant-function-ptr-dereference,
18666219857SEd Tanous    readability-redundant-member-init,
18766219857SEd Tanous    readability-redundant-preprocessor,
18866219857SEd Tanous    readability-redundant-smartptr-get,
18966219857SEd Tanous    readability-redundant-string-cstr,
19066219857SEd Tanous    readability-redundant-string-init,
19166219857SEd Tanous    readability-simplify-boolean-expr,
19266219857SEd Tanous    readability-simplify-subscript-expr,
19366219857SEd Tanous    readability-static-accessed-through-instance,
19466219857SEd Tanous    readability-static-definition-in-anonymous-namespace,
19566219857SEd Tanous    readability-string-compare,
196*9cca6172SPatrick Williams    readability-suspicious-call-argument
19766219857SEd Tanous    '
19866219857SEd Tanous
19966219857SEd TanousCheckOptions:
200*9cca6172SPatrick Williams-   key: readability-identifier-naming.FunctionCase
201*9cca6172SPatrick Williams    value: lower_case
202*9cca6172SPatrick Williams-   key: readability-identifier-naming.NamespaceCase
203*9cca6172SPatrick Williams    value: lower_case
204*9cca6172SPatrick Williams-   key: readability-identifier-naming.ParameterCase
205*9cca6172SPatrick Williams    value: lower_case
206*9cca6172SPatrick Williams-   key: readability-identifier-naming.StructCase
207*9cca6172SPatrick Williams    value: lower_case
208*9cca6172SPatrick Williams-   key: readability-identifier-naming.VariableCase
209*9cca6172SPatrick Williams    value: lower_case
210*9cca6172SPatrick Williams
211*9cca6172SPatrick WilliamsHeaderFilterRegex: (libcper)|(src)/
212*9cca6172SPatrick Williams
213*9cca6172SPatrick WilliamsWarningsAsErrors: '*'
214