blob: fa90937a6b594686452ad675d4eab384d8846c0f [file] [log] [blame]
Jayanth Othayoth4f68fc42024-11-25 10:04:07 -06001Checks: '
2-*,
Jayanth Othayoth508113a2024-11-25 10:22:12 -06003bugprone-argument-comment,
4bugprone-assert-side-effect,
5bugprone-assignment-in-if,
6bugprone-bad-signal-to-kill-thread,
7bugprone-bool-pointer-implicit-conversion,
8bugprone-branch-clone,
9bugprone-casting-through-void,
10bugprone-chained-comparison,
11bugprone-compare-pointer-to-member-virtual-function,
12bugprone-copy-constructor-init,
13bugprone-dangling-handle,
14bugprone-dynamic-static-initializers,
Jayanth Othayoth316a2272024-11-25 21:23:59 -060015bugprone-empty-catch,
Jayanth Othayoth508113a2024-11-25 10:22:12 -060016bugprone-fold-init-type,
Jayanth Othayoth109e9942024-11-25 10:30:43 -060017bugprone-forward-declaration-namespace,
Jayanth Othayoth508113a2024-11-25 10:22:12 -060018bugprone-forwarding-reference-overload,
19bugprone-implicit-widening-of-multiplication-result,
20bugprone-inaccurate-erase,
21bugprone-inc-dec-in-conditions,
22bugprone-incorrect-enable-if,
23bugprone-incorrect-roundings,
24bugprone-infinite-loop,
25bugprone-integer-division,
26bugprone-lambda-function-name,
27bugprone-macro-parentheses,
28bugprone-macro-repeated-side-effects,
29bugprone-misplaced-operator-in-strlen-in-alloc,
30bugprone-misplaced-pointer-arithmetic-in-alloc,
31bugprone-misplaced-widening-cast,
32bugprone-move-forwarding-reference,
33bugprone-multi-level-implicit-pointer-conversion,
34bugprone-multiple-new-in-one-expression,
35bugprone-multiple-statement-macro,
Jayanth Othayoth17ba8762024-11-25 10:43:24 -060036bugprone-narrowing-conversions,
Jayanth Othayoth508113a2024-11-25 10:22:12 -060037bugprone-no-escape,
38bugprone-non-zero-enum-to-bool-conversion,
39bugprone-not-null-terminated-result,
40bugprone-optional-value-conversion,
41bugprone-parent-virtual-call,
42bugprone-posix-return,
43bugprone-redundant-branch-condition,
44bugprone-reserved-identifier,
45bugprone-shared-ptr-array-mismatch,
46bugprone-signal-handler,
47bugprone-signed-char-misuse,
48bugprone-sizeof-container,
49bugprone-sizeof-expression,
50bugprone-spuriously-wake-up-functions,
51bugprone-standalone-empty,
52bugprone-string-constructor,
53bugprone-string-integer-assignment,
54bugprone-string-literal-with-embedded-nul,
55bugprone-stringview-nullptr,
56bugprone-suspicious-enum-usage,
57bugprone-suspicious-include,
58bugprone-suspicious-memory-comparison,
59bugprone-suspicious-memset-usage,
60bugprone-suspicious-missing-comma,
61bugprone-suspicious-realloc-usage,
62bugprone-suspicious-semicolon,
63bugprone-suspicious-string-compare,
64bugprone-swapped-arguments,
65bugprone-switch-missing-default-case,
66bugprone-terminating-continue,
67bugprone-throw-keyword-missing,
68bugprone-too-small-loop-variable,
Jayanth Othayoth418d4602024-11-25 22:17:03 -060069bugprone-unchecked-optional-access,
Jayanth Othayoth508113a2024-11-25 10:22:12 -060070bugprone-undefined-memory-manipulation,
71bugprone-undelegated-constructor,
72bugprone-unhandled-exception-at-new,
73bugprone-unhandled-self-assignment,
74bugprone-unique-ptr-array-mismatch,
75bugprone-unsafe-functions,
76bugprone-unused-local-non-trivial-variable,
77bugprone-unused-raii,
78bugprone-unused-return-value,
79bugprone-use-after-move,
80bugprone-virtual-near-miss,
Jayanth Othayoth630de6a2024-11-25 22:51:30 -060081cert-con36-c,
82cert-con54-cpp,
83cert-dcl03-c,
84cert-dcl16-c,
85cert-dcl21-cpp,
86cert-dcl37-c,
87cert-dcl50-cpp,
88cert-dcl51-cpp,
89cert-dcl54-cpp,
90cert-dcl58-cpp,
91cert-dcl59-cpp,
92cert-env33-c,
93cert-err09-cpp,
94cert-err34-c,
95cert-err52-cpp,
96cert-err60-cpp,
97cert-err61-cpp,
98cert-fio38-c,
99cert-flp30-c,
100cert-mem57-cpp,
101cert-msc30-c,
102cert-msc32-c,
103cert-msc50-cpp,
104cert-msc51-cpp,
105cert-oop11-cpp,
106cert-oop54-cpp,
107cert-oop57-cpp,
108cert-oop58-cpp,
109cert-pos44-c,
110cert-pos47-c,
111cert-sig30-c,
112cert-str34-c,
Jayanth Othayoth04299a72024-11-25 22:58:02 -0600113clang-analyzer-apiModeling.Errno,
114clang-analyzer-apiModeling.TrustNonnull,
115clang-analyzer-apiModeling.TrustReturnsNonnull,
116clang-analyzer-apiModeling.google.GTest,
117clang-analyzer-apiModeling.llvm.CastValue,
118clang-analyzer-apiModeling.llvm.ReturnValue,
119clang-analyzer-core.BitwiseShift,
120clang-analyzer-core.CallAndMessage,
121clang-analyzer-core.CallAndMessageModeling,
122clang-analyzer-core.DivideZero,
123clang-analyzer-core.DynamicTypePropagation,
124clang-analyzer-core.NonNullParamChecker,
125clang-analyzer-core.NonnilStringConstants,
126clang-analyzer-core.NullDereference,
127clang-analyzer-core.StackAddrEscapeBase,
128clang-analyzer-core.StackAddressEscape,
129clang-analyzer-core.UndefinedBinaryOperatorResult,
130clang-analyzer-core.VLASize,
131clang-analyzer-core.builtin.BuiltinFunctions,
132clang-analyzer-core.builtin.NoReturnFunctions,
133clang-analyzer-core.uninitialized.ArraySubscript,
134clang-analyzer-core.uninitialized.Assign,
135clang-analyzer-core.uninitialized.Branch,
136clang-analyzer-core.uninitialized.CapturedBlockVariable,
137clang-analyzer-core.uninitialized.NewArraySize,
138clang-analyzer-core.uninitialized.UndefReturn,
139clang-analyzer-cplusplus.InnerPointer,
140clang-analyzer-cplusplus.Move,
141clang-analyzer-cplusplus.NewDelete,
142clang-analyzer-cplusplus.NewDeleteLeaks,
143clang-analyzer-cplusplus.PlacementNew,
144clang-analyzer-cplusplus.PureVirtualCall,
145clang-analyzer-cplusplus.SelfAssignment,
146clang-analyzer-cplusplus.SmartPtrModeling,
147clang-analyzer-cplusplus.StringChecker,
148clang-analyzer-cplusplus.VirtualCallModeling,
149clang-analyzer-deadcode.DeadStores,
150clang-analyzer-fuchsia.HandleChecker,
151clang-analyzer-nullability.NullPassedToNonnull,
152clang-analyzer-nullability.NullReturnedFromNonnull,
153clang-analyzer-nullability.NullabilityBase,
154clang-analyzer-nullability.NullableDereferenced,
155clang-analyzer-nullability.NullablePassedToNonnull,
156clang-analyzer-nullability.NullableReturnedFromNonnull,
157clang-analyzer-optin.core.EnumCastOutOfRange,
158clang-analyzer-optin.cplusplus.UninitializedObject,
159clang-analyzer-optin.cplusplus.VirtualCall,
160clang-analyzer-optin.mpi.MPI-Checker,
161clang-analyzer-optin.osx.OSObjectCStyleCast,
162clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
163clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
164clang-analyzer-optin.performance.GCDAntipattern,
165clang-analyzer-optin.performance.Padding,
166clang-analyzer-optin.portability.UnixAPI,
167clang-analyzer-osx.API,
168clang-analyzer-osx.MIG,
169clang-analyzer-osx.NSOrCFErrorDerefChecker,
170clang-analyzer-osx.NumberObjectConversion,
171clang-analyzer-osx.OSObjectRetainCount,
172clang-analyzer-osx.ObjCProperty,
173clang-analyzer-osx.SecKeychainAPI,
174clang-analyzer-osx.cocoa.AtSync,
175clang-analyzer-osx.cocoa.AutoreleaseWrite,
176clang-analyzer-osx.cocoa.ClassRelease,
177clang-analyzer-osx.cocoa.Dealloc,
178clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
179clang-analyzer-osx.cocoa.Loops,
180clang-analyzer-osx.cocoa.MissingSuperCall,
181clang-analyzer-osx.cocoa.NSAutoreleasePool,
182clang-analyzer-osx.cocoa.NSError,
183clang-analyzer-osx.cocoa.NilArg,
184clang-analyzer-osx.cocoa.NonNilReturnValue,
185clang-analyzer-osx.cocoa.ObjCGenerics,
186clang-analyzer-osx.cocoa.RetainCount,
187clang-analyzer-osx.cocoa.RetainCountBase,
188clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
189clang-analyzer-osx.cocoa.SelfInit,
190clang-analyzer-osx.cocoa.SuperDealloc,
191clang-analyzer-osx.cocoa.UnusedIvars,
192clang-analyzer-osx.cocoa.VariadicMethodTypes,
193clang-analyzer-osx.coreFoundation.CFError,
194clang-analyzer-osx.coreFoundation.CFNumber,
195clang-analyzer-osx.coreFoundation.CFRetainRelease,
196clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
197clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
198clang-analyzer-security.FloatLoopCounter,
199clang-analyzer-security.cert.env.InvalidPtr,
200clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
201clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
202clang-analyzer-security.insecureAPI.UncheckedReturn,
203clang-analyzer-security.insecureAPI.bcmp,
204clang-analyzer-security.insecureAPI.bcopy,
205clang-analyzer-security.insecureAPI.bzero,
206clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
207clang-analyzer-security.insecureAPI.getpw,
208clang-analyzer-security.insecureAPI.gets,
209clang-analyzer-security.insecureAPI.mkstemp,
210clang-analyzer-security.insecureAPI.mktemp,
211clang-analyzer-security.insecureAPI.rand,
212clang-analyzer-security.insecureAPI.strcpy,
213clang-analyzer-security.insecureAPI.vfork,
214clang-analyzer-unix.API,
215clang-analyzer-unix.DynamicMemoryModeling,
216clang-analyzer-unix.Errno,
217clang-analyzer-unix.Malloc,
218clang-analyzer-unix.MallocSizeof,
219clang-analyzer-unix.MismatchedDeallocator,
220clang-analyzer-unix.StdCLibraryFunctions,
221clang-analyzer-unix.Vfork,
222clang-analyzer-unix.cstring.BadSizeArg,
223clang-analyzer-unix.cstring.CStringModeling,
224clang-analyzer-unix.cstring.NullArg,
225clang-analyzer-valist.CopyToSelf,
226clang-analyzer-valist.Uninitialized,
227clang-analyzer-valist.Unterminated,
228clang-analyzer-valist.ValistBase,
229clang-analyzer-webkit.NoUncountedMemberChecker,
230clang-analyzer-webkit.RefCntblBaseVirtualDtor,
231clang-analyzer-webkit.UncountedLambdaCapturesChecker,
Jayanth Othayoth6e7bde52024-11-25 23:01:38 -0600232cppcoreguidelines-avoid-capturing-lambda-coroutines,
233cppcoreguidelines-avoid-goto,
234cppcoreguidelines-avoid-non-const-global-variables,
235cppcoreguidelines-avoid-reference-coroutine-parameters,
236cppcoreguidelines-c-copy-assignment-signature,
237cppcoreguidelines-interfaces-global-init,
238cppcoreguidelines-misleading-capture-default-by-value,
239cppcoreguidelines-narrowing-conversions,
240cppcoreguidelines-no-malloc,
241cppcoreguidelines-no-suspend-with-lock,
242cppcoreguidelines-noexcept-destructor,
243cppcoreguidelines-noexcept-move-operations,
244cppcoreguidelines-noexcept-swap,
245cppcoreguidelines-prefer-member-initializer,
Jayanth Othayothceb3e762024-11-25 23:19:37 -0600246cppcoreguidelines-pro-bounds-array-to-pointer-decay,
Jayanth Othayoth6e7bde52024-11-25 23:01:38 -0600247cppcoreguidelines-pro-type-const-cast,
248cppcoreguidelines-pro-type-static-cast-downcast,
249cppcoreguidelines-pro-type-union-access,
250cppcoreguidelines-rvalue-reference-param-not-moved,
251cppcoreguidelines-use-default-member-init,
252cppcoreguidelines-virtual-class-destructor,
253cppcoreguidelines-slicing,
254cppcoreguidelines-special-member-functions,
Jayanth Othayothed4e9f52024-11-26 00:45:52 -0600255misc-coroutine-hostile-raii,
256misc-header-include-cycle,
257misc-misleading-bidirectional,
258misc-misleading-identifier,
259misc-misplaced-const,
260misc-new-delete-overloads,
261misc-non-copyable-objects,
262misc-redundant-expression,
263misc-static-assert,
264misc-throw-by-value-catch-by-reference,
265misc-unconventional-assign-operator,
266misc-uniqueptr-reset-release,
267misc-unused-alias-decls,
268misc-unused-parameters,
269misc-unused-using-decls,
Jayanth Othayoth547dafa2024-11-26 01:35:52 -0600270modernize-deprecated-headers,
271modernize-deprecated-ios-base-aliases,
272modernize-loop-convert,
273modernize-make-shared,
274modernize-make-unique,
275modernize-raw-string-literal,
276modernize-redundant-void-arg,
277modernize-replace-auto-ptr,
278modernize-replace-random-shuffle,
279modernize-return-braced-init-list,
280modernize-shrink-to-fit,
281modernize-unary-static-assert,
282modernize-use-bool-literals,
283modernize-use-default-member-init,
284modernize-use-emplace,
285modernize-use-equals-delete,
286modernize-use-noexcept,
287modernize-use-starts-ends-with,
288modernize-use-std-numbers,
289modernize-use-transparent-functors,
290modernize-use-uncaught-exceptions,
Jayanth Othayoth34c09632024-11-26 00:53:46 -0600291performance-faster-string-find,
292performance-for-range-copy,
293performance-implicit-conversion-in-loop,
294performance-inefficient-algorithm,
295performance-inefficient-string-concatenation,
296performance-inefficient-vector-operation,
297performance-move-const-arg,
298performance-move-constructor-init,
299performance-no-automatic-move,
300performance-no-int-to-ptr,
301performance-noexcept-destructor,
302performance-noexcept-move-constructor,
303performance-noexcept-swap,
304performance-trivially-destructible,
305performance-type-promotion-in-math-fn,
306performance-unnecessary-copy-initialization,
Jayanth Othayothceee4d62024-11-26 01:01:48 -0600307readability-avoid-const-params-in-decls,
308readability-avoid-nested-conditional-operator,
309readability-avoid-return-with-void-value,
310readability-avoid-unconditional-preprocessor-if,
311readability-braces-around-statements,
312readability-const-return-type,
313readability-container-contains,
314readability-container-data-pointer,
315readability-delete-null-pointer,
316readability-duplicate-include,
317readability-deleted-default,
318readability-function-size,
319readability-identifier-naming,
Jayanth Othayothb913e072024-11-26 01:23:20 -0600320readability-implicit-bool-conversion
Jayanth Othayothceee4d62024-11-26 01:01:48 -0600321readability-isolate-declaration,
322readability-misleading-indentation,
323readability-misplaced-array-index,
324readability-operators-representation,
325readability-non-const-parameter,
326readability-redundant-access-specifiers,
327readability-redundant-casting,
328readability-redundant-declaration,
329readability-redundant-function-ptr-dereference,
330readability-redundant-member-init,
331readability-redundant-preprocessor,
332readability-redundant-smartptr-get,
333readability-redundant-string-init,
334readability-reference-to-constructed-temporary,
335readability-simplify-subscript-expr,
336readability-static-definition-in-anonymous-namespace,
337readability-string-compare,
338readability-suspicious-call-argument,
339readability-uniqueptr-delete-release,
340readability-uppercase-literal-suffix'
Jayanth Othayoth4f68fc42024-11-25 10:04:07 -0600341
342WarningsAsErrors: '*'
343HeaderFilterRegex: '.*'
344
345CheckOptions:
346 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
347 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
348 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }