blob: d892bddf9e1bbabbf947f0f046c8f790a00ac333 [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 Tanous9bc9dc02022-01-07 09:43:17 -0800204cppcoreguidelines-avoid-c-arrays,
205cppcoreguidelines-avoid-goto,
206cppcoreguidelines-c-copy-assignment-signature,
207cppcoreguidelines-explicit-virtual-functions,
Ed Tanous543f4402022-01-06 13:12:53 -0800208cppcoreguidelines-init-variables,
Ed Tanousd3a9e082022-01-07 09:30:41 -0800209cppcoreguidelines-interfaces-global-init,
Ed Tanous600d2392022-01-07 09:32:03 -0800210cppcoreguidelines-macro-usage,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800211cppcoreguidelines-narrowing-conversions,
Ed Tanousfcc5aa62022-01-07 09:40:43 -0800212cppcoreguidelines-no-malloc,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800213cppcoreguidelines-prefer-member-initializer,
Ed Tanous9b6ffca2022-01-07 09:33:43 -0800214cppcoreguidelines-pro-bounds-array-to-pointer-decay,
Ed Tanousca45aa32022-01-07 09:28:45 -0800215cppcoreguidelines-pro-bounds-pointer-arithmetic,
Ed Tanous4ecc6182022-01-07 09:36:26 -0800216cppcoreguidelines-pro-type-const-cast,
Ed Tanous4bac4a82022-01-07 09:37:55 -0800217cppcoreguidelines-pro-type-cstyle-cast,
Ed Tanousd3a9e082022-01-07 09:30:41 -0800218cppcoreguidelines-pro-type-member-init,
Ed Tanous46ff87b2022-01-07 09:25:51 -0800219cppcoreguidelines-pro-type-reinterpret-cast,
Ed Tanousadf3d0e2022-01-07 09:42:21 -0800220cppcoreguidelines-pro-type-static-cast-downcast,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800221cppcoreguidelines-pro-type-union-access,
Ed Tanous49d1eea2022-01-07 09:39:33 -0800222cppcoreguidelines-pro-type-vararg,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800223cppcoreguidelines-slicing,
Ed Tanousecd6a3a2022-01-07 09:18:40 -0800224cppcoreguidelines-special-member-functions,
Ed Tanousf23b7292020-10-15 09:41:17 -0700225misc-misplaced-const,
Ed Tanousb00dcc22021-02-23 12:52:50 -0800226#misc-no-recursion,
Ed Tanousf23b7292020-10-15 09:41:17 -0700227misc-redundant-expression,
228misc-static-assert,
229misc-throw-by-value-catch-by-reference,
230misc-unconventional-assign-operator,
231misc-uniqueptr-reset-release,
232misc-unused-using-decls,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700233modernize-avoid-bind,
234modernize-deprecated-headers,
235modernize-deprecated-ios-base-aliases,
236modernize-loop-convert,
237modernize-make-shared,
238modernize-make-unique,
239modernize-raw-string-literal,
240modernize-replace-auto-ptr,
241modernize-replace-random-shuffle,
242modernize-return-braced-init-list,
243modernize-shrink-to-fit,
244modernize-unary-static-assert,
245modernize-use-bool-literals,
246modernize-use-default-member-init,
247modernize-use-emplace,
248modernize-use-equals-default,
249modernize-use-equals-delete,
250modernize-use-noexcept,
251modernize-use-nullptr,
252modernize-use-override,
253modernize-use-transparent-functors,
254modernize-use-uncaught-exceptions,
255modernize-use-using,
Ed Tanousf23b7292020-10-15 09:41:17 -0700256performance-faster-string-find,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700257performance-for-range-copy,
258performance-implicit-conversion-in-loop,
259performance-inefficient-algorithm,
Ed Tanousf23b7292020-10-15 09:41:17 -0700260performance-inefficient-string-concatenation,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700261performance-inefficient-vector-operation,
Ed Tanousf23b7292020-10-15 09:41:17 -0700262performance-move-const-arg,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700263performance-move-constructor-init,
264performance-no-automatic-move,
Ed Tanous31873b32022-01-25 16:27:50 -0800265performance-no-int-to-ptr,
Ed Tanousf23b7292020-10-15 09:41:17 -0700266performance-noexcept-move-constructor,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700267performance-trivially-destructible,
268performance-type-promotion-in-math-fn,
269performance-unnecessary-copy-initialization,
Ed Tanousf23b7292020-10-15 09:41:17 -0700270performance-unnecessary-value-param,
Ed Tanous9eb808c2022-01-25 10:19:23 -0800271readability-avoid-const-params-in-decls,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700272readability-braces-around-statements,
273readability-const-return-type,
Ed Tanous26f69762022-01-25 09:49:11 -0800274readability-container-size-empty,
Ed Tanous56d23962022-02-14 20:42:02 -0800275readability-convert-member-functions-to-static,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700276readability-delete-null-pointer,
277readability-deleted-default,
Ed Tanousf23b7292020-10-15 09:41:17 -0700278readability-else-after-return,
Ed Tanous55f79e62022-01-25 11:26:16 -0800279readability-function-size,
280readability-identifier-naming,
Ed Tanouse662eae2022-01-25 10:39:19 -0800281readability-implicit-bool-conversion,
Ed Tanous55f79e62022-01-25 11:26:16 -0800282readability-inconsistent-declaration-parameter-name,
283readability-isolate-declaration,
Ed Tanous56d23962022-02-14 20:42:02 -0800284readability-make-member-function-const,
Ed Tanous55f79e62022-01-25 11:26:16 -0800285readability-misleading-indentation,
286readability-misplaced-array-index,
Ed Tanous104f09c2022-01-25 09:56:04 -0800287readability-named-parameter,
Ed Tanous56d23962022-02-14 20:42:02 -0800288readability-non-const-parameter,
Ed Tanous55f79e62022-01-25 11:26:16 -0800289readability-qualified-auto,
290readability-redundant-access-specifiers,
Ed Tanousdcf2ebc2022-01-25 10:07:45 -0800291readability-redundant-control-flow,
Ed Tanouse05aec52022-01-25 10:28:56 -0800292readability-redundant-declaration,
293readability-redundant-function-ptr-dereference,
294readability-redundant-member-init,
295readability-redundant-preprocessor,
296readability-redundant-smartptr-get,
297readability-redundant-string-cstr,
298readability-redundant-string-init,
Ed Tanous55f79e62022-01-25 11:26:16 -0800299readability-simplify-boolean-expr,
300readability-simplify-subscript-expr,
Ed Tanous71d5d8d2022-01-25 11:04:33 -0800301readability-static-accessed-through-instance,
Ed Tanous55f79e62022-01-25 11:26:16 -0800302readability-static-definition-in-anonymous-namespace,
303readability-string-compare,
304readability-suspicious-call-argument,
305readability-uniqueptr-delete-release,
Ed Tanousdbb59d42022-01-25 11:09:55 -0800306readability-uppercase-literal-suffix'
Ed Tanous3174e4d2020-10-07 11:41:22 -0700307
308WarningsAsErrors: '*'
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700309HeaderFilterRegex: '.*'
310CheckOptions:
311 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
312 - { key: readability-identifier-naming.VariableCase, value: camelBack }
313 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
Ed Tanous81ce6092020-12-17 16:54:55 +0000314 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700315 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
316 - { key: readability-identifier-naming.StructCase, value: CamelCase }