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