blob: 091ba5c00d1470de542adc46747be4b4fbb6d64e [file] [log] [blame]
Ed Tanous07d467b2021-02-23 14:48:37 -08001Checks: '
2-*,
Ed Tanousab3acb72022-07-09 08:21:39 -07003boost-use-to-string,
Ed Tanous07d467b2021-02-23 14:48:37 -08004bugprone-argument-comment,
5bugprone-assert-side-effect,
Ed Tanousfc171422024-04-04 17:18:16 -07006bugprone-assignment-in-if-condition,
Ed Tanous07d467b2021-02-23 14:48:37 -08007bugprone-bad-signal-to-kill-thread,
8bugprone-bool-pointer-implicit-conversion,
9bugprone-branch-clone,
Ed Tanousfc171422024-04-04 17:18:16 -070010bugprone-casting-through-void,
11bugprone-chained-comparison,
12bugprone-compare-pointer-to-member-virtual-function,
Ed Tanous07d467b2021-02-23 14:48:37 -080013bugprone-copy-constructor-init,
14bugprone-dangling-handle,
15bugprone-dynamic-static-initializers,
Ed Tanousfc171422024-04-04 17:18:16 -070016bugprone-empty-catch,
Ed Tanous07d467b2021-02-23 14:48:37 -080017bugprone-fold-init-type,
18bugprone-forward-declaration-namespace,
19bugprone-forwarding-reference-overload,
Ed Tanousab3acb72022-07-09 08:21:39 -070020bugprone-implicit-widening-of-multiplication-result,
Ed Tanous07d467b2021-02-23 14:48:37 -080021bugprone-inaccurate-erase,
Ed Tanousfc171422024-04-04 17:18:16 -070022bugprone-inc-dec-in-conditions,
23bugprone-incorrect-enable-if,
Ed Tanous07d467b2021-02-23 14:48:37 -080024bugprone-incorrect-roundings,
25bugprone-infinite-loop,
26bugprone-integer-division,
27bugprone-lambda-function-name,
28bugprone-macro-parentheses,
29bugprone-macro-repeated-side-effects,
30bugprone-misplaced-operator-in-strlen-in-alloc,
31bugprone-misplaced-pointer-arithmetic-in-alloc,
32bugprone-misplaced-widening-cast,
Ed Tanousab3acb72022-07-09 08:21:39 -070033bugprone-move-forwarding-reference,
Ed Tanousfc171422024-04-04 17:18:16 -070034bugprone-multi-level-implicit-pointer-conversion,
35bugprone-multiple-new-in-one-expression,
Ed Tanous07d467b2021-02-23 14:48:37 -080036bugprone-multiple-statement-macro,
Ed Tanous07d467b2021-02-23 14:48:37 -080037bugprone-no-escape,
Ed Tanousfc171422024-04-04 17:18:16 -070038bugprone-non-zero-enum-to-bool-conversion,
Ed Tanous07d467b2021-02-23 14:48:37 -080039bugprone-not-null-terminated-result,
Ed Tanousfc171422024-04-04 17:18:16 -070040bugprone-optional-value-conversion,
Ed Tanous07d467b2021-02-23 14:48:37 -080041bugprone-parent-virtual-call,
42bugprone-posix-return,
Ed Tanousab3acb72022-07-09 08:21:39 -070043bugprone-redundant-branch-condition,
Ed Tanous07d467b2021-02-23 14:48:37 -080044bugprone-reserved-identifier,
Ed Tanousfc171422024-04-04 17:18:16 -070045bugprone-shared-ptr-array-mismatch,
Ed Tanousab3acb72022-07-09 08:21:39 -070046bugprone-signal-handler,
Ed Tanous07d467b2021-02-23 14:48:37 -080047bugprone-signed-char-misuse,
48bugprone-sizeof-container,
49bugprone-sizeof-expression,
50bugprone-spuriously-wake-up-functions,
Ed Tanousfc171422024-04-04 17:18:16 -070051bugprone-standalone-empty,
Ed Tanous07d467b2021-02-23 14:48:37 -080052bugprone-string-constructor,
53bugprone-string-integer-assignment,
54bugprone-string-literal-with-embedded-nul,
Ed Tanousfc171422024-04-04 17:18:16 -070055bugprone-stringview-nullptr,
Ed Tanous07d467b2021-02-23 14:48:37 -080056bugprone-suspicious-enum-usage,
Ed Tanousab3acb72022-07-09 08:21:39 -070057bugprone-suspicious-include,
Ed Tanousfc171422024-04-04 17:18:16 -070058bugprone-suspicious-memory-comparison,
Ed Tanous07d467b2021-02-23 14:48:37 -080059bugprone-suspicious-memset-usage,
60bugprone-suspicious-missing-comma,
Ed Tanousfc171422024-04-04 17:18:16 -070061bugprone-suspicious-realloc-usage,
Ed Tanous07d467b2021-02-23 14:48:37 -080062bugprone-suspicious-semicolon,
63bugprone-suspicious-string-compare,
64bugprone-swapped-arguments,
Ed Tanousfc171422024-04-04 17:18:16 -070065bugprone-switch-missing-default-case,
Ed Tanous07d467b2021-02-23 14:48:37 -080066bugprone-terminating-continue,
67bugprone-throw-keyword-missing,
68bugprone-too-small-loop-variable,
Ed Tanousfc171422024-04-04 17:18:16 -070069bugprone-unchecked-optional-access,
Ed Tanous07d467b2021-02-23 14:48:37 -080070bugprone-undefined-memory-manipulation,
71bugprone-undelegated-constructor,
Ed Tanousab3acb72022-07-09 08:21:39 -070072bugprone-unhandled-exception-at-new,
Ed Tanous07d467b2021-02-23 14:48:37 -080073bugprone-unhandled-self-assignment,
Ed Tanousfc171422024-04-04 17:18:16 -070074bugprone-unique-ptr-array-mismatch,
75bugprone-unsafe-functions,
76bugprone-unused-local-non-trivial-variable,
Ed Tanous07d467b2021-02-23 14:48:37 -080077bugprone-unused-raii,
78bugprone-unused-return-value,
79bugprone-use-after-move,
80bugprone-virtual-near-miss,
81cert-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,
Ed Tanousab3acb72022-07-09 08:21:39 -0700108cert-oop58-cpp,
109cert-pos44-c,
110cert-pos47-c,
111cert-sig30-c,
112cert-str34-c,
Ed Tanousfc171422024-04-04 17:18:16 -0700113clang-analyzer-apiModeling.Errno,
Ed Tanous07d467b2021-02-23 14:48:37 -0800114clang-analyzer-apiModeling.StdCLibraryFunctions,
115clang-analyzer-apiModeling.TrustNonnull,
Ed Tanousfc171422024-04-04 17:18:16 -0700116clang-analyzer-apiModeling.TrustReturnsNonnull,
Ed Tanous07d467b2021-02-23 14:48:37 -0800117clang-analyzer-apiModeling.google.GTest,
118clang-analyzer-apiModeling.llvm.CastValue,
119clang-analyzer-apiModeling.llvm.ReturnValue,
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,
Ed Tanousfc171422024-04-04 17:18:16 -0700137clang-analyzer-core.uninitialized.NewArraySize,
Ed Tanous07d467b2021-02-23 14:48:37 -0800138clang-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,
Ed Tanousfc171422024-04-04 17:18:16 -0700147clang-analyzer-cplusplus.StringChecker,
Ed Tanous07d467b2021-02-23 14:48:37 -0800148clang-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.cplusplus.UninitializedObject,
158clang-analyzer-optin.cplusplus.VirtualCall,
159clang-analyzer-optin.mpi.MPI-Checker,
160clang-analyzer-optin.osx.OSObjectCStyleCast,
161clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
162clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
163clang-analyzer-optin.performance.GCDAntipattern,
164clang-analyzer-optin.performance.Padding,
165clang-analyzer-optin.portability.UnixAPI,
166clang-analyzer-osx.API,
167clang-analyzer-osx.MIG,
168clang-analyzer-osx.NSOrCFErrorDerefChecker,
169clang-analyzer-osx.NumberObjectConversion,
170clang-analyzer-osx.OSObjectRetainCount,
171clang-analyzer-osx.ObjCProperty,
172clang-analyzer-osx.SecKeychainAPI,
173clang-analyzer-osx.cocoa.AtSync,
174clang-analyzer-osx.cocoa.AutoreleaseWrite,
175clang-analyzer-osx.cocoa.ClassRelease,
176clang-analyzer-osx.cocoa.Dealloc,
177clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
178clang-analyzer-osx.cocoa.Loops,
179clang-analyzer-osx.cocoa.MissingSuperCall,
180clang-analyzer-osx.cocoa.NSAutoreleasePool,
181clang-analyzer-osx.cocoa.NSError,
182clang-analyzer-osx.cocoa.NilArg,
183clang-analyzer-osx.cocoa.NonNilReturnValue,
184clang-analyzer-osx.cocoa.ObjCGenerics,
185clang-analyzer-osx.cocoa.RetainCount,
186clang-analyzer-osx.cocoa.RetainCountBase,
187clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
188clang-analyzer-osx.cocoa.SelfInit,
189clang-analyzer-osx.cocoa.SuperDealloc,
190clang-analyzer-osx.cocoa.UnusedIvars,
191clang-analyzer-osx.cocoa.VariadicMethodTypes,
192clang-analyzer-osx.coreFoundation.CFError,
193clang-analyzer-osx.coreFoundation.CFNumber,
194clang-analyzer-osx.coreFoundation.CFRetainRelease,
195clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
196clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
197clang-analyzer-security.FloatLoopCounter,
198clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
199clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
200clang-analyzer-security.insecureAPI.UncheckedReturn,
201clang-analyzer-security.insecureAPI.bcmp,
202clang-analyzer-security.insecureAPI.bcopy,
203clang-analyzer-security.insecureAPI.bzero,
204clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
205clang-analyzer-security.insecureAPI.getpw,
206clang-analyzer-security.insecureAPI.gets,
207clang-analyzer-security.insecureAPI.mkstemp,
208clang-analyzer-security.insecureAPI.mktemp,
209clang-analyzer-security.insecureAPI.rand,
210clang-analyzer-security.insecureAPI.strcpy,
211clang-analyzer-security.insecureAPI.vfork,
212clang-analyzer-unix.API,
213clang-analyzer-unix.DynamicMemoryModeling,
214clang-analyzer-unix.Malloc,
215clang-analyzer-unix.MallocSizeof,
216clang-analyzer-unix.MismatchedDeallocator,
217clang-analyzer-unix.Vfork,
218clang-analyzer-unix.cstring.BadSizeArg,
219clang-analyzer-unix.cstring.CStringModeling,
220clang-analyzer-unix.cstring.NullArg,
221clang-analyzer-valist.CopyToSelf,
222clang-analyzer-valist.Uninitialized,
223clang-analyzer-valist.Unterminated,
224clang-analyzer-valist.ValistBase,
225clang-analyzer-webkit.NoUncountedMemberChecker,
226clang-analyzer-webkit.RefCntblBaseVirtualDtor,
Ed Tanousfc171422024-04-04 17:18:16 -0700227clang-analyzer-webkit.UncountedLambdaCapturesChecker,
Ed Tanousab3acb72022-07-09 08:21:39 -0700228cppcoreguidelines-avoid-c-arrays,
229cppcoreguidelines-avoid-goto,
Ed Tanousfc171422024-04-04 17:18:16 -0700230cppcoreguidelines-avoid-non-const-global-variables,
Ed Tanousab3acb72022-07-09 08:21:39 -0700231cppcoreguidelines-c-copy-assignment-signature,
232cppcoreguidelines-explicit-virtual-functions,
233cppcoreguidelines-init-variables,
234cppcoreguidelines-interfaces-global-init,
235cppcoreguidelines-macro-usage,
236cppcoreguidelines-no-malloc,
237cppcoreguidelines-prefer-member-initializer,
238cppcoreguidelines-pro-bounds-array-to-pointer-decay,
239cppcoreguidelines-pro-bounds-pointer-arithmetic,
240cppcoreguidelines-pro-type-const-cast,
241cppcoreguidelines-pro-type-cstyle-cast,
242cppcoreguidelines-pro-type-member-init,
243cppcoreguidelines-pro-type-reinterpret-cast,
244cppcoreguidelines-pro-type-static-cast-downcast,
245cppcoreguidelines-pro-type-union-access,
246cppcoreguidelines-slicing,
247google-explicit-constructor,
Ed Tanousfc171422024-04-04 17:18:16 -0700248misc-coroutine-hostile-raii,
249misc-header-include-cycle,
250misc-misleading-bidirectional,
251misc-misleading-identifier,
Ed Tanous07d467b2021-02-23 14:48:37 -0800252misc-misplaced-const,
Ed Tanousfc171422024-04-04 17:18:16 -0700253misc-new-delete-overloads,
254misc-non-copyable-objects,
Ed Tanous07d467b2021-02-23 14:48:37 -0800255misc-redundant-expression,
256misc-static-assert,
257misc-throw-by-value-catch-by-reference,
258misc-unconventional-assign-operator,
259misc-uniqueptr-reset-release,
Ed Tanousfc171422024-04-04 17:18:16 -0700260misc-unused-alias-decls,
261misc-unused-parameters,
Ed Tanous07d467b2021-02-23 14:48:37 -0800262misc-unused-using-decls,
263modernize-avoid-bind,
264modernize-deprecated-headers,
265modernize-deprecated-ios-base-aliases,
266modernize-loop-convert,
267modernize-make-shared,
268modernize-make-unique,
269modernize-raw-string-literal,
Delphine CC Chiua3ca14a2024-03-27 17:02:24 +0800270modernize-redundant-void-arg,
Ed Tanous07d467b2021-02-23 14:48:37 -0800271modernize-replace-auto-ptr,
272modernize-replace-random-shuffle,
273modernize-return-braced-init-list,
274modernize-shrink-to-fit,
275modernize-unary-static-assert,
276modernize-use-bool-literals,
277modernize-use-default-member-init,
278modernize-use-emplace,
279modernize-use-equals-default,
280modernize-use-equals-delete,
281modernize-use-noexcept,
282modernize-use-nullptr,
283modernize-use-override,
284modernize-use-transparent-functors,
285modernize-use-uncaught-exceptions,
286modernize-use-using,
287performance-faster-string-find,
288performance-for-range-copy,
289performance-implicit-conversion-in-loop,
290performance-inefficient-algorithm,
291performance-inefficient-string-concatenation,
292performance-inefficient-vector-operation,
293performance-move-const-arg,
294performance-move-constructor-init,
295performance-no-automatic-move,
Ed Tanousab3acb72022-07-09 08:21:39 -0700296performance-no-int-to-ptr,
Ed Tanous07d467b2021-02-23 14:48:37 -0800297performance-noexcept-move-constructor,
298performance-trivially-destructible,
299performance-type-promotion-in-math-fn,
300performance-unnecessary-copy-initialization,
301performance-unnecessary-value-param,
Ed Tanousab3acb72022-07-09 08:21:39 -0700302readability-avoid-const-params-in-decls,
Ed Tanousfc171422024-04-04 17:18:16 -0700303readability-avoid-nested-conditional-operator,
Ed Tanous07d467b2021-02-23 14:48:37 -0800304readability-braces-around-statements,
305readability-const-return-type,
Ed Tanousfc171422024-04-04 17:18:16 -0700306readability-container-contains,
307readability-container-data-pointer,
Ed Tanousab3acb72022-07-09 08:21:39 -0700308readability-container-size-empty,
309readability-convert-member-functions-to-static,
Ed Tanous07d467b2021-02-23 14:48:37 -0800310readability-delete-null-pointer,
311readability-deleted-default,
312readability-else-after-return,
Ed Tanousab3acb72022-07-09 08:21:39 -0700313readability-function-size,
314readability-identifier-naming,
315readability-implicit-bool-conversion,
316readability-inconsistent-declaration-parameter-name,
317readability-isolate-declaration,
318readability-make-member-function-const,
319readability-misleading-indentation,
320readability-misplaced-array-index,
321readability-named-parameter,
322readability-non-const-parameter,
323readability-qualified-auto,
324readability-redundant-access-specifiers,
325readability-redundant-control-flow,
326readability-redundant-declaration,
327readability-redundant-function-ptr-dereference,
Ed Tanousfc171422024-04-04 17:18:16 -0700328readability-redundant-inline-specifier,
Ed Tanousab3acb72022-07-09 08:21:39 -0700329readability-redundant-member-init,
330readability-redundant-preprocessor,
331readability-redundant-smartptr-get,
332readability-redundant-string-cstr,
333readability-redundant-string-init,
334readability-simplify-boolean-expr,
335readability-simplify-subscript-expr,
336readability-static-accessed-through-instance,
337readability-static-definition-in-anonymous-namespace,
338readability-string-compare,
339readability-suspicious-call-argument,
340readability-uniqueptr-delete-release,
341readability-uppercase-literal-suffix'
Ed Tanousfc171422024-04-04 17:18:16 -0700342
Ed Tanous07d467b2021-02-23 14:48:37 -0800343WarningsAsErrors: '*'
344HeaderFilterRegex: '.*'
345CheckOptions:
346 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
347 - { key: readability-identifier-naming.VariableCase, value: camelBack }
348 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
349 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
350 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
351 - { key: readability-identifier-naming.StructCase, value: CamelCase }
Ed Tanousfc171422024-04-04 17:18:16 -0700352 - { key: cppcoreguidelines-rvalue-reference-param-not-moved.IgnoreUnnamedParams, value: true }
353 - { key: misc-include-cleaner.IgnoreHeaders, value: ((nlohmann/json_fwd.hpp)|(boost/.*/src.hpp)|(boost/.*/detail/.*)|(nlohmann/detail/.*)|(stdio.h)|(ranges)|(bits/chrono.h)|(boost/system/error_code.hpp)) }