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