blob: 07f13567076de9efdd8c15163360e8f06c42bfb0 [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,
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 Tanousab3acb72022-07-09 08:21:39 -070015bugprone-implicit-widening-of-multiplication-result,
Ed Tanous07d467b2021-02-23 14:48:37 -080016bugprone-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 Tanousab3acb72022-07-09 08:21:39 -070026bugprone-move-forwarding-reference,
Ed Tanous07d467b2021-02-23 14:48:37 -080027bugprone-multiple-statement-macro,
Ed Tanous07d467b2021-02-23 14:48:37 -080028bugprone-no-escape,
29bugprone-not-null-terminated-result,
30bugprone-parent-virtual-call,
31bugprone-posix-return,
Ed Tanousab3acb72022-07-09 08:21:39 -070032bugprone-redundant-branch-condition,
Ed Tanous07d467b2021-02-23 14:48:37 -080033bugprone-reserved-identifier,
Ed Tanousab3acb72022-07-09 08:21:39 -070034bugprone-signal-handler,
Ed Tanous07d467b2021-02-23 14:48:37 -080035bugprone-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,
Ed Tanousab3acb72022-07-09 08:21:39 -070043bugprone-suspicious-include,
Ed Tanous07d467b2021-02-23 14:48:37 -080044bugprone-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 Tanousab3acb72022-07-09 08:21:39 -070054bugprone-unhandled-exception-at-new,
Ed Tanous07d467b2021-02-23 14:48:37 -080055bugprone-unhandled-self-assignment,
56bugprone-unused-raii,
57bugprone-unused-return-value,
58bugprone-use-after-move,
59bugprone-virtual-near-miss,
60cert-con36-c,
61cert-con54-cpp,
62cert-dcl03-c,
63cert-dcl16-c,
64cert-dcl21-cpp,
65cert-dcl37-c,
66cert-dcl50-cpp,
67cert-dcl51-cpp,
68cert-dcl54-cpp,
69cert-dcl58-cpp,
70cert-dcl59-cpp,
71cert-env33-c,
72cert-err09-cpp,
73cert-err34-c,
74cert-err52-cpp,
75cert-err60-cpp,
76cert-err61-cpp,
77cert-fio38-c,
78cert-flp30-c,
79cert-mem57-cpp,
80cert-msc30-c,
81cert-msc32-c,
82cert-msc50-cpp,
83cert-msc51-cpp,
84cert-oop11-cpp,
85cert-oop54-cpp,
86cert-oop57-cpp,
Ed Tanousab3acb72022-07-09 08:21:39 -070087cert-oop58-cpp,
88cert-pos44-c,
89cert-pos47-c,
90cert-sig30-c,
91cert-str34-c,
Ed Tanous07d467b2021-02-23 14:48:37 -080092clang-analyzer-apiModeling.StdCLibraryFunctions,
93clang-analyzer-apiModeling.TrustNonnull,
94clang-analyzer-apiModeling.google.GTest,
95clang-analyzer-apiModeling.llvm.CastValue,
96clang-analyzer-apiModeling.llvm.ReturnValue,
97clang-analyzer-core.CallAndMessage,
98clang-analyzer-core.CallAndMessageModeling,
99clang-analyzer-core.DivideZero,
100clang-analyzer-core.DynamicTypePropagation,
101clang-analyzer-core.NonNullParamChecker,
102clang-analyzer-core.NonnilStringConstants,
103clang-analyzer-core.NullDereference,
104clang-analyzer-core.StackAddrEscapeBase,
105clang-analyzer-core.StackAddressEscape,
106clang-analyzer-core.UndefinedBinaryOperatorResult,
107clang-analyzer-core.VLASize,
108clang-analyzer-core.builtin.BuiltinFunctions,
109clang-analyzer-core.builtin.NoReturnFunctions,
110clang-analyzer-core.uninitialized.ArraySubscript,
111clang-analyzer-core.uninitialized.Assign,
112clang-analyzer-core.uninitialized.Branch,
113clang-analyzer-core.uninitialized.CapturedBlockVariable,
114clang-analyzer-core.uninitialized.UndefReturn,
115clang-analyzer-cplusplus.InnerPointer,
116clang-analyzer-cplusplus.Move,
117clang-analyzer-cplusplus.NewDelete,
118clang-analyzer-cplusplus.NewDeleteLeaks,
119clang-analyzer-cplusplus.PlacementNew,
120clang-analyzer-cplusplus.PureVirtualCall,
121clang-analyzer-cplusplus.SelfAssignment,
122clang-analyzer-cplusplus.SmartPtrModeling,
123clang-analyzer-cplusplus.VirtualCallModeling,
124clang-analyzer-deadcode.DeadStores,
125clang-analyzer-fuchsia.HandleChecker,
126clang-analyzer-nullability.NullPassedToNonnull,
127clang-analyzer-nullability.NullReturnedFromNonnull,
128clang-analyzer-nullability.NullabilityBase,
129clang-analyzer-nullability.NullableDereferenced,
130clang-analyzer-nullability.NullablePassedToNonnull,
131clang-analyzer-nullability.NullableReturnedFromNonnull,
132clang-analyzer-optin.cplusplus.UninitializedObject,
133clang-analyzer-optin.cplusplus.VirtualCall,
134clang-analyzer-optin.mpi.MPI-Checker,
135clang-analyzer-optin.osx.OSObjectCStyleCast,
136clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
137clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
138clang-analyzer-optin.performance.GCDAntipattern,
139clang-analyzer-optin.performance.Padding,
140clang-analyzer-optin.portability.UnixAPI,
141clang-analyzer-osx.API,
142clang-analyzer-osx.MIG,
143clang-analyzer-osx.NSOrCFErrorDerefChecker,
144clang-analyzer-osx.NumberObjectConversion,
145clang-analyzer-osx.OSObjectRetainCount,
146clang-analyzer-osx.ObjCProperty,
147clang-analyzer-osx.SecKeychainAPI,
148clang-analyzer-osx.cocoa.AtSync,
149clang-analyzer-osx.cocoa.AutoreleaseWrite,
150clang-analyzer-osx.cocoa.ClassRelease,
151clang-analyzer-osx.cocoa.Dealloc,
152clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
153clang-analyzer-osx.cocoa.Loops,
154clang-analyzer-osx.cocoa.MissingSuperCall,
155clang-analyzer-osx.cocoa.NSAutoreleasePool,
156clang-analyzer-osx.cocoa.NSError,
157clang-analyzer-osx.cocoa.NilArg,
158clang-analyzer-osx.cocoa.NonNilReturnValue,
159clang-analyzer-osx.cocoa.ObjCGenerics,
160clang-analyzer-osx.cocoa.RetainCount,
161clang-analyzer-osx.cocoa.RetainCountBase,
162clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
163clang-analyzer-osx.cocoa.SelfInit,
164clang-analyzer-osx.cocoa.SuperDealloc,
165clang-analyzer-osx.cocoa.UnusedIvars,
166clang-analyzer-osx.cocoa.VariadicMethodTypes,
167clang-analyzer-osx.coreFoundation.CFError,
168clang-analyzer-osx.coreFoundation.CFNumber,
169clang-analyzer-osx.coreFoundation.CFRetainRelease,
170clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
171clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
172clang-analyzer-security.FloatLoopCounter,
173clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
174clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
175clang-analyzer-security.insecureAPI.UncheckedReturn,
176clang-analyzer-security.insecureAPI.bcmp,
177clang-analyzer-security.insecureAPI.bcopy,
178clang-analyzer-security.insecureAPI.bzero,
179clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
180clang-analyzer-security.insecureAPI.getpw,
181clang-analyzer-security.insecureAPI.gets,
182clang-analyzer-security.insecureAPI.mkstemp,
183clang-analyzer-security.insecureAPI.mktemp,
184clang-analyzer-security.insecureAPI.rand,
185clang-analyzer-security.insecureAPI.strcpy,
186clang-analyzer-security.insecureAPI.vfork,
187clang-analyzer-unix.API,
188clang-analyzer-unix.DynamicMemoryModeling,
189clang-analyzer-unix.Malloc,
190clang-analyzer-unix.MallocSizeof,
191clang-analyzer-unix.MismatchedDeallocator,
192clang-analyzer-unix.Vfork,
193clang-analyzer-unix.cstring.BadSizeArg,
194clang-analyzer-unix.cstring.CStringModeling,
195clang-analyzer-unix.cstring.NullArg,
196clang-analyzer-valist.CopyToSelf,
197clang-analyzer-valist.Uninitialized,
198clang-analyzer-valist.Unterminated,
199clang-analyzer-valist.ValistBase,
200clang-analyzer-webkit.NoUncountedMemberChecker,
201clang-analyzer-webkit.RefCntblBaseVirtualDtor,
Ed Tanousab3acb72022-07-09 08:21:39 -0700202cppcoreguidelines-avoid-c-arrays,
203cppcoreguidelines-avoid-goto,
204cppcoreguidelines-c-copy-assignment-signature,
205cppcoreguidelines-explicit-virtual-functions,
206cppcoreguidelines-init-variables,
207cppcoreguidelines-interfaces-global-init,
208cppcoreguidelines-macro-usage,
209cppcoreguidelines-no-malloc,
210cppcoreguidelines-prefer-member-initializer,
211cppcoreguidelines-pro-bounds-array-to-pointer-decay,
212cppcoreguidelines-pro-bounds-pointer-arithmetic,
213cppcoreguidelines-pro-type-const-cast,
214cppcoreguidelines-pro-type-cstyle-cast,
215cppcoreguidelines-pro-type-member-init,
216cppcoreguidelines-pro-type-reinterpret-cast,
217cppcoreguidelines-pro-type-static-cast-downcast,
218cppcoreguidelines-pro-type-union-access,
219cppcoreguidelines-slicing,
220google-explicit-constructor,
Ed Tanous07d467b2021-02-23 14:48:37 -0800221misc-misplaced-const,
Ed Tanous07d467b2021-02-23 14:48:37 -0800222misc-redundant-expression,
223misc-static-assert,
224misc-throw-by-value-catch-by-reference,
225misc-unconventional-assign-operator,
226misc-uniqueptr-reset-release,
227misc-unused-using-decls,
228modernize-avoid-bind,
229modernize-deprecated-headers,
230modernize-deprecated-ios-base-aliases,
231modernize-loop-convert,
232modernize-make-shared,
233modernize-make-unique,
234modernize-raw-string-literal,
Delphine CC Chiua3ca14a2024-03-27 17:02:24 +0800235modernize-redundant-void-arg,
Ed Tanous07d467b2021-02-23 14:48:37 -0800236modernize-replace-auto-ptr,
237modernize-replace-random-shuffle,
238modernize-return-braced-init-list,
239modernize-shrink-to-fit,
240modernize-unary-static-assert,
241modernize-use-bool-literals,
242modernize-use-default-member-init,
243modernize-use-emplace,
244modernize-use-equals-default,
245modernize-use-equals-delete,
246modernize-use-noexcept,
247modernize-use-nullptr,
248modernize-use-override,
249modernize-use-transparent-functors,
250modernize-use-uncaught-exceptions,
251modernize-use-using,
252performance-faster-string-find,
253performance-for-range-copy,
254performance-implicit-conversion-in-loop,
255performance-inefficient-algorithm,
256performance-inefficient-string-concatenation,
257performance-inefficient-vector-operation,
258performance-move-const-arg,
259performance-move-constructor-init,
260performance-no-automatic-move,
Ed Tanousab3acb72022-07-09 08:21:39 -0700261performance-no-int-to-ptr,
Ed Tanous07d467b2021-02-23 14:48:37 -0800262performance-noexcept-move-constructor,
263performance-trivially-destructible,
264performance-type-promotion-in-math-fn,
265performance-unnecessary-copy-initialization,
266performance-unnecessary-value-param,
Ed Tanousab3acb72022-07-09 08:21:39 -0700267readability-avoid-const-params-in-decls,
Ed Tanous07d467b2021-02-23 14:48:37 -0800268readability-braces-around-statements,
269readability-const-return-type,
Ed Tanousab3acb72022-07-09 08:21:39 -0700270readability-container-size-empty,
271readability-convert-member-functions-to-static,
Ed Tanous07d467b2021-02-23 14:48:37 -0800272readability-delete-null-pointer,
273readability-deleted-default,
274readability-else-after-return,
Ed Tanousab3acb72022-07-09 08:21:39 -0700275readability-function-size,
276readability-identifier-naming,
277readability-implicit-bool-conversion,
278readability-inconsistent-declaration-parameter-name,
279readability-isolate-declaration,
280readability-make-member-function-const,
281readability-misleading-indentation,
282readability-misplaced-array-index,
283readability-named-parameter,
284readability-non-const-parameter,
285readability-qualified-auto,
286readability-redundant-access-specifiers,
287readability-redundant-control-flow,
288readability-redundant-declaration,
289readability-redundant-function-ptr-dereference,
290readability-redundant-member-init,
291readability-redundant-preprocessor,
292readability-redundant-smartptr-get,
293readability-redundant-string-cstr,
294readability-redundant-string-init,
295readability-simplify-boolean-expr,
296readability-simplify-subscript-expr,
297readability-static-accessed-through-instance,
298readability-static-definition-in-anonymous-namespace,
299readability-string-compare,
300readability-suspicious-call-argument,
301readability-uniqueptr-delete-release,
302readability-uppercase-literal-suffix'
Ed Tanous07d467b2021-02-23 14:48:37 -0800303WarningsAsErrors: '*'
304HeaderFilterRegex: '.*'
305CheckOptions:
306 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
307 - { key: readability-identifier-naming.VariableCase, value: camelBack }
308 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
309 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
310 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
311 - { key: readability-identifier-naming.StructCase, value: CamelCase }