blob: 15ade7fb156971876ccb7042c884105c7618e8d4 [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,
Ed Tanous6de264c2022-01-06 12:47:59 -080015bugprone-implicit-widening-of-multiplication-result,
Ed Tanousf23b7292020-10-15 09:41:17 -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 Tanousf94c4ec2022-01-06 12:44:41 -080026bugprone-move-forwarding-reference,
Ed Tanousf23b7292020-10-15 09:41:17 -070027bugprone-multiple-statement-macro,
28bugprone-narrowing-conversions,
29bugprone-no-escape,
30bugprone-not-null-terminated-result,
31bugprone-parent-virtual-call,
32bugprone-posix-return,
33bugprone-reserved-identifier,
34bugprone-signed-char-misuse,
35bugprone-sizeof-container,
36bugprone-sizeof-expression,
37bugprone-spuriously-wake-up-functions,
38bugprone-string-constructor,
39bugprone-string-integer-assignment,
40bugprone-string-literal-with-embedded-nul,
41bugprone-suspicious-enum-usage,
Ed Tanousb00dcc22021-02-23 12:52:50 -080042#bugprone-suspicious-include,
Ed Tanousf23b7292020-10-15 09:41:17 -070043bugprone-suspicious-memset-usage,
44bugprone-suspicious-missing-comma,
45bugprone-suspicious-semicolon,
46bugprone-suspicious-string-compare,
47bugprone-swapped-arguments,
48bugprone-terminating-continue,
49bugprone-throw-keyword-missing,
50bugprone-too-small-loop-variable,
51bugprone-undefined-memory-manipulation,
52bugprone-undelegated-constructor,
53bugprone-unhandled-self-assignment,
54bugprone-unused-raii,
55bugprone-unused-return-value,
56bugprone-use-after-move,
57bugprone-virtual-near-miss,
58cert-con36-c,
59cert-con54-cpp,
60cert-dcl03-c,
61cert-dcl16-c,
62cert-dcl21-cpp,
63cert-dcl37-c,
64cert-dcl50-cpp,
65cert-dcl51-cpp,
66cert-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 Tanous3174e4d2020-10-07 11:41:22 -070085clang-analyzer-apiModeling.StdCLibraryFunctions,
86clang-analyzer-apiModeling.TrustNonnull,
87clang-analyzer-apiModeling.google.GTest,
88clang-analyzer-apiModeling.llvm.CastValue,
89clang-analyzer-apiModeling.llvm.ReturnValue,
90clang-analyzer-core.CallAndMessage,
91clang-analyzer-core.CallAndMessageModeling,
92clang-analyzer-core.DivideZero,
93clang-analyzer-core.DynamicTypePropagation,
94clang-analyzer-core.NonNullParamChecker,
95clang-analyzer-core.NonnilStringConstants,
96clang-analyzer-core.NullDereference,
97clang-analyzer-core.StackAddrEscapeBase,
98clang-analyzer-core.StackAddressEscape,
99clang-analyzer-core.UndefinedBinaryOperatorResult,
100clang-analyzer-core.VLASize,
101clang-analyzer-core.builtin.BuiltinFunctions,
102clang-analyzer-core.builtin.NoReturnFunctions,
103clang-analyzer-core.uninitialized.ArraySubscript,
104clang-analyzer-core.uninitialized.Assign,
105clang-analyzer-core.uninitialized.Branch,
106clang-analyzer-core.uninitialized.CapturedBlockVariable,
107clang-analyzer-core.uninitialized.UndefReturn,
108clang-analyzer-cplusplus.InnerPointer,
109clang-analyzer-cplusplus.Move,
110clang-analyzer-cplusplus.NewDelete,
111clang-analyzer-cplusplus.NewDeleteLeaks,
112clang-analyzer-cplusplus.PlacementNew,
113clang-analyzer-cplusplus.PureVirtualCall,
114clang-analyzer-cplusplus.SelfAssignment,
115clang-analyzer-cplusplus.SmartPtrModeling,
116clang-analyzer-cplusplus.VirtualCallModeling,
117clang-analyzer-deadcode.DeadStores,
118clang-analyzer-fuchsia.HandleChecker,
119clang-analyzer-nullability.NullPassedToNonnull,
120clang-analyzer-nullability.NullReturnedFromNonnull,
121clang-analyzer-nullability.NullabilityBase,
122clang-analyzer-nullability.NullableDereferenced,
123clang-analyzer-nullability.NullablePassedToNonnull,
124clang-analyzer-nullability.NullableReturnedFromNonnull,
125clang-analyzer-optin.cplusplus.UninitializedObject,
126clang-analyzer-optin.cplusplus.VirtualCall,
127clang-analyzer-optin.mpi.MPI-Checker,
128clang-analyzer-optin.osx.OSObjectCStyleCast,
129clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
130clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
131clang-analyzer-optin.performance.GCDAntipattern,
132clang-analyzer-optin.performance.Padding,
133clang-analyzer-optin.portability.UnixAPI,
134clang-analyzer-osx.API,
135clang-analyzer-osx.MIG,
136clang-analyzer-osx.NSOrCFErrorDerefChecker,
137clang-analyzer-osx.NumberObjectConversion,
138clang-analyzer-osx.OSObjectRetainCount,
139clang-analyzer-osx.ObjCProperty,
140clang-analyzer-osx.SecKeychainAPI,
141clang-analyzer-osx.cocoa.AtSync,
142clang-analyzer-osx.cocoa.AutoreleaseWrite,
143clang-analyzer-osx.cocoa.ClassRelease,
144clang-analyzer-osx.cocoa.Dealloc,
145clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
146clang-analyzer-osx.cocoa.Loops,
147clang-analyzer-osx.cocoa.MissingSuperCall,
148clang-analyzer-osx.cocoa.NSAutoreleasePool,
149clang-analyzer-osx.cocoa.NSError,
150clang-analyzer-osx.cocoa.NilArg,
151clang-analyzer-osx.cocoa.NonNilReturnValue,
152clang-analyzer-osx.cocoa.ObjCGenerics,
153clang-analyzer-osx.cocoa.RetainCount,
154clang-analyzer-osx.cocoa.RetainCountBase,
155clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
156clang-analyzer-osx.cocoa.SelfInit,
157clang-analyzer-osx.cocoa.SuperDealloc,
158clang-analyzer-osx.cocoa.UnusedIvars,
159clang-analyzer-osx.cocoa.VariadicMethodTypes,
160clang-analyzer-osx.coreFoundation.CFError,
161clang-analyzer-osx.coreFoundation.CFNumber,
162clang-analyzer-osx.coreFoundation.CFRetainRelease,
163clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
164clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
165clang-analyzer-security.FloatLoopCounter,
166clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
167clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
168clang-analyzer-security.insecureAPI.UncheckedReturn,
169clang-analyzer-security.insecureAPI.bcmp,
170clang-analyzer-security.insecureAPI.bcopy,
171clang-analyzer-security.insecureAPI.bzero,
172clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
173clang-analyzer-security.insecureAPI.getpw,
174clang-analyzer-security.insecureAPI.gets,
175clang-analyzer-security.insecureAPI.mkstemp,
176clang-analyzer-security.insecureAPI.mktemp,
177clang-analyzer-security.insecureAPI.rand,
178clang-analyzer-security.insecureAPI.strcpy,
179clang-analyzer-security.insecureAPI.vfork,
180clang-analyzer-unix.API,
181clang-analyzer-unix.DynamicMemoryModeling,
182clang-analyzer-unix.Malloc,
183clang-analyzer-unix.MallocSizeof,
184clang-analyzer-unix.MismatchedDeallocator,
185clang-analyzer-unix.Vfork,
186clang-analyzer-unix.cstring.BadSizeArg,
187clang-analyzer-unix.cstring.CStringModeling,
188clang-analyzer-unix.cstring.NullArg,
189clang-analyzer-valist.CopyToSelf,
190clang-analyzer-valist.Uninitialized,
191clang-analyzer-valist.Unterminated,
192clang-analyzer-valist.ValistBase,
193clang-analyzer-webkit.NoUncountedMemberChecker,
194clang-analyzer-webkit.RefCntblBaseVirtualDtor,
Ed Tanousf23b7292020-10-15 09:41:17 -0700195misc-misplaced-const,
Ed Tanousb00dcc22021-02-23 12:52:50 -0800196#misc-no-recursion,
Ed Tanousf23b7292020-10-15 09:41:17 -0700197misc-redundant-expression,
198misc-static-assert,
199misc-throw-by-value-catch-by-reference,
200misc-unconventional-assign-operator,
201misc-uniqueptr-reset-release,
202misc-unused-using-decls,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700203modernize-avoid-bind,
204modernize-deprecated-headers,
205modernize-deprecated-ios-base-aliases,
206modernize-loop-convert,
207modernize-make-shared,
208modernize-make-unique,
209modernize-raw-string-literal,
210modernize-replace-auto-ptr,
211modernize-replace-random-shuffle,
212modernize-return-braced-init-list,
213modernize-shrink-to-fit,
214modernize-unary-static-assert,
215modernize-use-bool-literals,
216modernize-use-default-member-init,
217modernize-use-emplace,
218modernize-use-equals-default,
219modernize-use-equals-delete,
220modernize-use-noexcept,
221modernize-use-nullptr,
222modernize-use-override,
223modernize-use-transparent-functors,
224modernize-use-uncaught-exceptions,
225modernize-use-using,
Ed Tanousf23b7292020-10-15 09:41:17 -0700226performance-faster-string-find,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700227performance-for-range-copy,
228performance-implicit-conversion-in-loop,
229performance-inefficient-algorithm,
Ed Tanousf23b7292020-10-15 09:41:17 -0700230performance-inefficient-string-concatenation,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700231performance-inefficient-vector-operation,
Ed Tanousf23b7292020-10-15 09:41:17 -0700232performance-move-const-arg,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700233performance-move-constructor-init,
234performance-no-automatic-move,
Ed Tanousf23b7292020-10-15 09:41:17 -0700235performance-noexcept-move-constructor,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700236performance-trivially-destructible,
237performance-type-promotion-in-math-fn,
238performance-unnecessary-copy-initialization,
Ed Tanousf23b7292020-10-15 09:41:17 -0700239performance-unnecessary-value-param,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700240readability-braces-around-statements,
241readability-const-return-type,
242readability-delete-null-pointer,
243readability-deleted-default,
Ed Tanousf23b7292020-10-15 09:41:17 -0700244readability-else-after-return,
Brad Bishop52599632020-10-27 20:08:33 -0400245readability-identifier-naming'
Ed Tanous3174e4d2020-10-07 11:41:22 -0700246
247WarningsAsErrors: '*'
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700248HeaderFilterRegex: '.*'
249CheckOptions:
250 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
251 - { key: readability-identifier-naming.VariableCase, value: camelBack }
252 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
Ed Tanous81ce6092020-12-17 16:54:55 +0000253 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700254 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
255 - { key: readability-identifier-naming.StructCase, value: CamelCase }
256