xref: /openbmc/bmcweb/.clang-tidy (revision 6de264cc79f5d0186f0136dbb8af15794e295894)
13174e4dfSEd TanousChecks: '
23174e4dfSEd Tanous-*,
3f23b7296SEd Tanousbugprone-argument-comment,
4f23b7296SEd Tanousbugprone-assert-side-effect,
5f23b7296SEd Tanousbugprone-bad-signal-to-kill-thread,
6f23b7296SEd Tanousbugprone-bool-pointer-implicit-conversion,
7f23b7296SEd Tanousbugprone-branch-clone,
8f23b7296SEd Tanousbugprone-copy-constructor-init,
9f23b7296SEd Tanousbugprone-dangling-handle,
10f23b7296SEd Tanousbugprone-dynamic-static-initializers,
1124b2fe81SEd Tanousbugprone-exception-escape,
12f23b7296SEd Tanousbugprone-fold-init-type,
13f23b7296SEd Tanousbugprone-forward-declaration-namespace,
14f23b7296SEd Tanousbugprone-forwarding-reference-overload,
15*6de264ccSEd Tanousbugprone-implicit-widening-of-multiplication-result,
16f23b7296SEd Tanousbugprone-inaccurate-erase,
17f23b7296SEd Tanousbugprone-incorrect-roundings,
18f23b7296SEd Tanousbugprone-infinite-loop,
19f23b7296SEd Tanousbugprone-integer-division,
20f23b7296SEd Tanousbugprone-lambda-function-name,
21f23b7296SEd Tanousbugprone-macro-parentheses,
22f23b7296SEd Tanousbugprone-macro-repeated-side-effects,
23f23b7296SEd Tanousbugprone-misplaced-operator-in-strlen-in-alloc,
24f23b7296SEd Tanousbugprone-misplaced-pointer-arithmetic-in-alloc,
25f23b7296SEd Tanousbugprone-misplaced-widening-cast,
26f94c4ecfSEd Tanousbugprone-move-forwarding-reference,
27f23b7296SEd Tanousbugprone-multiple-statement-macro,
28f23b7296SEd Tanousbugprone-narrowing-conversions,
29f23b7296SEd Tanousbugprone-no-escape,
30f23b7296SEd Tanousbugprone-not-null-terminated-result,
31f23b7296SEd Tanousbugprone-parent-virtual-call,
32f23b7296SEd Tanousbugprone-posix-return,
33f23b7296SEd Tanousbugprone-reserved-identifier,
34f23b7296SEd Tanousbugprone-signed-char-misuse,
35f23b7296SEd Tanousbugprone-sizeof-container,
36f23b7296SEd Tanousbugprone-sizeof-expression,
37f23b7296SEd Tanousbugprone-spuriously-wake-up-functions,
38f23b7296SEd Tanousbugprone-string-constructor,
39f23b7296SEd Tanousbugprone-string-integer-assignment,
40f23b7296SEd Tanousbugprone-string-literal-with-embedded-nul,
41f23b7296SEd Tanousbugprone-suspicious-enum-usage,
42b00dcc27SEd Tanous#bugprone-suspicious-include,
43f23b7296SEd Tanousbugprone-suspicious-memset-usage,
44f23b7296SEd Tanousbugprone-suspicious-missing-comma,
45f23b7296SEd Tanousbugprone-suspicious-semicolon,
46f23b7296SEd Tanousbugprone-suspicious-string-compare,
47f23b7296SEd Tanousbugprone-swapped-arguments,
48f23b7296SEd Tanousbugprone-terminating-continue,
49f23b7296SEd Tanousbugprone-throw-keyword-missing,
50f23b7296SEd Tanousbugprone-too-small-loop-variable,
51f23b7296SEd Tanousbugprone-undefined-memory-manipulation,
52f23b7296SEd Tanousbugprone-undelegated-constructor,
53f23b7296SEd Tanousbugprone-unhandled-self-assignment,
54f23b7296SEd Tanousbugprone-unused-raii,
55f23b7296SEd Tanousbugprone-unused-return-value,
56f23b7296SEd Tanousbugprone-use-after-move,
57f23b7296SEd Tanousbugprone-virtual-near-miss,
58f23b7296SEd Tanouscert-con36-c,
59f23b7296SEd Tanouscert-con54-cpp,
60f23b7296SEd Tanouscert-dcl03-c,
61f23b7296SEd Tanouscert-dcl16-c,
62f23b7296SEd Tanouscert-dcl21-cpp,
63f23b7296SEd Tanouscert-dcl37-c,
64f23b7296SEd Tanouscert-dcl50-cpp,
65f23b7296SEd Tanouscert-dcl51-cpp,
66f23b7296SEd Tanouscert-dcl54-cpp,
67f23b7296SEd Tanouscert-dcl58-cpp,
68f23b7296SEd Tanouscert-dcl59-cpp,
69f23b7296SEd Tanouscert-env33-c,
70f23b7296SEd Tanouscert-err09-cpp,
71f23b7296SEd Tanouscert-err34-c,
72f23b7296SEd Tanouscert-err52-cpp,
73f23b7296SEd Tanouscert-err60-cpp,
74f23b7296SEd Tanouscert-err61-cpp,
75f23b7296SEd Tanouscert-fio38-c,
76f23b7296SEd Tanouscert-flp30-c,
77f23b7296SEd Tanouscert-mem57-cpp,
78f23b7296SEd Tanouscert-msc30-c,
79f23b7296SEd Tanouscert-msc32-c,
80f23b7296SEd Tanouscert-msc50-cpp,
81f23b7296SEd Tanouscert-msc51-cpp,
82f23b7296SEd Tanouscert-oop11-cpp,
83f23b7296SEd Tanouscert-oop54-cpp,
84f23b7296SEd Tanouscert-oop57-cpp,
853174e4dfSEd Tanousclang-analyzer-apiModeling.StdCLibraryFunctions,
863174e4dfSEd Tanousclang-analyzer-apiModeling.TrustNonnull,
873174e4dfSEd Tanousclang-analyzer-apiModeling.google.GTest,
883174e4dfSEd Tanousclang-analyzer-apiModeling.llvm.CastValue,
893174e4dfSEd Tanousclang-analyzer-apiModeling.llvm.ReturnValue,
903174e4dfSEd Tanousclang-analyzer-core.CallAndMessage,
913174e4dfSEd Tanousclang-analyzer-core.CallAndMessageModeling,
923174e4dfSEd Tanousclang-analyzer-core.DivideZero,
933174e4dfSEd Tanousclang-analyzer-core.DynamicTypePropagation,
943174e4dfSEd Tanousclang-analyzer-core.NonNullParamChecker,
953174e4dfSEd Tanousclang-analyzer-core.NonnilStringConstants,
963174e4dfSEd Tanousclang-analyzer-core.NullDereference,
973174e4dfSEd Tanousclang-analyzer-core.StackAddrEscapeBase,
983174e4dfSEd Tanousclang-analyzer-core.StackAddressEscape,
993174e4dfSEd Tanousclang-analyzer-core.UndefinedBinaryOperatorResult,
1003174e4dfSEd Tanousclang-analyzer-core.VLASize,
1013174e4dfSEd Tanousclang-analyzer-core.builtin.BuiltinFunctions,
1023174e4dfSEd Tanousclang-analyzer-core.builtin.NoReturnFunctions,
1033174e4dfSEd Tanousclang-analyzer-core.uninitialized.ArraySubscript,
1043174e4dfSEd Tanousclang-analyzer-core.uninitialized.Assign,
1053174e4dfSEd Tanousclang-analyzer-core.uninitialized.Branch,
1063174e4dfSEd Tanousclang-analyzer-core.uninitialized.CapturedBlockVariable,
1073174e4dfSEd Tanousclang-analyzer-core.uninitialized.UndefReturn,
1083174e4dfSEd Tanousclang-analyzer-cplusplus.InnerPointer,
1093174e4dfSEd Tanousclang-analyzer-cplusplus.Move,
1103174e4dfSEd Tanousclang-analyzer-cplusplus.NewDelete,
1113174e4dfSEd Tanousclang-analyzer-cplusplus.NewDeleteLeaks,
1123174e4dfSEd Tanousclang-analyzer-cplusplus.PlacementNew,
1133174e4dfSEd Tanousclang-analyzer-cplusplus.PureVirtualCall,
1143174e4dfSEd Tanousclang-analyzer-cplusplus.SelfAssignment,
1153174e4dfSEd Tanousclang-analyzer-cplusplus.SmartPtrModeling,
1163174e4dfSEd Tanousclang-analyzer-cplusplus.VirtualCallModeling,
1173174e4dfSEd Tanousclang-analyzer-deadcode.DeadStores,
1183174e4dfSEd Tanousclang-analyzer-fuchsia.HandleChecker,
1193174e4dfSEd Tanousclang-analyzer-nullability.NullPassedToNonnull,
1203174e4dfSEd Tanousclang-analyzer-nullability.NullReturnedFromNonnull,
1213174e4dfSEd Tanousclang-analyzer-nullability.NullabilityBase,
1223174e4dfSEd Tanousclang-analyzer-nullability.NullableDereferenced,
1233174e4dfSEd Tanousclang-analyzer-nullability.NullablePassedToNonnull,
1243174e4dfSEd Tanousclang-analyzer-nullability.NullableReturnedFromNonnull,
1253174e4dfSEd Tanousclang-analyzer-optin.cplusplus.UninitializedObject,
1263174e4dfSEd Tanousclang-analyzer-optin.cplusplus.VirtualCall,
1273174e4dfSEd Tanousclang-analyzer-optin.mpi.MPI-Checker,
1283174e4dfSEd Tanousclang-analyzer-optin.osx.OSObjectCStyleCast,
1293174e4dfSEd Tanousclang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
1303174e4dfSEd Tanousclang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
1313174e4dfSEd Tanousclang-analyzer-optin.performance.GCDAntipattern,
1323174e4dfSEd Tanousclang-analyzer-optin.performance.Padding,
1333174e4dfSEd Tanousclang-analyzer-optin.portability.UnixAPI,
1343174e4dfSEd Tanousclang-analyzer-osx.API,
1353174e4dfSEd Tanousclang-analyzer-osx.MIG,
1363174e4dfSEd Tanousclang-analyzer-osx.NSOrCFErrorDerefChecker,
1373174e4dfSEd Tanousclang-analyzer-osx.NumberObjectConversion,
1383174e4dfSEd Tanousclang-analyzer-osx.OSObjectRetainCount,
1393174e4dfSEd Tanousclang-analyzer-osx.ObjCProperty,
1403174e4dfSEd Tanousclang-analyzer-osx.SecKeychainAPI,
1413174e4dfSEd Tanousclang-analyzer-osx.cocoa.AtSync,
1423174e4dfSEd Tanousclang-analyzer-osx.cocoa.AutoreleaseWrite,
1433174e4dfSEd Tanousclang-analyzer-osx.cocoa.ClassRelease,
1443174e4dfSEd Tanousclang-analyzer-osx.cocoa.Dealloc,
1453174e4dfSEd Tanousclang-analyzer-osx.cocoa.IncompatibleMethodTypes,
1463174e4dfSEd Tanousclang-analyzer-osx.cocoa.Loops,
1473174e4dfSEd Tanousclang-analyzer-osx.cocoa.MissingSuperCall,
1483174e4dfSEd Tanousclang-analyzer-osx.cocoa.NSAutoreleasePool,
1493174e4dfSEd Tanousclang-analyzer-osx.cocoa.NSError,
1503174e4dfSEd Tanousclang-analyzer-osx.cocoa.NilArg,
1513174e4dfSEd Tanousclang-analyzer-osx.cocoa.NonNilReturnValue,
1523174e4dfSEd Tanousclang-analyzer-osx.cocoa.ObjCGenerics,
1533174e4dfSEd Tanousclang-analyzer-osx.cocoa.RetainCount,
1543174e4dfSEd Tanousclang-analyzer-osx.cocoa.RetainCountBase,
1553174e4dfSEd Tanousclang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
1563174e4dfSEd Tanousclang-analyzer-osx.cocoa.SelfInit,
1573174e4dfSEd Tanousclang-analyzer-osx.cocoa.SuperDealloc,
1583174e4dfSEd Tanousclang-analyzer-osx.cocoa.UnusedIvars,
1593174e4dfSEd Tanousclang-analyzer-osx.cocoa.VariadicMethodTypes,
1603174e4dfSEd Tanousclang-analyzer-osx.coreFoundation.CFError,
1613174e4dfSEd Tanousclang-analyzer-osx.coreFoundation.CFNumber,
1623174e4dfSEd Tanousclang-analyzer-osx.coreFoundation.CFRetainRelease,
1633174e4dfSEd Tanousclang-analyzer-osx.coreFoundation.containers.OutOfBounds,
1643174e4dfSEd Tanousclang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
1653174e4dfSEd Tanousclang-analyzer-security.FloatLoopCounter,
1663174e4dfSEd Tanousclang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
1673174e4dfSEd Tanousclang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
1683174e4dfSEd Tanousclang-analyzer-security.insecureAPI.UncheckedReturn,
1693174e4dfSEd Tanousclang-analyzer-security.insecureAPI.bcmp,
1703174e4dfSEd Tanousclang-analyzer-security.insecureAPI.bcopy,
1713174e4dfSEd Tanousclang-analyzer-security.insecureAPI.bzero,
1723174e4dfSEd Tanousclang-analyzer-security.insecureAPI.decodeValueOfObjCType,
1733174e4dfSEd Tanousclang-analyzer-security.insecureAPI.getpw,
1743174e4dfSEd Tanousclang-analyzer-security.insecureAPI.gets,
1753174e4dfSEd Tanousclang-analyzer-security.insecureAPI.mkstemp,
1763174e4dfSEd Tanousclang-analyzer-security.insecureAPI.mktemp,
1773174e4dfSEd Tanousclang-analyzer-security.insecureAPI.rand,
1783174e4dfSEd Tanousclang-analyzer-security.insecureAPI.strcpy,
1793174e4dfSEd Tanousclang-analyzer-security.insecureAPI.vfork,
1803174e4dfSEd Tanousclang-analyzer-unix.API,
1813174e4dfSEd Tanousclang-analyzer-unix.DynamicMemoryModeling,
1823174e4dfSEd Tanousclang-analyzer-unix.Malloc,
1833174e4dfSEd Tanousclang-analyzer-unix.MallocSizeof,
1843174e4dfSEd Tanousclang-analyzer-unix.MismatchedDeallocator,
1853174e4dfSEd Tanousclang-analyzer-unix.Vfork,
1863174e4dfSEd Tanousclang-analyzer-unix.cstring.BadSizeArg,
1873174e4dfSEd Tanousclang-analyzer-unix.cstring.CStringModeling,
1883174e4dfSEd Tanousclang-analyzer-unix.cstring.NullArg,
1893174e4dfSEd Tanousclang-analyzer-valist.CopyToSelf,
1903174e4dfSEd Tanousclang-analyzer-valist.Uninitialized,
1913174e4dfSEd Tanousclang-analyzer-valist.Unterminated,
1923174e4dfSEd Tanousclang-analyzer-valist.ValistBase,
1933174e4dfSEd Tanousclang-analyzer-webkit.NoUncountedMemberChecker,
1943174e4dfSEd Tanousclang-analyzer-webkit.RefCntblBaseVirtualDtor,
195f23b7296SEd Tanousmisc-misplaced-const,
196b00dcc27SEd Tanous#misc-no-recursion,
197f23b7296SEd Tanousmisc-redundant-expression,
198f23b7296SEd Tanousmisc-static-assert,
199f23b7296SEd Tanousmisc-throw-by-value-catch-by-reference,
200f23b7296SEd Tanousmisc-unconventional-assign-operator,
201f23b7296SEd Tanousmisc-uniqueptr-reset-release,
202f23b7296SEd Tanousmisc-unused-using-decls,
2033174e4dfSEd Tanousmodernize-avoid-bind,
2043174e4dfSEd Tanousmodernize-deprecated-headers,
2053174e4dfSEd Tanousmodernize-deprecated-ios-base-aliases,
2063174e4dfSEd Tanousmodernize-loop-convert,
2073174e4dfSEd Tanousmodernize-make-shared,
2083174e4dfSEd Tanousmodernize-make-unique,
2093174e4dfSEd Tanousmodernize-raw-string-literal,
2103174e4dfSEd Tanousmodernize-replace-auto-ptr,
2113174e4dfSEd Tanousmodernize-replace-random-shuffle,
2123174e4dfSEd Tanousmodernize-return-braced-init-list,
2133174e4dfSEd Tanousmodernize-shrink-to-fit,
2143174e4dfSEd Tanousmodernize-unary-static-assert,
2153174e4dfSEd Tanousmodernize-use-bool-literals,
2163174e4dfSEd Tanousmodernize-use-default-member-init,
2173174e4dfSEd Tanousmodernize-use-emplace,
2183174e4dfSEd Tanousmodernize-use-equals-default,
2193174e4dfSEd Tanousmodernize-use-equals-delete,
2203174e4dfSEd Tanousmodernize-use-noexcept,
2213174e4dfSEd Tanousmodernize-use-nullptr,
2223174e4dfSEd Tanousmodernize-use-override,
2233174e4dfSEd Tanousmodernize-use-transparent-functors,
2243174e4dfSEd Tanousmodernize-use-uncaught-exceptions,
2253174e4dfSEd Tanousmodernize-use-using,
226f23b7296SEd Tanousperformance-faster-string-find,
2273174e4dfSEd Tanousperformance-for-range-copy,
2283174e4dfSEd Tanousperformance-implicit-conversion-in-loop,
2293174e4dfSEd Tanousperformance-inefficient-algorithm,
230f23b7296SEd Tanousperformance-inefficient-string-concatenation,
2313174e4dfSEd Tanousperformance-inefficient-vector-operation,
232f23b7296SEd Tanousperformance-move-const-arg,
2333174e4dfSEd Tanousperformance-move-constructor-init,
2343174e4dfSEd Tanousperformance-no-automatic-move,
235f23b7296SEd Tanousperformance-noexcept-move-constructor,
2363174e4dfSEd Tanousperformance-trivially-destructible,
2373174e4dfSEd Tanousperformance-type-promotion-in-math-fn,
2383174e4dfSEd Tanousperformance-unnecessary-copy-initialization,
239f23b7296SEd Tanousperformance-unnecessary-value-param,
2403174e4dfSEd Tanousreadability-braces-around-statements,
2413174e4dfSEd Tanousreadability-const-return-type,
2423174e4dfSEd Tanousreadability-delete-null-pointer,
2433174e4dfSEd Tanousreadability-deleted-default,
244f23b7296SEd Tanousreadability-else-after-return,
24552599638SBrad Bishopreadability-identifier-naming'
2463174e4dfSEd Tanous
2473174e4dfSEd TanousWarningsAsErrors: '*'
248b0bb6f25SEd TanousHeaderFilterRegex: '.*'
249b0bb6f25SEd TanousCheckOptions:
250b0bb6f25SEd Tanous  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
251b0bb6f25SEd Tanous  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
252b0bb6f25SEd Tanous  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
25381ce609eSEd Tanous  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
254b0bb6f25SEd Tanous  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
255b0bb6f25SEd Tanous  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
256b0bb6f25SEd Tanous
257