xref: /openbmc/libpldm/.clang-tidy (revision d0ba43af817d5a7763dec75a1309fe2ae37b95a6)
15ee8a94eSAndrew JefferyChecks: '
25ee8a94eSAndrew Jeffery-*,
35ee8a94eSAndrew Jefferybugprone-argument-comment,
45ee8a94eSAndrew Jefferybugprone-assert-side-effect,
55ee8a94eSAndrew Jefferybugprone-bad-signal-to-kill-thread,
65ee8a94eSAndrew Jefferybugprone-bool-pointer-implicit-conversion,
75ee8a94eSAndrew Jefferybugprone-branch-clone,
85ee8a94eSAndrew Jefferybugprone-dangling-handle,
95ee8a94eSAndrew Jefferybugprone-dynamic-static-initializers,
105ee8a94eSAndrew Jefferybugprone-fold-init-type,
115ee8a94eSAndrew Jefferybugprone-implicit-widening-of-multiplication-result,
125ee8a94eSAndrew Jefferybugprone-inaccurate-erase,
135ee8a94eSAndrew Jefferybugprone-incorrect-roundings,
145ee8a94eSAndrew Jefferybugprone-infinite-loop,
155ee8a94eSAndrew Jefferybugprone-integer-division,
165ee8a94eSAndrew Jefferybugprone-macro-parentheses,
175ee8a94eSAndrew Jefferybugprone-macro-repeated-side-effects,
185ee8a94eSAndrew Jefferybugprone-misplaced-operator-in-strlen-in-alloc,
195ee8a94eSAndrew Jefferybugprone-misplaced-pointer-arithmetic-in-alloc,
205ee8a94eSAndrew Jefferybugprone-misplaced-widening-cast,
215ee8a94eSAndrew Jefferybugprone-multiple-statement-macro,
225ee8a94eSAndrew Jefferybugprone-narrowing-conversions,
235ee8a94eSAndrew Jefferybugprone-no-escape,
245ee8a94eSAndrew Jefferybugprone-not-null-terminated-result,
255ee8a94eSAndrew Jefferybugprone-posix-return,
265ee8a94eSAndrew Jefferybugprone-redundant-branch-condition,
275ee8a94eSAndrew Jefferybugprone-reserved-identifier,
285ee8a94eSAndrew Jefferybugprone-signal-handler,
295ee8a94eSAndrew Jefferybugprone-signed-char-misuse,
305ee8a94eSAndrew Jefferybugprone-sizeof-container,
315ee8a94eSAndrew Jefferybugprone-sizeof-expression,
325ee8a94eSAndrew Jefferybugprone-spuriously-wake-up-functions,
335ee8a94eSAndrew Jefferybugprone-string-constructor,
345ee8a94eSAndrew Jefferybugprone-string-integer-assignment,
355ee8a94eSAndrew Jefferybugprone-string-literal-with-embedded-nul,
365ee8a94eSAndrew Jefferybugprone-suspicious-enum-usage,
375ee8a94eSAndrew Jefferybugprone-suspicious-include,
385ee8a94eSAndrew Jefferybugprone-suspicious-memset-usage,
395ee8a94eSAndrew Jefferybugprone-suspicious-missing-comma,
405ee8a94eSAndrew Jefferybugprone-suspicious-semicolon,
415ee8a94eSAndrew Jefferybugprone-suspicious-string-compare,
425ee8a94eSAndrew Jefferybugprone-swapped-arguments,
435ee8a94eSAndrew Jefferybugprone-terminating-continue,
445ee8a94eSAndrew Jefferybugprone-too-small-loop-variable,
455ee8a94eSAndrew Jefferybugprone-undefined-memory-manipulation,
465ee8a94eSAndrew Jefferybugprone-unhandled-self-assignment,
475ee8a94eSAndrew Jefferybugprone-unused-return-value,
485ee8a94eSAndrew Jefferycert-con36-c,
495ee8a94eSAndrew Jefferycert-con54-cpp,
505ee8a94eSAndrew Jefferycert-dcl03-c,
515ee8a94eSAndrew Jefferycert-dcl16-c,
525ee8a94eSAndrew Jefferycert-dcl21-cpp,
535ee8a94eSAndrew Jefferycert-dcl37-c,
545ee8a94eSAndrew Jefferycert-dcl50-cpp,
555ee8a94eSAndrew Jefferycert-dcl51-cpp,
565ee8a94eSAndrew Jefferycert-dcl54-cpp,
575ee8a94eSAndrew Jefferycert-dcl58-cpp,
585ee8a94eSAndrew Jefferycert-dcl59-cpp,
595ee8a94eSAndrew Jefferycert-env33-c,
605ee8a94eSAndrew Jefferycert-err09-cpp,
615ee8a94eSAndrew Jefferycert-err34-c,
625ee8a94eSAndrew Jefferycert-err52-cpp,
635ee8a94eSAndrew Jefferycert-err60-cpp,
645ee8a94eSAndrew Jefferycert-err61-cpp,
655ee8a94eSAndrew Jefferycert-fio38-c,
665ee8a94eSAndrew Jefferycert-flp30-c,
675ee8a94eSAndrew Jefferycert-mem57-cpp,
685ee8a94eSAndrew Jefferycert-msc30-c,
695ee8a94eSAndrew Jefferycert-msc32-c,
705ee8a94eSAndrew Jefferycert-msc50-cpp,
715ee8a94eSAndrew Jefferycert-msc51-cpp,
725ee8a94eSAndrew Jefferycert-oop11-cpp,
735ee8a94eSAndrew Jefferycert-oop54-cpp,
745ee8a94eSAndrew Jefferycert-oop57-cpp,
755ee8a94eSAndrew Jefferycert-oop58-cpp,
765ee8a94eSAndrew Jefferycert-pos44-c,
775ee8a94eSAndrew Jefferycert-pos47-c,
785ee8a94eSAndrew Jefferycert-sig30-c,
795ee8a94eSAndrew Jefferycert-str34-c,
805ee8a94eSAndrew Jefferyclang-analyzer-apiModeling.TrustNonnull,
815ee8a94eSAndrew Jefferyclang-analyzer-apiModeling.google.GTest,
825ee8a94eSAndrew Jefferyclang-analyzer-apiModeling.llvm.CastValue,
835ee8a94eSAndrew Jefferyclang-analyzer-apiModeling.llvm.ReturnValue,
845ee8a94eSAndrew Jefferyclang-analyzer-core.CallAndMessage,
855ee8a94eSAndrew Jefferyclang-analyzer-core.CallAndMessageModeling,
865ee8a94eSAndrew Jefferyclang-analyzer-core.DivideZero,
875ee8a94eSAndrew Jefferyclang-analyzer-core.DynamicTypePropagation,
885ee8a94eSAndrew Jefferyclang-analyzer-core.NonNullParamChecker,
895ee8a94eSAndrew Jefferyclang-analyzer-core.NonnilStringConstants,
905ee8a94eSAndrew Jefferyclang-analyzer-core.NullDereference,
915ee8a94eSAndrew Jefferyclang-analyzer-core.StackAddrEscapeBase,
925ee8a94eSAndrew Jefferyclang-analyzer-core.StackAddressEscape,
935ee8a94eSAndrew Jefferyclang-analyzer-core.UndefinedBinaryOperatorResult,
945ee8a94eSAndrew Jefferyclang-analyzer-core.VLASize,
955ee8a94eSAndrew Jefferyclang-analyzer-core.builtin.BuiltinFunctions,
965ee8a94eSAndrew Jefferyclang-analyzer-core.builtin.NoReturnFunctions,
975ee8a94eSAndrew Jefferyclang-analyzer-core.uninitialized.ArraySubscript,
985ee8a94eSAndrew Jefferyclang-analyzer-core.uninitialized.Assign,
995ee8a94eSAndrew Jefferyclang-analyzer-core.uninitialized.Branch,
1005ee8a94eSAndrew Jefferyclang-analyzer-core.uninitialized.CapturedBlockVariable,
1015ee8a94eSAndrew Jefferyclang-analyzer-core.uninitialized.UndefReturn,
1025ee8a94eSAndrew Jefferyclang-analyzer-deadcode.DeadStores,
1035ee8a94eSAndrew Jefferyclang-analyzer-nullability.NullPassedToNonnull,
1045ee8a94eSAndrew Jefferyclang-analyzer-nullability.NullReturnedFromNonnull,
1055ee8a94eSAndrew Jefferyclang-analyzer-nullability.NullabilityBase,
1065ee8a94eSAndrew Jefferyclang-analyzer-nullability.NullableDereferenced,
1075ee8a94eSAndrew Jefferyclang-analyzer-nullability.NullablePassedToNonnull,
1085ee8a94eSAndrew Jefferyclang-analyzer-nullability.NullableReturnedFromNonnull,
1095ee8a94eSAndrew Jefferyclang-analyzer-optin.mpi.MPI-Checker,
1105ee8a94eSAndrew Jefferyclang-analyzer-optin.performance.GCDAntipattern,
1115ee8a94eSAndrew Jefferyclang-analyzer-optin.performance.Padding,
1125ee8a94eSAndrew Jefferyclang-analyzer-optin.portability.UnixAPI,
1135ee8a94eSAndrew Jefferyclang-analyzer-security.FloatLoopCounter,
1145ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
1155ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.UncheckedReturn,
1165ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.bcmp,
1175ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.bcopy,
1185ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.bzero,
1195ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
1205ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.getpw,
1215ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.gets,
1225ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.mkstemp,
1235ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.mktemp,
1245ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.rand,
1255ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.strcpy,
1265ee8a94eSAndrew Jefferyclang-analyzer-security.insecureAPI.vfork,
1275ee8a94eSAndrew Jefferyclang-analyzer-unix.API,
1285ee8a94eSAndrew Jefferyclang-analyzer-unix.DynamicMemoryModeling,
1295ee8a94eSAndrew Jefferyclang-analyzer-unix.Malloc,
1305ee8a94eSAndrew Jefferyclang-analyzer-unix.MallocSizeof,
1315ee8a94eSAndrew Jefferyclang-analyzer-unix.MismatchedDeallocator,
1325ee8a94eSAndrew Jefferyclang-analyzer-unix.Vfork,
1335ee8a94eSAndrew Jefferyclang-analyzer-unix.cstring.BadSizeArg,
1345ee8a94eSAndrew Jefferyclang-analyzer-unix.cstring.CStringModeling,
1355ee8a94eSAndrew Jefferyclang-analyzer-unix.cstring.NullArg,
1365ee8a94eSAndrew Jefferyclang-analyzer-valist.CopyToSelf,
1375ee8a94eSAndrew Jefferyclang-analyzer-valist.Uninitialized,
1385ee8a94eSAndrew Jefferyclang-analyzer-valist.Unterminated,
1395ee8a94eSAndrew Jefferyclang-analyzer-valist.ValistBase,
1405ee8a94eSAndrew Jefferyclang-analyzer-webkit.NoUncountedMemberChecker,
1415ee8a94eSAndrew Jefferyclang-analyzer-webkit.RefCntblBaseVirtualDtor,
142*d0ba43afSAndrew Jefferycppcoreguidelines-pro-type-reinterpret-cast,
1435ee8a94eSAndrew Jefferymisc-misplaced-const,
1445ee8a94eSAndrew Jefferymisc-redundant-expression,
1455ee8a94eSAndrew Jefferymisc-static-assert,
1465ee8a94eSAndrew Jefferymisc-throw-by-value-catch-by-reference,
1475ee8a94eSAndrew Jefferymisc-unconventional-assign-operator,
1485ee8a94eSAndrew Jefferymisc-uniqueptr-reset-release,
1495ee8a94eSAndrew Jefferymisc-unused-using-decls,
1505ee8a94eSAndrew Jefferymodernize-avoid-bind,
1515ee8a94eSAndrew Jefferymodernize-deprecated-headers,
1525ee8a94eSAndrew Jefferymodernize-deprecated-ios-base-aliases,
1535ee8a94eSAndrew Jefferymodernize-loop-convert,
1545ee8a94eSAndrew Jefferymodernize-make-shared,
1555ee8a94eSAndrew Jefferymodernize-make-unique,
1565ee8a94eSAndrew Jefferymodernize-raw-string-literal,
1575ee8a94eSAndrew Jefferymodernize-replace-auto-ptr,
1585ee8a94eSAndrew Jefferymodernize-replace-random-shuffle,
1595ee8a94eSAndrew Jefferymodernize-return-braced-init-list,
1605ee8a94eSAndrew Jefferymodernize-shrink-to-fit,
1615ee8a94eSAndrew Jefferymodernize-unary-static-assert,
1625ee8a94eSAndrew Jefferymodernize-use-bool-literals,
1635ee8a94eSAndrew Jefferymodernize-use-transparent-functors,
1645ee8a94eSAndrew Jefferymodernize-use-uncaught-exceptions,
1655ee8a94eSAndrew Jefferyperformance-faster-string-find,
1665ee8a94eSAndrew Jefferyperformance-for-range-copy,
1675ee8a94eSAndrew Jefferyperformance-implicit-conversion-in-loop,
1685ee8a94eSAndrew Jefferyperformance-inefficient-algorithm,
1695ee8a94eSAndrew Jefferyperformance-inefficient-string-concatenation,
1705ee8a94eSAndrew Jefferyperformance-inefficient-vector-operation,
1715ee8a94eSAndrew Jefferyperformance-no-int-to-ptr,
1725ee8a94eSAndrew Jefferyperformance-type-promotion-in-math-fn,
1735ee8a94eSAndrew Jefferyperformance-unnecessary-copy-initialization,
1745ee8a94eSAndrew Jefferyperformance-unnecessary-value-param,
1755ee8a94eSAndrew Jefferyreadability-avoid-const-params-in-decls,
1765ee8a94eSAndrew Jefferyreadability-braces-around-statements,
1775ee8a94eSAndrew Jefferyreadability-const-return-type,
1785ee8a94eSAndrew Jefferyreadability-container-size-empty,
1795ee8a94eSAndrew Jefferyreadability-convert-member-functions-to-static,
1805ee8a94eSAndrew Jefferyreadability-delete-null-pointer,
1815ee8a94eSAndrew Jefferyreadability-deleted-default,
1825ee8a94eSAndrew Jefferyreadability-else-after-return,
1835ee8a94eSAndrew Jefferyreadability-function-size,
1845ee8a94eSAndrew Jeffery-readability-identifier-naming,
1855ee8a94eSAndrew Jefferyreadability-inconsistent-declaration-parameter-name,
1865ee8a94eSAndrew Jefferyreadability-isolate-declaration,
1875ee8a94eSAndrew Jefferyreadability-make-member-function-const,
1885ee8a94eSAndrew Jefferyreadability-misleading-indentation,
1895ee8a94eSAndrew Jefferyreadability-misplaced-array-index,
1905ee8a94eSAndrew Jefferyreadability-named-parameter,
1915ee8a94eSAndrew Jefferyreadability-non-const-parameter,
1925ee8a94eSAndrew Jeffery-readability-qualified-auto,
1935ee8a94eSAndrew Jefferyreadability-redundant-access-specifiers,
1945ee8a94eSAndrew Jefferyreadability-redundant-control-flow,
1955ee8a94eSAndrew Jefferyreadability-redundant-declaration,
1965ee8a94eSAndrew Jefferyreadability-redundant-function-ptr-dereference,
1975ee8a94eSAndrew Jefferyreadability-redundant-member-init,
1985ee8a94eSAndrew Jefferyreadability-redundant-preprocessor,
1995ee8a94eSAndrew Jefferyreadability-redundant-smartptr-get,
2005ee8a94eSAndrew Jefferyreadability-redundant-string-cstr,
2015ee8a94eSAndrew Jefferyreadability-redundant-string-init,
2025ee8a94eSAndrew Jefferyreadability-simplify-boolean-expr,
2035ee8a94eSAndrew Jefferyreadability-simplify-subscript-expr,
2045ee8a94eSAndrew Jefferyreadability-static-accessed-through-instance,
2055ee8a94eSAndrew Jefferyreadability-static-definition-in-anonymous-namespace,
2065ee8a94eSAndrew Jefferyreadability-string-compare,
2075ee8a94eSAndrew Jefferyreadability-suspicious-call-argument,
2085ee8a94eSAndrew Jeffery'
2095ee8a94eSAndrew Jeffery
2105ee8a94eSAndrew JefferyWarningsAsErrors: '*'
211ba1a5eb9SAndrew JefferyHeaderFilterRegex: '(libpldm)|(src)/'
2125ee8a94eSAndrew JefferyCheckOptions:
2135ee8a94eSAndrew Jeffery  - { key: readability-identifier-naming.VariableCase,  value: lower_case }
2145ee8a94eSAndrew Jeffery  - { key: readability-identifier-naming.FunctionCase,  value: lower_case }
2155ee8a94eSAndrew Jeffery  - { key: readability-identifier-naming.ParameterCase, value: lower_case }
2165ee8a94eSAndrew Jeffery  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
2175ee8a94eSAndrew Jeffery  - { key: readability-identifier-naming.StructCase,    value: lower_case  }
2185ee8a94eSAndrew Jeffery  - { key: cppcoreguidelines-macro-usage.AllowedRegexp, value: DEBUG*|NLOHMANN_JSON_SERIALIZE_ENUM }
219