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