xref: /openbmc/bmcweb/.clang-tidy (revision 9bc9dc0a)
13174e4dfSEd TanousChecks: '
23174e4dfSEd Tanous-*,
3d63c72eaSEd 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,
34d63c72eaSEd Tanousbugprone-redundant-branch-condition,
35f23b7296SEd Tanousbugprone-reserved-identifier,
36d63c72eaSEd 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,
45d63c72eaSEd 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,
56d63c72eaSEd 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,
89d63c72eaSEd Tanouscert-oop58-cpp,
90d63c72eaSEd Tanouscert-pos44-c,
91d63c72eaSEd Tanouscert-pos47-c,
92d63c72eaSEd Tanouscert-sig30-c,
93d63c72eaSEd 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,
204*9bc9dc0aSEd Tanouscppcoreguidelines-avoid-c-arrays,
205*9bc9dc0aSEd Tanouscppcoreguidelines-avoid-goto,
206*9bc9dc0aSEd Tanouscppcoreguidelines-c-copy-assignment-signature,
207*9bc9dc0aSEd Tanouscppcoreguidelines-explicit-virtual-functions,
208543f4400SEd Tanouscppcoreguidelines-init-variables,
209d3a9e084SEd Tanouscppcoreguidelines-interfaces-global-init,
210600d2394SEd Tanouscppcoreguidelines-macro-usage,
211*9bc9dc0aSEd Tanouscppcoreguidelines-narrowing-conversions,
212fcc5aa66SEd Tanouscppcoreguidelines-no-malloc,
213*9bc9dc0aSEd Tanouscppcoreguidelines-prefer-member-initializer,
2149b6ffca5SEd Tanouscppcoreguidelines-pro-bounds-array-to-pointer-decay,
215ca45aa3cSEd Tanouscppcoreguidelines-pro-bounds-pointer-arithmetic,
2164ecc618fSEd Tanouscppcoreguidelines-pro-type-const-cast,
2174bac4a89SEd Tanouscppcoreguidelines-pro-type-cstyle-cast,
218d3a9e084SEd Tanouscppcoreguidelines-pro-type-member-init,
21946ff87baSEd Tanouscppcoreguidelines-pro-type-reinterpret-cast,
220adf3d0e5SEd Tanouscppcoreguidelines-pro-type-static-cast-downcast,
221*9bc9dc0aSEd Tanouscppcoreguidelines-pro-type-union-access,
22249d1eeaaSEd Tanouscppcoreguidelines-pro-type-vararg,
223*9bc9dc0aSEd Tanouscppcoreguidelines-slicing,
224ecd6a3a2SEd Tanouscppcoreguidelines-special-member-functions,
225f23b7296SEd Tanousmisc-misplaced-const,
226b00dcc27SEd Tanous#misc-no-recursion,
227f23b7296SEd Tanousmisc-redundant-expression,
228f23b7296SEd Tanousmisc-static-assert,
229f23b7296SEd Tanousmisc-throw-by-value-catch-by-reference,
230f23b7296SEd Tanousmisc-unconventional-assign-operator,
231f23b7296SEd Tanousmisc-uniqueptr-reset-release,
232f23b7296SEd Tanousmisc-unused-using-decls,
2333174e4dfSEd Tanousmodernize-avoid-bind,
2343174e4dfSEd Tanousmodernize-deprecated-headers,
2353174e4dfSEd Tanousmodernize-deprecated-ios-base-aliases,
2363174e4dfSEd Tanousmodernize-loop-convert,
2373174e4dfSEd Tanousmodernize-make-shared,
2383174e4dfSEd Tanousmodernize-make-unique,
2393174e4dfSEd Tanousmodernize-raw-string-literal,
2403174e4dfSEd Tanousmodernize-replace-auto-ptr,
2413174e4dfSEd Tanousmodernize-replace-random-shuffle,
2423174e4dfSEd Tanousmodernize-return-braced-init-list,
2433174e4dfSEd Tanousmodernize-shrink-to-fit,
2443174e4dfSEd Tanousmodernize-unary-static-assert,
2453174e4dfSEd Tanousmodernize-use-bool-literals,
2463174e4dfSEd Tanousmodernize-use-default-member-init,
2473174e4dfSEd Tanousmodernize-use-emplace,
2483174e4dfSEd Tanousmodernize-use-equals-default,
2493174e4dfSEd Tanousmodernize-use-equals-delete,
2503174e4dfSEd Tanousmodernize-use-noexcept,
2513174e4dfSEd Tanousmodernize-use-nullptr,
2523174e4dfSEd Tanousmodernize-use-override,
2533174e4dfSEd Tanousmodernize-use-transparent-functors,
2543174e4dfSEd Tanousmodernize-use-uncaught-exceptions,
2553174e4dfSEd Tanousmodernize-use-using,
256f23b7296SEd Tanousperformance-faster-string-find,
2573174e4dfSEd Tanousperformance-for-range-copy,
2583174e4dfSEd Tanousperformance-implicit-conversion-in-loop,
2593174e4dfSEd Tanousperformance-inefficient-algorithm,
260f23b7296SEd Tanousperformance-inefficient-string-concatenation,
2613174e4dfSEd Tanousperformance-inefficient-vector-operation,
262f23b7296SEd Tanousperformance-move-const-arg,
2633174e4dfSEd Tanousperformance-move-constructor-init,
2643174e4dfSEd Tanousperformance-no-automatic-move,
265f23b7296SEd Tanousperformance-noexcept-move-constructor,
2663174e4dfSEd Tanousperformance-trivially-destructible,
2673174e4dfSEd Tanousperformance-type-promotion-in-math-fn,
2683174e4dfSEd Tanousperformance-unnecessary-copy-initialization,
269f23b7296SEd Tanousperformance-unnecessary-value-param,
2703174e4dfSEd Tanousreadability-braces-around-statements,
2713174e4dfSEd Tanousreadability-const-return-type,
2723174e4dfSEd Tanousreadability-delete-null-pointer,
2733174e4dfSEd Tanousreadability-deleted-default,
274f23b7296SEd Tanousreadability-else-after-return,
27552599638SBrad Bishopreadability-identifier-naming'
2763174e4dfSEd Tanous
2773174e4dfSEd TanousWarningsAsErrors: '*'
278b0bb6f25SEd TanousHeaderFilterRegex: '.*'
279b0bb6f25SEd TanousCheckOptions:
280b0bb6f25SEd Tanous  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
281b0bb6f25SEd Tanous  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
282b0bb6f25SEd Tanous  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
28381ce609eSEd Tanous  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
284b0bb6f25SEd Tanous  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
285b0bb6f25SEd Tanous  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
286b0bb6f25SEd Tanous
287