blob: d5699b13f994f32b1cb07ae3b161972e8287b3ae [file] [log] [blame]
Ed Tanous8a57ec02020-10-09 12:46:52 -07001Checks: '
2-*,
Ed Tanousbce0f032022-07-09 07:27:35 -07003boost-use-to-string,
Ed Tanous8a57ec02020-10-09 12:46:52 -07004bugprone-argument-comment,
5bugprone-assert-side-effect,
6bugprone-bad-signal-to-kill-thread,
7bugprone-bool-pointer-implicit-conversion,
8bugprone-branch-clone,
9bugprone-copy-constructor-init,
10bugprone-dangling-handle,
11bugprone-dynamic-static-initializers,
12bugprone-fold-init-type,
13bugprone-forward-declaration-namespace,
14bugprone-forwarding-reference-overload,
Ed Tanousbce0f032022-07-09 07:27:35 -070015bugprone-implicit-widening-of-multiplication-result,
Ed Tanous8a57ec02020-10-09 12:46:52 -070016bugprone-inaccurate-erase,
17bugprone-incorrect-roundings,
18bugprone-infinite-loop,
19bugprone-integer-division,
20bugprone-lambda-function-name,
21bugprone-macro-parentheses,
22bugprone-macro-repeated-side-effects,
23bugprone-misplaced-operator-in-strlen-in-alloc,
24bugprone-misplaced-pointer-arithmetic-in-alloc,
25bugprone-misplaced-widening-cast,
Ed Tanousbce0f032022-07-09 07:27:35 -070026bugprone-move-forwarding-reference,
Ed Tanous8a57ec02020-10-09 12:46:52 -070027bugprone-multiple-statement-macro,
Ed Tanous8a57ec02020-10-09 12:46:52 -070028bugprone-no-escape,
29bugprone-not-null-terminated-result,
30bugprone-parent-virtual-call,
31bugprone-posix-return,
Ed Tanousbce0f032022-07-09 07:27:35 -070032bugprone-redundant-branch-condition,
Ed Tanous8a57ec02020-10-09 12:46:52 -070033bugprone-reserved-identifier,
Ed Tanousbce0f032022-07-09 07:27:35 -070034bugprone-signal-handler,
Ed Tanous8a57ec02020-10-09 12:46:52 -070035bugprone-signed-char-misuse,
36bugprone-sizeof-container,
37bugprone-sizeof-expression,
38bugprone-spuriously-wake-up-functions,
39bugprone-string-constructor,
40bugprone-string-integer-assignment,
41bugprone-string-literal-with-embedded-nul,
42bugprone-suspicious-enum-usage,
43bugprone-suspicious-include,
44bugprone-suspicious-memset-usage,
45bugprone-suspicious-missing-comma,
46bugprone-suspicious-semicolon,
47bugprone-suspicious-string-compare,
48bugprone-swapped-arguments,
49bugprone-terminating-continue,
50bugprone-throw-keyword-missing,
51bugprone-too-small-loop-variable,
52bugprone-undefined-memory-manipulation,
53bugprone-undelegated-constructor,
Ed Tanousbce0f032022-07-09 07:27:35 -070054bugprone-unhandled-exception-at-new,
Ed Tanous8a57ec02020-10-09 12:46:52 -070055bugprone-unhandled-self-assignment,
56bugprone-unused-raii,
57bugprone-unused-return-value,
58bugprone-use-after-move,
59bugprone-virtual-near-miss,
Ed Tanousa25223c2022-01-13 19:11:38 -080060cert-con36-c,
61cert-con54-cpp,
62cert-dcl03-c,
63cert-dcl16-c,
64cert-dcl21-cpp,
Ed Tanousa25223c2022-01-13 19:11:38 -080065cert-dcl50-cpp,
Ed Tanousa25223c2022-01-13 19:11:38 -080066cert-dcl54-cpp,
67cert-dcl58-cpp,
68cert-dcl59-cpp,
69cert-env33-c,
70cert-err09-cpp,
71cert-err34-c,
72cert-err52-cpp,
73cert-err60-cpp,
74cert-err61-cpp,
75cert-fio38-c,
76cert-flp30-c,
77cert-mem57-cpp,
78cert-msc30-c,
79cert-msc32-c,
80cert-msc50-cpp,
81cert-msc51-cpp,
82cert-oop11-cpp,
83cert-oop54-cpp,
84cert-oop57-cpp,
Ed Tanousbce0f032022-07-09 07:27:35 -070085cert-oop58-cpp,
86cert-pos44-c,
87cert-pos47-c,
88cert-sig30-c,
89cert-str34-c,
Ed Tanous193105f2022-07-09 07:24:31 -070090clang-analyzer-apiModeling.StdCLibraryFunctions,
91clang-analyzer-apiModeling.TrustNonnull,
Ed Tanousa25223c2022-01-13 19:11:38 -080092clang-analyzer-apiModeling.google.GTest,
93clang-analyzer-apiModeling.llvm.CastValue,
94clang-analyzer-apiModeling.llvm.ReturnValue,
Ed Tanousa25223c2022-01-13 19:11:38 -080095clang-analyzer-core.CallAndMessageModeling,
96clang-analyzer-core.DivideZero,
97clang-analyzer-core.DynamicTypePropagation,
Ed Tanousa25223c2022-01-13 19:11:38 -080098clang-analyzer-core.NonNullParamChecker,
Ed Tanous193105f2022-07-09 07:24:31 -070099clang-analyzer-core.NonnilStringConstants,
Ed Tanousa25223c2022-01-13 19:11:38 -0800100clang-analyzer-core.NullDereference,
101clang-analyzer-core.StackAddrEscapeBase,
102clang-analyzer-core.StackAddressEscape,
103clang-analyzer-core.UndefinedBinaryOperatorResult,
Ed Tanous193105f2022-07-09 07:24:31 -0700104clang-analyzer-core.VLASize,
105clang-analyzer-core.builtin.BuiltinFunctions,
106clang-analyzer-core.builtin.NoReturnFunctions,
Ed Tanousa25223c2022-01-13 19:11:38 -0800107clang-analyzer-core.uninitialized.ArraySubscript,
108clang-analyzer-core.uninitialized.Assign,
109clang-analyzer-core.uninitialized.Branch,
110clang-analyzer-core.uninitialized.CapturedBlockVariable,
111clang-analyzer-core.uninitialized.UndefReturn,
Ed Tanousa25223c2022-01-13 19:11:38 -0800112clang-analyzer-cplusplus.InnerPointer,
113clang-analyzer-cplusplus.Move,
114clang-analyzer-cplusplus.NewDelete,
115clang-analyzer-cplusplus.NewDeleteLeaks,
116clang-analyzer-cplusplus.PlacementNew,
117clang-analyzer-cplusplus.PureVirtualCall,
118clang-analyzer-cplusplus.SelfAssignment,
119clang-analyzer-cplusplus.SmartPtrModeling,
120clang-analyzer-cplusplus.VirtualCallModeling,
121clang-analyzer-deadcode.DeadStores,
122clang-analyzer-fuchsia.HandleChecker,
Ed Tanous193105f2022-07-09 07:24:31 -0700123clang-analyzer-nullability.NullPassedToNonnull,
124clang-analyzer-nullability.NullReturnedFromNonnull,
Ed Tanousa25223c2022-01-13 19:11:38 -0800125clang-analyzer-nullability.NullabilityBase,
126clang-analyzer-nullability.NullableDereferenced,
127clang-analyzer-nullability.NullablePassedToNonnull,
128clang-analyzer-nullability.NullableReturnedFromNonnull,
Ed Tanousa25223c2022-01-13 19:11:38 -0800129clang-analyzer-optin.cplusplus.UninitializedObject,
130clang-analyzer-optin.cplusplus.VirtualCall,
131clang-analyzer-optin.mpi.MPI-Checker,
Ed Tanous193105f2022-07-09 07:24:31 -0700132clang-analyzer-optin.osx.OSObjectCStyleCast,
Ed Tanousa25223c2022-01-13 19:11:38 -0800133clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
134clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
Ed Tanousa25223c2022-01-13 19:11:38 -0800135clang-analyzer-optin.performance.GCDAntipattern,
136clang-analyzer-optin.performance.Padding,
137clang-analyzer-optin.portability.UnixAPI,
138clang-analyzer-osx.API,
Ed Tanous193105f2022-07-09 07:24:31 -0700139clang-analyzer-osx.MIG,
140clang-analyzer-osx.NSOrCFErrorDerefChecker,
141clang-analyzer-osx.NumberObjectConversion,
142clang-analyzer-osx.OSObjectRetainCount,
143clang-analyzer-osx.ObjCProperty,
144clang-analyzer-osx.SecKeychainAPI,
Ed Tanousa25223c2022-01-13 19:11:38 -0800145clang-analyzer-osx.cocoa.AtSync,
146clang-analyzer-osx.cocoa.AutoreleaseWrite,
147clang-analyzer-osx.cocoa.ClassRelease,
148clang-analyzer-osx.cocoa.Dealloc,
149clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
150clang-analyzer-osx.cocoa.Loops,
151clang-analyzer-osx.cocoa.MissingSuperCall,
Ed Tanousa25223c2022-01-13 19:11:38 -0800152clang-analyzer-osx.cocoa.NSAutoreleasePool,
153clang-analyzer-osx.cocoa.NSError,
Ed Tanous193105f2022-07-09 07:24:31 -0700154clang-analyzer-osx.cocoa.NilArg,
155clang-analyzer-osx.cocoa.NonNilReturnValue,
Ed Tanousa25223c2022-01-13 19:11:38 -0800156clang-analyzer-osx.cocoa.ObjCGenerics,
157clang-analyzer-osx.cocoa.RetainCount,
158clang-analyzer-osx.cocoa.RetainCountBase,
159clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
160clang-analyzer-osx.cocoa.SelfInit,
161clang-analyzer-osx.cocoa.SuperDealloc,
162clang-analyzer-osx.cocoa.UnusedIvars,
163clang-analyzer-osx.cocoa.VariadicMethodTypes,
164clang-analyzer-osx.coreFoundation.CFError,
165clang-analyzer-osx.coreFoundation.CFNumber,
166clang-analyzer-osx.coreFoundation.CFRetainRelease,
167clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
168clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
Ed Tanousa25223c2022-01-13 19:11:38 -0800169clang-analyzer-security.FloatLoopCounter,
Ed Tanous193105f2022-07-09 07:24:31 -0700170clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
171clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
172clang-analyzer-security.insecureAPI.UncheckedReturn,
Ed Tanousa25223c2022-01-13 19:11:38 -0800173clang-analyzer-security.insecureAPI.bcmp,
174clang-analyzer-security.insecureAPI.bcopy,
175clang-analyzer-security.insecureAPI.bzero,
176clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
Ed Tanousa25223c2022-01-13 19:11:38 -0800177clang-analyzer-security.insecureAPI.getpw,
178clang-analyzer-security.insecureAPI.gets,
179clang-analyzer-security.insecureAPI.mkstemp,
180clang-analyzer-security.insecureAPI.mktemp,
181clang-analyzer-security.insecureAPI.rand,
Ed Tanousa25223c2022-01-13 19:11:38 -0800182clang-analyzer-security.insecureAPI.strcpy,
Ed Tanousa25223c2022-01-13 19:11:38 -0800183clang-analyzer-security.insecureAPI.vfork,
184clang-analyzer-unix.API,
Ed Tanousa25223c2022-01-13 19:11:38 -0800185clang-analyzer-unix.DynamicMemoryModeling,
186clang-analyzer-unix.Malloc,
187clang-analyzer-unix.MallocSizeof,
188clang-analyzer-unix.MismatchedDeallocator,
189clang-analyzer-unix.Vfork,
Ed Tanous193105f2022-07-09 07:24:31 -0700190clang-analyzer-unix.cstring.BadSizeArg,
191clang-analyzer-unix.cstring.CStringModeling,
192clang-analyzer-unix.cstring.NullArg,
Ed Tanousa25223c2022-01-13 19:11:38 -0800193clang-analyzer-valist.CopyToSelf,
194clang-analyzer-valist.Uninitialized,
195clang-analyzer-valist.Unterminated,
196clang-analyzer-valist.ValistBase,
197clang-analyzer-webkit.NoUncountedMemberChecker,
198clang-analyzer-webkit.RefCntblBaseVirtualDtor,
Ed Tanous532c8642022-01-14 09:48:15 -0800199cppcoreguidelines-avoid-c-arrays,
Ed Tanous73030632022-01-14 10:09:47 -0800200cppcoreguidelines-avoid-goto,
Ed Tanousbce0f032022-07-09 07:27:35 -0700201cppcoreguidelines-c-copy-assignment-signature,
202cppcoreguidelines-explicit-virtual-functions,
Ed Tanousa771f6a2022-01-14 09:36:51 -0800203cppcoreguidelines-init-variables,
Ed Tanousbce0f032022-07-09 07:27:35 -0700204cppcoreguidelines-interfaces-global-init,
205cppcoreguidelines-macro-usage,
206cppcoreguidelines-no-malloc,
207cppcoreguidelines-prefer-member-initializer,
208cppcoreguidelines-pro-bounds-array-to-pointer-decay,
209cppcoreguidelines-pro-type-const-cast,
210cppcoreguidelines-pro-type-cstyle-cast,
211cppcoreguidelines-pro-type-member-init,
212cppcoreguidelines-pro-type-reinterpret-cast,
213cppcoreguidelines-pro-type-static-cast-downcast,
214cppcoreguidelines-pro-type-union-access,
Ed Tanous99c44092022-01-14 09:59:09 -0800215cppcoreguidelines-pro-type-vararg,
Ed Tanousbce0f032022-07-09 07:27:35 -0700216cppcoreguidelines-slicing,
217google-explicit-constructor,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700218misc-misplaced-const,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700219misc-redundant-expression,
220misc-static-assert,
221misc-throw-by-value-catch-by-reference,
222misc-unconventional-assign-operator,
223misc-uniqueptr-reset-release,
224misc-unused-using-decls,
Ed Tanousa25223c2022-01-13 19:11:38 -0800225modernize-avoid-bind,
226modernize-deprecated-headers,
227modernize-deprecated-ios-base-aliases,
228modernize-loop-convert,
229modernize-make-shared,
230modernize-make-unique,
231modernize-raw-string-literal,
232modernize-replace-auto-ptr,
233modernize-replace-random-shuffle,
234modernize-return-braced-init-list,
235modernize-shrink-to-fit,
236modernize-unary-static-assert,
237modernize-use-bool-literals,
238modernize-use-default-member-init,
239modernize-use-emplace,
240modernize-use-equals-default,
241modernize-use-equals-delete,
242modernize-use-noexcept,
243modernize-use-nullptr,
244modernize-use-override,
245modernize-use-transparent-functors,
246modernize-use-uncaught-exceptions,
247modernize-use-using,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700248performance-faster-string-find,
249performance-for-range-copy,
250performance-implicit-conversion-in-loop,
251performance-inefficient-algorithm,
252performance-inefficient-string-concatenation,
253performance-inefficient-vector-operation,
254performance-move-const-arg,
255performance-move-constructor-init,
Ed Tanousa25223c2022-01-13 19:11:38 -0800256performance-no-automatic-move,
Ed Tanousbce0f032022-07-09 07:27:35 -0700257performance-no-int-to-ptr,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700258performance-noexcept-move-constructor,
259performance-trivially-destructible,
Ed Tanousa25223c2022-01-13 19:11:38 -0800260performance-type-promotion-in-math-fn,
Ed Tanousa25223c2022-01-13 19:11:38 -0800261performance-unnecessary-copy-initialization,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700262performance-unnecessary-value-param,
Ed Tanousbce0f032022-07-09 07:27:35 -0700263readability-avoid-const-params-in-decls,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700264readability-braces-around-statements,
265readability-const-return-type,
Ed Tanousbce0f032022-07-09 07:27:35 -0700266readability-container-size-empty,
267readability-convert-member-functions-to-static,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700268readability-delete-null-pointer,
269readability-deleted-default,
Ed Tanousa25223c2022-01-13 19:11:38 -0800270readability-else-after-return,
Ed Tanousbce0f032022-07-09 07:27:35 -0700271readability-function-size,
272readability-identifier-naming,
273readability-implicit-bool-conversion,
274readability-inconsistent-declaration-parameter-name,
275readability-isolate-declaration,
276readability-make-member-function-const,
277readability-misleading-indentation,
278readability-misplaced-array-index,
279readability-named-parameter,
280readability-non-const-parameter,
281readability-qualified-auto,
282readability-redundant-access-specifiers,
283readability-redundant-control-flow,
284readability-redundant-declaration,
285readability-redundant-function-ptr-dereference,
286readability-redundant-member-init,
287readability-redundant-preprocessor,
288readability-redundant-smartptr-get,
289readability-redundant-string-cstr,
290readability-redundant-string-init,
291readability-simplify-boolean-expr,
292readability-simplify-subscript-expr,
293readability-static-accessed-through-instance,
294readability-static-definition-in-anonymous-namespace,
295readability-string-compare,
296readability-suspicious-call-argument,
297readability-uniqueptr-delete-release,
298readability-uppercase-literal-suffix'
Ed Tanous8a57ec02020-10-09 12:46:52 -0700299
300WarningsAsErrors: '*'
Oleksandr Shulzhenko77141ac2023-03-14 14:52:36 +0100301HeaderFilterRegex: '(?!^subprojects).*'
Ed Tanous8a57ec02020-10-09 12:46:52 -0700302CheckOptions:
303 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
304 - { key: readability-identifier-naming.VariableCase, value: camelBack }
305 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
306 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
307 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
308 - { key: readability-identifier-naming.StructCase, value: CamelCase }