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