xref: /openbmc/obmc-console/.clang-tidy (revision 1e04f449)
159d29a9fSAndrew JefferyChecks: '
259d29a9fSAndrew Jeffery-*,
359d29a9fSAndrew Jefferybugprone-argument-comment,
459d29a9fSAndrew Jefferybugprone-assert-side-effect,
559d29a9fSAndrew Jefferybugprone-bad-signal-to-kill-thread,
659d29a9fSAndrew Jefferybugprone-bool-pointer-implicit-conversion,
759d29a9fSAndrew Jefferybugprone-branch-clone,
859d29a9fSAndrew Jefferybugprone-dangling-handle,
959d29a9fSAndrew Jefferybugprone-dynamic-static-initializers,
1059d29a9fSAndrew Jefferybugprone-fold-init-type,
1159d29a9fSAndrew Jefferybugprone-implicit-widening-of-multiplication-result,
1259d29a9fSAndrew Jefferybugprone-inaccurate-erase,
1359d29a9fSAndrew Jefferybugprone-incorrect-roundings,
1459d29a9fSAndrew Jefferybugprone-infinite-loop,
1559d29a9fSAndrew Jefferybugprone-integer-division,
1659d29a9fSAndrew Jefferybugprone-macro-parentheses,
1759d29a9fSAndrew Jefferybugprone-macro-repeated-side-effects,
1859d29a9fSAndrew Jefferybugprone-misplaced-operator-in-strlen-in-alloc,
1959d29a9fSAndrew Jefferybugprone-misplaced-pointer-arithmetic-in-alloc,
2059d29a9fSAndrew Jefferybugprone-misplaced-widening-cast,
2159d29a9fSAndrew Jefferybugprone-multiple-statement-macro,
2259d29a9fSAndrew Jefferybugprone-narrowing-conversions,
2359d29a9fSAndrew Jefferybugprone-no-escape,
2459d29a9fSAndrew Jefferybugprone-not-null-terminated-result,
2559d29a9fSAndrew Jefferybugprone-posix-return,
2659d29a9fSAndrew Jefferybugprone-redundant-branch-condition,
2759d29a9fSAndrew Jefferybugprone-reserved-identifier,
2859d29a9fSAndrew Jefferybugprone-signal-handler,
2959d29a9fSAndrew Jefferybugprone-signed-char-misuse,
3059d29a9fSAndrew Jefferybugprone-sizeof-container,
3159d29a9fSAndrew Jefferybugprone-sizeof-expression,
3259d29a9fSAndrew Jefferybugprone-spuriously-wake-up-functions,
3359d29a9fSAndrew Jefferybugprone-string-constructor,
3459d29a9fSAndrew Jefferybugprone-string-integer-assignment,
3559d29a9fSAndrew Jefferybugprone-string-literal-with-embedded-nul,
3659d29a9fSAndrew Jefferybugprone-suspicious-enum-usage,
3759d29a9fSAndrew Jeffery-bugprone-suspicious-include,
3859d29a9fSAndrew Jefferybugprone-suspicious-memset-usage,
3959d29a9fSAndrew Jefferybugprone-suspicious-missing-comma,
4059d29a9fSAndrew Jefferybugprone-suspicious-semicolon,
4159d29a9fSAndrew Jefferybugprone-suspicious-string-compare,
4259d29a9fSAndrew Jefferybugprone-swapped-arguments,
4359d29a9fSAndrew Jefferybugprone-terminating-continue,
4459d29a9fSAndrew Jefferybugprone-too-small-loop-variable,
4559d29a9fSAndrew Jefferybugprone-undefined-memory-manipulation,
4659d29a9fSAndrew Jefferybugprone-unhandled-self-assignment,
4759d29a9fSAndrew Jefferybugprone-unused-return-value,
4859d29a9fSAndrew Jefferycert-con36-c,
4959d29a9fSAndrew Jefferycert-con54-cpp,
5059d29a9fSAndrew Jefferycert-dcl03-c,
5159d29a9fSAndrew Jefferycert-dcl16-c,
5259d29a9fSAndrew Jefferycert-dcl21-cpp,
5359d29a9fSAndrew Jefferycert-dcl37-c,
5459d29a9fSAndrew Jefferycert-dcl50-cpp,
5559d29a9fSAndrew Jefferycert-dcl51-cpp,
5659d29a9fSAndrew Jefferycert-dcl54-cpp,
5759d29a9fSAndrew Jefferycert-dcl58-cpp,
5859d29a9fSAndrew Jefferycert-dcl59-cpp,
5959d29a9fSAndrew Jefferycert-env33-c,
6059d29a9fSAndrew Jefferycert-err09-cpp,
6159d29a9fSAndrew Jefferycert-err34-c,
6259d29a9fSAndrew Jefferycert-err52-cpp,
6359d29a9fSAndrew Jefferycert-err60-cpp,
6459d29a9fSAndrew Jefferycert-err61-cpp,
6559d29a9fSAndrew Jefferycert-fio38-c,
6659d29a9fSAndrew Jefferycert-flp30-c,
6759d29a9fSAndrew Jefferycert-mem57-cpp,
6859d29a9fSAndrew Jefferycert-msc30-c,
6959d29a9fSAndrew Jefferycert-msc32-c,
7059d29a9fSAndrew Jefferycert-msc50-cpp,
7159d29a9fSAndrew Jefferycert-msc51-cpp,
7259d29a9fSAndrew Jefferycert-oop11-cpp,
7359d29a9fSAndrew Jefferycert-oop54-cpp,
7459d29a9fSAndrew Jefferycert-oop57-cpp,
7559d29a9fSAndrew Jefferycert-oop58-cpp,
7659d29a9fSAndrew Jefferycert-pos44-c,
7759d29a9fSAndrew Jefferycert-pos47-c,
7859d29a9fSAndrew Jefferycert-sig30-c,
7959d29a9fSAndrew Jefferycert-str34-c,
8059d29a9fSAndrew Jefferyclang-analyzer-apiModeling.TrustNonnull,
8159d29a9fSAndrew Jefferyclang-analyzer-apiModeling.google.GTest,
8259d29a9fSAndrew Jefferyclang-analyzer-apiModeling.llvm.CastValue,
8359d29a9fSAndrew Jefferyclang-analyzer-apiModeling.llvm.ReturnValue,
8459d29a9fSAndrew Jefferyclang-analyzer-core.CallAndMessage,
8559d29a9fSAndrew Jefferyclang-analyzer-core.CallAndMessageModeling,
8659d29a9fSAndrew Jefferyclang-analyzer-core.DivideZero,
8759d29a9fSAndrew Jefferyclang-analyzer-core.DynamicTypePropagation,
8859d29a9fSAndrew Jefferyclang-analyzer-core.NonNullParamChecker,
8959d29a9fSAndrew Jefferyclang-analyzer-core.NonnilStringConstants,
9059d29a9fSAndrew Jefferyclang-analyzer-core.NullDereference,
9159d29a9fSAndrew Jefferyclang-analyzer-core.StackAddrEscapeBase,
9259d29a9fSAndrew Jefferyclang-analyzer-core.StackAddressEscape,
9359d29a9fSAndrew Jefferyclang-analyzer-core.UndefinedBinaryOperatorResult,
9459d29a9fSAndrew Jefferyclang-analyzer-core.VLASize,
9559d29a9fSAndrew Jefferyclang-analyzer-core.builtin.BuiltinFunctions,
9659d29a9fSAndrew Jefferyclang-analyzer-core.builtin.NoReturnFunctions,
9759d29a9fSAndrew Jefferyclang-analyzer-core.uninitialized.ArraySubscript,
9859d29a9fSAndrew Jefferyclang-analyzer-core.uninitialized.Assign,
9959d29a9fSAndrew Jefferyclang-analyzer-core.uninitialized.Branch,
10059d29a9fSAndrew Jefferyclang-analyzer-core.uninitialized.CapturedBlockVariable,
10159d29a9fSAndrew Jefferyclang-analyzer-core.uninitialized.UndefReturn,
10259d29a9fSAndrew Jefferyclang-analyzer-deadcode.DeadStores,
10359d29a9fSAndrew Jefferyclang-analyzer-nullability.NullPassedToNonnull,
10459d29a9fSAndrew Jefferyclang-analyzer-nullability.NullReturnedFromNonnull,
10559d29a9fSAndrew Jefferyclang-analyzer-nullability.NullabilityBase,
10659d29a9fSAndrew Jefferyclang-analyzer-nullability.NullableDereferenced,
10759d29a9fSAndrew Jefferyclang-analyzer-nullability.NullablePassedToNonnull,
10859d29a9fSAndrew Jefferyclang-analyzer-nullability.NullableReturnedFromNonnull,
10959d29a9fSAndrew Jefferyclang-analyzer-optin.mpi.MPI-Checker,
11059d29a9fSAndrew Jefferyclang-analyzer-optin.performance.GCDAntipattern,
11159d29a9fSAndrew Jeffery-clang-analyzer-optin.performance.Padding,
11259d29a9fSAndrew Jeffery-clang-analyzer-optin.portability.UnixAPI,
11359d29a9fSAndrew Jefferyclang-analyzer-security.FloatLoopCounter,
11459d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
11559d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.UncheckedReturn,
11659d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.bcmp,
11759d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.bcopy,
11859d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.bzero,
11959d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
12059d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.getpw,
12159d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.gets,
12259d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.mkstemp,
12359d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.mktemp,
12459d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.rand,
12559d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.strcpy,
12659d29a9fSAndrew Jefferyclang-analyzer-security.insecureAPI.vfork,
12759d29a9fSAndrew Jefferyclang-analyzer-unix.API,
12859d29a9fSAndrew Jefferyclang-analyzer-unix.DynamicMemoryModeling,
12959d29a9fSAndrew Jeffery-clang-analyzer-unix.Malloc,
13059d29a9fSAndrew Jefferyclang-analyzer-unix.MallocSizeof,
13159d29a9fSAndrew Jefferyclang-analyzer-unix.MismatchedDeallocator,
13259d29a9fSAndrew Jefferyclang-analyzer-unix.Vfork,
13359d29a9fSAndrew Jefferyclang-analyzer-unix.cstring.BadSizeArg,
13459d29a9fSAndrew Jefferyclang-analyzer-unix.cstring.CStringModeling,
13559d29a9fSAndrew Jefferyclang-analyzer-unix.cstring.NullArg,
13659d29a9fSAndrew Jefferyclang-analyzer-valist.CopyToSelf,
13759d29a9fSAndrew Jefferyclang-analyzer-valist.Uninitialized,
13859d29a9fSAndrew Jefferyclang-analyzer-valist.Unterminated,
13959d29a9fSAndrew Jefferyclang-analyzer-valist.ValistBase,
14059d29a9fSAndrew Jefferyclang-analyzer-webkit.NoUncountedMemberChecker,
14159d29a9fSAndrew Jefferyclang-analyzer-webkit.RefCntblBaseVirtualDtor,
14259d29a9fSAndrew Jefferymisc-misplaced-const,
14359d29a9fSAndrew Jefferymisc-redundant-expression,
14459d29a9fSAndrew Jefferymisc-static-assert,
14559d29a9fSAndrew Jefferymisc-throw-by-value-catch-by-reference,
14659d29a9fSAndrew Jefferymisc-unconventional-assign-operator,
14759d29a9fSAndrew Jefferymisc-uniqueptr-reset-release,
14859d29a9fSAndrew Jefferymisc-unused-using-decls,
14959d29a9fSAndrew Jefferymodernize-avoid-bind,
15059d29a9fSAndrew Jefferymodernize-deprecated-headers,
15159d29a9fSAndrew Jefferymodernize-deprecated-ios-base-aliases,
15259d29a9fSAndrew Jefferymodernize-loop-convert,
15359d29a9fSAndrew Jefferymodernize-make-shared,
15459d29a9fSAndrew Jefferymodernize-make-unique,
15559d29a9fSAndrew Jefferymodernize-raw-string-literal,
15659d29a9fSAndrew Jefferymodernize-replace-auto-ptr,
15759d29a9fSAndrew Jefferymodernize-replace-random-shuffle,
15859d29a9fSAndrew Jefferymodernize-return-braced-init-list,
15959d29a9fSAndrew Jefferymodernize-shrink-to-fit,
16059d29a9fSAndrew Jefferymodernize-unary-static-assert,
16159d29a9fSAndrew Jefferymodernize-use-bool-literals,
16259d29a9fSAndrew Jefferymodernize-use-transparent-functors,
16359d29a9fSAndrew Jefferymodernize-use-uncaught-exceptions,
16459d29a9fSAndrew Jefferyperformance-faster-string-find,
16559d29a9fSAndrew Jefferyperformance-for-range-copy,
16659d29a9fSAndrew Jefferyperformance-implicit-conversion-in-loop,
16759d29a9fSAndrew Jefferyperformance-inefficient-algorithm,
16859d29a9fSAndrew Jefferyperformance-inefficient-string-concatenation,
16959d29a9fSAndrew Jefferyperformance-inefficient-vector-operation,
17059d29a9fSAndrew Jefferyperformance-no-int-to-ptr,
17159d29a9fSAndrew Jefferyperformance-type-promotion-in-math-fn,
17259d29a9fSAndrew Jefferyperformance-unnecessary-copy-initialization,
17359d29a9fSAndrew Jefferyperformance-unnecessary-value-param,
17459d29a9fSAndrew Jefferyreadability-avoid-const-params-in-decls,
17559d29a9fSAndrew Jefferyreadability-braces-around-statements,
17659d29a9fSAndrew Jefferyreadability-const-return-type,
17759d29a9fSAndrew Jefferyreadability-container-size-empty,
17859d29a9fSAndrew Jefferyreadability-convert-member-functions-to-static,
17959d29a9fSAndrew Jefferyreadability-delete-null-pointer,
18059d29a9fSAndrew Jefferyreadability-deleted-default,
18159d29a9fSAndrew Jefferyreadability-else-after-return,
18259d29a9fSAndrew Jefferyreadability-function-size,
18359d29a9fSAndrew Jeffery-readability-identifier-naming,
18459d29a9fSAndrew Jefferyreadability-inconsistent-declaration-parameter-name,
18559d29a9fSAndrew Jefferyreadability-isolate-declaration,
18659d29a9fSAndrew Jefferyreadability-make-member-function-const,
18759d29a9fSAndrew Jefferyreadability-misleading-indentation,
18859d29a9fSAndrew Jefferyreadability-misplaced-array-index,
18959d29a9fSAndrew Jefferyreadability-named-parameter,
19059d29a9fSAndrew Jefferyreadability-non-const-parameter,
19159d29a9fSAndrew Jeffery-readability-qualified-auto,
19259d29a9fSAndrew Jefferyreadability-redundant-access-specifiers,
19359d29a9fSAndrew Jefferyreadability-redundant-control-flow,
19459d29a9fSAndrew Jefferyreadability-redundant-declaration,
19559d29a9fSAndrew Jefferyreadability-redundant-function-ptr-dereference,
19659d29a9fSAndrew Jefferyreadability-redundant-member-init,
19759d29a9fSAndrew Jefferyreadability-redundant-preprocessor,
19859d29a9fSAndrew Jefferyreadability-redundant-smartptr-get,
19959d29a9fSAndrew Jefferyreadability-redundant-string-cstr,
20059d29a9fSAndrew Jefferyreadability-redundant-string-init,
20159d29a9fSAndrew Jefferyreadability-simplify-boolean-expr,
20259d29a9fSAndrew Jefferyreadability-simplify-subscript-expr,
20359d29a9fSAndrew Jefferyreadability-static-accessed-through-instance,
20459d29a9fSAndrew Jefferyreadability-static-definition-in-anonymous-namespace,
20559d29a9fSAndrew Jefferyreadability-string-compare,
20659d29a9fSAndrew Jefferyreadability-suspicious-call-argument,
20759d29a9fSAndrew Jeffery'
20859d29a9fSAndrew Jeffery
20959d29a9fSAndrew JefferyWarningsAsErrors: '*'
210*1e04f449SAlexander HansenHeaderFilterRegex: '^(test\/)?[a-zA-Z0-9]*\.h'
21159d29a9fSAndrew JefferyCheckOptions:
21259d29a9fSAndrew Jeffery  - { key: readability-identifier-naming.VariableCase,  value: lower_case }
21359d29a9fSAndrew Jeffery  - { key: readability-identifier-naming.FunctionCase,  value: lower_case }
21459d29a9fSAndrew Jeffery  - { key: readability-identifier-naming.ParameterCase, value: lower_case }
21559d29a9fSAndrew Jeffery  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
21659d29a9fSAndrew Jeffery  - { key: readability-identifier-naming.StructCase,    value: lower_case  }
21759d29a9fSAndrew Jeffery  - { key: cppcoreguidelines-macro-usage.AllowedRegexp, value: DEBUG*|NLOHMANN_JSON_SERIALIZE_ENUM }
218