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