xref: /openbmc/pldm/.clang-tidy (revision 423e8f53)
1Checks: ' -*,
2bugprone-argument-comment,
3bugprone-assert-side-effect,
4bugprone-bad-signal-to-kill-thread,
5bugprone-bool-pointer-implicit-conversion,
6bugprone-branch-clone,
7bugprone-copy-constructor-init,
8bugprone-dangling-handle,
9bugprone-dynamic-static-initializers,
10bugprone-fold-init-type,
11bugprone-forward-declaration-namespace,
12bugprone-forwarding-reference-overload,
13bugprone-inaccurate-erase,
14bugprone-incorrect-roundings,
15bugprone-infinite-loop,
16bugprone-integer-division,
17bugprone-lambda-function-name,
18bugprone-macro-parentheses,
19bugprone-macro-repeated-side-effects,
20bugprone-misplaced-operator-in-strlen-in-alloc,
21bugprone-misplaced-pointer-arithmetic-in-alloc,
22bugprone-misplaced-widening-cast,
23bugprone-move-forwarding-reference,
24bugprone-multiple-statement-macro,
25bugprone-no-escape,
26bugprone-not-null-terminated-result,
27bugprone-parent-virtual-call,
28bugprone-posix-return,
29bugprone-redundant-branch-condition,
30bugprone-signal-handler,
31bugprone-signed-char-misuse,
32bugprone-sizeof-container,
33bugprone-sizeof-expression,
34bugprone-spuriously-wake-up-functions,
35bugprone-string-integer-assignment,
36bugprone-string-literal-with-embedded-nul,
37bugprone-suspicious-enum-usage,
38bugprone-suspicious-include,
39bugprone-suspicious-memset-usage,
40bugprone-suspicious-missing-comma,
41bugprone-suspicious-semicolon,
42bugprone-suspicious-string-compare,
43bugprone-swapped-arguments,
44bugprone-terminating-continue,
45bugprone-throw-keyword-missing,
46bugprone-too-small-loop-variable,
47bugprone-undefined-memory-manipulation,
48bugprone-undelegated-constructor,
49bugprone-unhandled-exception-at-new,
50bugprone-unhandled-self-assignment,
51bugprone-unused-raii,
52bugprone-unused-return-value,
53bugprone-virtual-near-miss,
54cert-con54-cpp,
55cert-dcl21-cpp,
56cert-dcl50-cpp,
57cert-dcl54-cpp,
58cert-dcl58-cpp,
59cert-dcl59-cpp,
60cert-err09-cpp,
61cert-err52-cpp,
62cert-err60-cpp,
63cert-err61-cpp,
64cert-mem57-cpp,
65cert-msc50-cpp,
66cert-msc51-cpp,
67cert-oop11-cpp,
68cert-oop54-cpp,
69cert-oop57-cpp,
70cert-oop58-cpp,
71clang-analyzer-apiModeling.StdCLibraryFunctions,
72clang-analyzer-apiModeling.TrustNonnull,
73clang-analyzer-apiModeling.google.GTest,
74clang-analyzer-apiModeling.llvm.CastValue,
75clang-analyzer-apiModeling.llvm.ReturnValue,
76clang-analyzer-core.CallAndMessage,
77clang-analyzer-core.CallAndMessageModeling,
78clang-analyzer-core.DivideZero,
79clang-analyzer-core.DynamicTypePropagation,
80clang-analyzer-core.NonNullParamChecker,
81clang-analyzer-core.NonnilStringConstants,
82clang-analyzer-core.NullDereference,
83clang-analyzer-core.StackAddrEscapeBase,
84clang-analyzer-core.StackAddressEscape,
85clang-analyzer-core.UndefinedBinaryOperatorResult,
86clang-analyzer-core.VLASize,
87clang-analyzer-core.builtin.BuiltinFunctions,
88clang-analyzer-core.builtin.NoReturnFunctions,
89clang-analyzer-core.uninitialized.ArraySubscript,
90clang-analyzer-core.uninitialized.Assign,
91clang-analyzer-core.uninitialized.CapturedBlockVariable,
92clang-analyzer-core.uninitialized.UndefReturn,
93clang-analyzer-cplusplus.InnerPointer,
94clang-analyzer-cplusplus.Move,
95clang-analyzer-cplusplus.NewDelete,
96clang-analyzer-cplusplus.NewDeleteLeaks,
97clang-analyzer-cplusplus.PlacementNew,
98clang-analyzer-cplusplus.PureVirtualCall,
99clang-analyzer-cplusplus.SelfAssignment,
100clang-analyzer-cplusplus.SmartPtrModeling,
101clang-analyzer-cplusplus.VirtualCallModeling,
102clang-analyzer-fuchsia.HandleChecker,
103clang-analyzer-nullability.NullPassedToNonnull,
104clang-analyzer-nullability.NullReturnedFromNonnull,
105clang-analyzer-nullability.NullabilityBase,
106clang-analyzer-nullability.NullableDereferenced,
107clang-analyzer-nullability.NullablePassedToNonnull,
108clang-analyzer-nullability.NullableReturnedFromNonnull,
109clang-analyzer-optin.cplusplus.UninitializedObject,
110clang-analyzer-optin.mpi.MPI-Checker,
111clang-analyzer-optin.performance.GCDAntipattern,
112clang-analyzer-optin.performance.Padding,
113clang-analyzer-optin.portability.UnixAPI,
114clang-analyzer-security.FloatLoopCounter,
115clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
116clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
117clang-analyzer-security.insecureAPI.UncheckedReturn,
118clang-analyzer-security.insecureAPI.bcmp,
119clang-analyzer-security.insecureAPI.bcopy,
120clang-analyzer-security.insecureAPI.bzero,
121clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
122clang-analyzer-security.insecureAPI.getpw,
123clang-analyzer-security.insecureAPI.gets,
124clang-analyzer-security.insecureAPI.mkstemp,
125clang-analyzer-security.insecureAPI.mktemp,
126clang-analyzer-security.insecureAPI.rand,
127clang-analyzer-security.insecureAPI.strcpy,
128clang-analyzer-security.insecureAPI.vfork,
129clang-analyzer-unix.API,
130clang-analyzer-unix.DynamicMemoryModeling,
131clang-analyzer-unix.Malloc,
132clang-analyzer-unix.MallocSizeof,
133clang-analyzer-unix.MismatchedDeallocator,
134clang-analyzer-unix.Vfork,
135clang-analyzer-unix.cstring.BadSizeArg,
136clang-analyzer-unix.cstring.CStringModeling,
137clang-analyzer-unix.cstring.NullArg,
138clang-analyzer-valist.CopyToSelf,
139clang-analyzer-valist.Uninitialized,
140clang-analyzer-valist.Unterminated,
141clang-analyzer-valist.ValistBase,
142clang-analyzer-webkit.NoUncountedMemberChecker,
143clang-analyzer-webkit.RefCntblBaseVirtualDtor,
144misc-misplaced-const,
145misc-redundant-expression,
146misc-static-assert,
147misc-throw-by-value-catch-by-reference,
148misc-unconventional-assign-operator,
149misc-uniqueptr-reset-release,
150modernize-deprecated-headers,
151modernize-deprecated-ios-base-aliases,
152modernize-make-shared,
153modernize-make-unique,
154modernize-replace-auto-ptr,
155modernize-replace-random-shuffle,
156modernize-shrink-to-fit,
157modernize-unary-static-assert,
158modernize-use-equals-delete,
159modernize-use-noexcept,
160modernize-use-transparent-functors,
161modernize-use-uncaught-exceptions'
162
163WarningsAsErrors: '*'
164HeaderFilterRegex: '.*'
165