blob: 87789a8f455e546ded6c4e4a723111e61468872c [file] [log] [blame]
Brandon Kim638384c2022-05-10 14:09:48 -07001Checks: '
2-*,
3readability-identifier-naming,
4clang-analyzer-apiModeling.StdCLibraryFunctions,
5clang-analyzer-apiModeling.TrustNonnull,
6clang-analyzer-apiModeling.google.GTest,
7clang-analyzer-apiModeling.llvm.CastValue,
8clang-analyzer-apiModeling.llvm.ReturnValue,
9clang-analyzer-core.CallAndMessageModeling,
10clang-analyzer-core.DivideZero,
11clang-analyzer-core.DynamicTypePropagation,
12clang-analyzer-core.NonNullParamChecker,
13clang-analyzer-core.NonnilStringConstants,
14clang-analyzer-core.NullDereference,
15clang-analyzer-core.StackAddrEscapeBase,
16clang-analyzer-core.StackAddressEscape,
17clang-analyzer-core.UndefinedBinaryOperatorResult,
18clang-analyzer-core.VLASize,
19clang-analyzer-core.builtin.BuiltinFunctions,
20clang-analyzer-core.builtin.NoReturnFunctions,
21clang-analyzer-core.uninitialized.ArraySubscript,
22clang-analyzer-core.uninitialized.Assign,
23clang-analyzer-core.uninitialized.Branch,
24clang-analyzer-core.uninitialized.CapturedBlockVariable,
25clang-analyzer-core.uninitialized.UndefReturn,
26clang-analyzer-cplusplus.InnerPointer,
27clang-analyzer-cplusplus.Move,
28clang-analyzer-cplusplus.NewDelete,
29clang-analyzer-cplusplus.NewDeleteLeaks,
30clang-analyzer-cplusplus.PlacementNew,
31clang-analyzer-cplusplus.PureVirtualCall,
32clang-analyzer-cplusplus.SelfAssignment,
33clang-analyzer-cplusplus.SmartPtrModeling,
34clang-analyzer-cplusplus.VirtualCallModeling,
35clang-analyzer-deadcode.DeadStores,
36clang-analyzer-fuchsia.HandleChecker,
37clang-analyzer-nullability.NullPassedToNonnull,
38clang-analyzer-nullability.NullReturnedFromNonnull,
39clang-analyzer-nullability.NullabilityBase,
40clang-analyzer-nullability.NullableDereferenced,
41clang-analyzer-nullability.NullablePassedToNonnull,
42clang-analyzer-nullability.NullableReturnedFromNonnull,
43clang-analyzer-optin.cplusplus.UninitializedObject,
44clang-analyzer-optin.cplusplus.VirtualCall,
45clang-analyzer-optin.mpi.MPI-Checker,
46clang-analyzer-optin.osx.OSObjectCStyleCast,
47clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
48clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
49clang-analyzer-optin.performance.GCDAntipattern,
50clang-analyzer-optin.performance.Padding,
51clang-analyzer-optin.portability.UnixAPI,
52clang-analyzer-osx.API,
53clang-analyzer-osx.MIG,
54clang-analyzer-osx.NSOrCFErrorDerefChecker,
55clang-analyzer-osx.NumberObjectConversion,
56clang-analyzer-osx.OSObjectRetainCount,
57clang-analyzer-osx.ObjCProperty,
58clang-analyzer-osx.SecKeychainAPI,
59clang-analyzer-osx.cocoa.AtSync,
60clang-analyzer-osx.cocoa.AutoreleaseWrite,
61clang-analyzer-osx.cocoa.ClassRelease,
62clang-analyzer-osx.cocoa.Dealloc,
63clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
64clang-analyzer-osx.cocoa.Loops,
65clang-analyzer-osx.cocoa.MissingSuperCall,
66clang-analyzer-osx.cocoa.NSAutoreleasePool,
67clang-analyzer-osx.cocoa.NSError,
68clang-analyzer-osx.cocoa.NilArg,
69clang-analyzer-osx.cocoa.NonNilReturnValue,
70clang-analyzer-osx.cocoa.ObjCGenerics,
71clang-analyzer-osx.cocoa.RetainCount,
72clang-analyzer-osx.cocoa.RetainCountBase,
73clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
74clang-analyzer-osx.cocoa.SelfInit,
75clang-analyzer-osx.cocoa.SuperDealloc,
76clang-analyzer-osx.cocoa.UnusedIvars,
77clang-analyzer-osx.cocoa.VariadicMethodTypes,
78clang-analyzer-osx.coreFoundation.CFError,
79clang-analyzer-osx.coreFoundation.CFNumber,
80clang-analyzer-osx.coreFoundation.CFRetainRelease,
81clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
82clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
83clang-analyzer-security.FloatLoopCounter,
84clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
85clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
86clang-analyzer-security.insecureAPI.UncheckedReturn,
87clang-analyzer-security.insecureAPI.bcmp,
88clang-analyzer-security.insecureAPI.bcopy,
89clang-analyzer-security.insecureAPI.bzero,
90clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
91clang-analyzer-security.insecureAPI.getpw,
92clang-analyzer-security.insecureAPI.gets,
93clang-analyzer-security.insecureAPI.mkstemp,
94clang-analyzer-security.insecureAPI.mktemp,
95clang-analyzer-security.insecureAPI.rand,
96clang-analyzer-security.insecureAPI.strcpy,
97clang-analyzer-security.insecureAPI.vfork,
98clang-analyzer-unix.API,
99clang-analyzer-unix.DynamicMemoryModeling,
100clang-analyzer-unix.Malloc,
101clang-analyzer-unix.MallocSizeof,
102clang-analyzer-unix.MismatchedDeallocator,
103clang-analyzer-unix.Vfork,
104clang-analyzer-unix.cstring.BadSizeArg,
105clang-analyzer-unix.cstring.CStringModeling,
106clang-analyzer-unix.cstring.NullArg,
107clang-analyzer-valist.CopyToSelf,
108clang-analyzer-valist.Uninitialized,
109clang-analyzer-valist.Unterminated,
110clang-analyzer-valist.ValistBase,
111clang-analyzer-webkit.NoUncountedMemberChecker,
112clang-analyzer-webkit.RefCntblBaseVirtualDtor,
113cert-con36-c,
114cert-con54-cpp,
115cert-dcl03-c,
116cert-dcl16-c,
117cert-dcl21-cpp,
118cert-dcl37-c,
119cert-dcl50-cpp,
120cert-dcl51-cpp,
121cert-dcl54-cpp,
122cert-dcl58-cpp,
123cert-dcl59-cpp,
124cert-env33-c,
125cert-err09-cpp,
126cert-err34-c,
127cert-err52-cpp,
128cert-err60-cpp,
129cert-err61-cpp,
130cert-fio38-c,
131cert-flp30-c,
132cert-mem57-cpp,
133cert-msc30-c,
134cert-msc32-c,
135cert-msc50-cpp,
136cert-msc51-cpp,
137cert-oop11-cpp,
138cert-oop54-cpp,
139cert-oop57-cpp,
140modernize-avoid-bind,
141modernize-deprecated-headers,
142modernize-deprecated-ios-base-aliases,
143modernize-loop-convert,
144modernize-make-shared,
145modernize-make-unique,
146modernize-raw-string-literal,
147modernize-replace-auto-ptr,
148modernize-replace-random-shuffle,
149modernize-return-braced-init-list,
150modernize-shrink-to-fit,
151modernize-unary-static-assert,
152modernize-use-bool-literals,
153modernize-use-default-member-init,
154modernize-use-emplace,
155modernize-use-equals-default,
156modernize-use-equals-delete,
157modernize-use-noexcept,
158modernize-use-nullptr,
159modernize-use-override,
160modernize-use-transparent-functors,
161modernize-use-uncaught-exceptions,
162modernize-use-using,
163bugprone-argument-comment,
164bugprone-assert-side-effect,
165bugprone-bad-signal-to-kill-thread,
166bugprone-bool-pointer-implicit-conversion,
167bugprone-branch-clone,
168bugprone-copy-constructor-init,
169bugprone-dangling-handle,
170bugprone-dynamic-static-initializers,
171bugprone-fold-init-type,
172bugprone-forward-declaration-namespace,
173bugprone-forwarding-reference-overload,
174bugprone-inaccurate-erase,
175bugprone-incorrect-roundings,
176bugprone-infinite-loop,
177bugprone-integer-division,
178bugprone-lambda-function-name,
179bugprone-macro-parentheses,
180bugprone-macro-repeated-side-effects,
181bugprone-misplaced-operator-in-strlen-in-alloc,
182bugprone-misplaced-pointer-arithmetic-in-alloc,
183bugprone-misplaced-widening-cast,
184bugprone-multiple-statement-macro,
185bugprone-narrowing-conversions,
186bugprone-no-escape,
187bugprone-not-null-terminated-result,
188bugprone-parent-virtual-call,
189bugprone-posix-return,
190bugprone-reserved-identifier,
191bugprone-signed-char-misuse,
192bugprone-sizeof-container,
193bugprone-sizeof-expression,
194bugprone-spuriously-wake-up-functions,
195bugprone-string-constructor,
196bugprone-string-integer-assignment,
197bugprone-string-literal-with-embedded-nul,
198bugprone-suspicious-enum-usage,
199bugprone-suspicious-include,
200bugprone-suspicious-memset-usage,
201bugprone-suspicious-missing-comma,
202bugprone-suspicious-semicolon,
203bugprone-suspicious-string-compare,
204bugprone-swapped-arguments,
205bugprone-terminating-continue,
206bugprone-throw-keyword-missing,
207bugprone-too-small-loop-variable,
208bugprone-undefined-memory-manipulation,
209bugprone-undelegated-constructor,
210bugprone-unhandled-self-assignment,
211bugprone-unused-raii,
212bugprone-unused-return-value,
213bugprone-use-after-move,
214bugprone-virtual-near-miss,
215misc-misplaced-const,
216misc-no-recursion,
217misc-redundant-expression,
218misc-static-assert,
219misc-throw-by-value-catch-by-reference,
220misc-unconventional-assign-operator,
221misc-uniqueptr-reset-release,
222misc-unused-using-decls,
223performance-for-range-copy,
224performance-implicit-conversion-in-loop,
225performance-inefficient-algorithm,
226performance-inefficient-vector-operation,
227performance-move-constructor-init,
228performance-no-automatic-move,
229performance-trivially-destructible,
230performance-type-promotion-in-math-fn,
231performance-unnecessary-copy-initialization,
232performance-faster-string-find,
233performance-for-range-copy,
234performance-implicit-conversion-in-loop,
235performance-inefficient-algorithm,
236performance-inefficient-string-concatenation,
237performance-inefficient-vector-operation,
238performance-move-const-arg,
239performance-move-constructor-init,
240performance-no-automatic-move,
241performance-noexcept-move-constructor,
242performance-trivially-destructible,
243performance-type-promotion-in-math-fn,
244performance-unnecessary-copy-initialization,
245performance-unnecessary-value-param,
246readability-identifier-naming,
247readability-braces-around-statements,
248readability-const-return-type,
249readability-delete-null-pointer,
250readability-deleted-default,
251readability-else-after-return'
252
253WarningsAsErrors: '*'
254HeaderFilterRegex: '^((?!linux).)*$'
255CheckOptions:
256 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
257 - { key: readability-identifier-naming.VariableCase, value: camelBack }
258 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
259 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
260 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
261 - { key: readability-identifier-naming.StructCase, value: CamelCase }