blob: 3e07c7134cbabeb4c739fb9a91b028b8ab1cd0af [file] [log] [blame]
George Liu8f538d92024-08-22 15:41:22 +08001Checks: ' -*,
2bugprone-argument-comment,
3bugprone-assert-side-effect,
4bugprone-bad-signal-to-kill-thread,
5bugprone-bool-pointer-implicit-conversion,
6bugprone-branch-clone,
7bugprone-copy-constructor-init,
8bugprone-dangling-handle,
9bugprone-dynamic-static-initializers,
10bugprone-fold-init-type,
11bugprone-forward-declaration-namespace,
12bugprone-forwarding-reference-overload,
13bugprone-implicit-widening-of-multiplication-result,
14bugprone-inaccurate-erase,
15bugprone-incorrect-roundings,
16bugprone-infinite-loop,
17bugprone-integer-division,
18bugprone-lambda-function-name,
19bugprone-macro-parentheses,
20bugprone-macro-repeated-side-effects,
21bugprone-misplaced-operator-in-strlen-in-alloc,
22bugprone-misplaced-pointer-arithmetic-in-alloc,
23bugprone-misplaced-widening-cast,
24bugprone-move-forwarding-reference,
25bugprone-multiple-statement-macro,
26bugprone-narrowing-conversions,
27bugprone-no-escape,
28bugprone-not-null-terminated-result,
29bugprone-parent-virtual-call,
30bugprone-posix-return,
31bugprone-redundant-branch-condition,
32bugprone-reserved-identifier,
33bugprone-signal-handler,
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,
42bugprone-suspicious-include,
43bugprone-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-exception-at-new,
54bugprone-unhandled-self-assignment,
55bugprone-unused-raii,
56bugprone-unused-return-value,
57bugprone-use-after-move,
George Liu173dc322024-08-22 15:47:58 +080058bugprone-virtual-near-miss,
59cert-con36-c,
60cert-con54-cpp,
61cert-dcl03-c,
62cert-dcl16-c,
63cert-dcl21-cpp,
64cert-dcl37-c,
65cert-dcl50-cpp,
66cert-dcl51-cpp,
67cert-dcl54-cpp,
68cert-dcl58-cpp,
69cert-dcl59-cpp,
70cert-env33-c,
71cert-err09-cpp,
72cert-err34-c,
73cert-err52-cpp,
74cert-err60-cpp,
75cert-err61-cpp,
76cert-fio38-c,
77cert-flp30-c,
78cert-mem57-cpp,
79cert-msc30-c,
80cert-msc32-c,
81cert-msc50-cpp,
82cert-msc51-cpp,
83cert-oop11-cpp,
84cert-oop54-cpp,
85cert-oop57-cpp,
86cert-oop58-cpp,
87cert-pos44-c,
88cert-pos47-c,
89cert-sig30-c,
George Liu9e3a9d52024-08-22 15:56:54 +080090cert-str34-c,
91clang-analyzer-apiModeling.StdCLibraryFunctions,
92clang-analyzer-apiModeling.TrustNonnull,
93clang-analyzer-apiModeling.google.GTest,
94clang-analyzer-apiModeling.llvm.CastValue,
95clang-analyzer-apiModeling.llvm.ReturnValue,
96clang-analyzer-core.CallAndMessage,
97clang-analyzer-core.CallAndMessageModeling,
98clang-analyzer-core.DivideZero,
99clang-analyzer-core.DynamicTypePropagation,
100clang-analyzer-core.NonNullParamChecker,
101clang-analyzer-core.NonnilStringConstants,
102clang-analyzer-core.NullDereference,
103clang-analyzer-core.StackAddrEscapeBase,
104clang-analyzer-core.StackAddressEscape,
105clang-analyzer-core.UndefinedBinaryOperatorResult,
106clang-analyzer-core.VLASize,
107clang-analyzer-core.builtin.BuiltinFunctions,
108clang-analyzer-core.builtin.NoReturnFunctions,
109clang-analyzer-core.uninitialized.ArraySubscript,
110clang-analyzer-core.uninitialized.Assign,
111clang-analyzer-core.uninitialized.Branch,
112clang-analyzer-core.uninitialized.CapturedBlockVariable,
113clang-analyzer-core.uninitialized.UndefReturn,
114clang-analyzer-cplusplus.InnerPointer,
115clang-analyzer-cplusplus.Move,
116clang-analyzer-cplusplus.NewDelete,
117clang-analyzer-cplusplus.NewDeleteLeaks,
118clang-analyzer-cplusplus.PlacementNew,
119clang-analyzer-cplusplus.PureVirtualCall,
120clang-analyzer-cplusplus.SelfAssignment,
121clang-analyzer-cplusplus.SmartPtrModeling,
122clang-analyzer-cplusplus.VirtualCallModeling,
123clang-analyzer-deadcode.DeadStores,
124clang-analyzer-fuchsia.HandleChecker,
125clang-analyzer-nullability.NullPassedToNonnull,
126clang-analyzer-nullability.NullReturnedFromNonnull,
127clang-analyzer-nullability.NullabilityBase,
128clang-analyzer-nullability.NullableDereferenced,
129clang-analyzer-nullability.NullablePassedToNonnull,
130clang-analyzer-nullability.NullableReturnedFromNonnull,
131clang-analyzer-optin.cplusplus.UninitializedObject,
132clang-analyzer-optin.mpi.MPI-Checker,
133clang-analyzer-optin.osx.OSObjectCStyleCast,
134clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
135clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
136clang-analyzer-optin.performance.GCDAntipattern,
137clang-analyzer-optin.performance.Padding,
138clang-analyzer-optin.portability.UnixAPI,
139clang-analyzer-osx.API,
140clang-analyzer-osx.MIG,
141clang-analyzer-osx.NSOrCFErrorDerefChecker,
142clang-analyzer-osx.NumberObjectConversion,
143clang-analyzer-osx.OSObjectRetainCount,
144clang-analyzer-osx.ObjCProperty,
145clang-analyzer-osx.SecKeychainAPI,
146clang-analyzer-osx.cocoa.AtSync,
147clang-analyzer-osx.cocoa.AutoreleaseWrite,
148clang-analyzer-osx.cocoa.ClassRelease,
149clang-analyzer-osx.cocoa.Dealloc,
150clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
151clang-analyzer-osx.cocoa.Loops,
152clang-analyzer-osx.cocoa.MissingSuperCall,
153clang-analyzer-osx.cocoa.NSAutoreleasePool,
154clang-analyzer-osx.cocoa.NSError,
155clang-analyzer-osx.cocoa.NilArg,
156clang-analyzer-osx.cocoa.NonNilReturnValue,
157clang-analyzer-osx.cocoa.ObjCGenerics,
158clang-analyzer-osx.cocoa.RetainCount,
159clang-analyzer-osx.cocoa.RetainCountBase,
160clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
161clang-analyzer-osx.cocoa.SelfInit,
162clang-analyzer-osx.cocoa.SuperDealloc,
163clang-analyzer-osx.cocoa.UnusedIvars,
164clang-analyzer-osx.cocoa.VariadicMethodTypes,
165clang-analyzer-osx.coreFoundation.CFError,
166clang-analyzer-osx.coreFoundation.CFNumber,
167clang-analyzer-osx.coreFoundation.CFRetainRelease,
168clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
169clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
170clang-analyzer-security.FloatLoopCounter,
171clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
172clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
173clang-analyzer-security.insecureAPI.UncheckedReturn,
174clang-analyzer-security.insecureAPI.bcmp,
175clang-analyzer-security.insecureAPI.bcopy,
176clang-analyzer-security.insecureAPI.bzero,
177clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
178clang-analyzer-security.insecureAPI.getpw,
179clang-analyzer-security.insecureAPI.gets,
180clang-analyzer-security.insecureAPI.mkstemp,
181clang-analyzer-security.insecureAPI.mktemp,
182clang-analyzer-security.insecureAPI.rand,
183clang-analyzer-security.insecureAPI.strcpy,
184clang-analyzer-security.insecureAPI.vfork,
185clang-analyzer-unix.API,
186clang-analyzer-unix.DynamicMemoryModeling,
187clang-analyzer-unix.Malloc,
188clang-analyzer-unix.MallocSizeof,
189clang-analyzer-unix.MismatchedDeallocator,
190clang-analyzer-unix.Vfork,
191clang-analyzer-unix.cstring.BadSizeArg,
192clang-analyzer-unix.cstring.CStringModeling,
193clang-analyzer-unix.cstring.NullArg,
194clang-analyzer-valist.CopyToSelf,
195clang-analyzer-valist.Uninitialized,
196clang-analyzer-valist.Unterminated,
197clang-analyzer-valist.ValistBase,
198clang-analyzer-webkit.NoUncountedMemberChecker,
George Liu7c737c02024-08-22 16:39:11 +0800199clang-analyzer-webkit.RefCntblBaseVirtualDtor,
George Liub1331182024-08-22 19:20:42 +0800200cppcoreguidelines-c-copy-assignment-signature,
201cppcoreguidelines-macro-usage,
202cppcoreguidelines-narrowing-conversions,
203cppcoreguidelines-no-malloc,
204cppcoreguidelines-prefer-member-initializer,
205cppcoreguidelines-pro-type-const-cast,
206cppcoreguidelines-pro-type-cstyle-cast,
207cppcoreguidelines-pro-type-reinterpret-cast,
208cppcoreguidelines-pro-type-static-cast-downcast,
209cppcoreguidelines-pro-type-union-access,
210cppcoreguidelines-pro-type-vararg,
211cppcoreguidelines-slicing,
George Liu7c737c02024-08-22 16:39:11 +0800212misc-misplaced-const,
213misc-redundant-expression,
214misc-static-assert,
215misc-throw-by-value-catch-by-reference,
216misc-unconventional-assign-operator,
217misc-uniqueptr-reset-release,
218misc-unused-using-decls,
George Liu226059b2024-08-22 16:01:44 +0800219modernize-avoid-bind,
George Liu7c737c02024-08-22 16:39:11 +0800220modernize-deprecated-headers,
221modernize-deprecated-ios-base-aliases,
222modernize-loop-convert,
223modernize-make-shared,
224modernize-make-unique,
225modernize-raw-string-literal,
226modernize-replace-auto-ptr,
227modernize-replace-random-shuffle,
228modernize-return-braced-init-list,
229modernize-shrink-to-fit,
230modernize-unary-static-assert,
231modernize-use-bool-literals,
232modernize-use-default-member-init,
George Liufcf08102024-08-22 17:00:05 +0800233modernize-use-emplace,
George Liucc1de722024-08-22 16:47:14 +0800234modernize-use-equals-default,
George Liu7c737c02024-08-22 16:39:11 +0800235modernize-use-equals-delete,
236modernize-use-noexcept,
George Liuaaa667f2024-08-22 17:37:51 +0800237modernize-use-nullptr,
George Liuc8ddde62024-08-22 17:29:16 +0800238modernize-use-override,
George Liu7c737c02024-08-22 16:39:11 +0800239modernize-use-transparent-functors,
240modernize-use-uncaught-exceptions,
George Liu59ab7272024-08-22 17:47:43 +0800241modernize-use-using,
George Liu4bb15d82024-08-22 19:10:44 +0800242performance-faster-string-find,
George Liu112821c2024-08-22 19:00:24 +0800243performance-for-range-copy,
George Liu59ab7272024-08-22 17:47:43 +0800244performance-implicit-conversion-in-loop,
245performance-inefficient-algorithm,
246performance-inefficient-string-concatenation,
247performance-inefficient-vector-operation,
George Liudf3ab7c2024-08-22 19:05:27 +0800248performance-move-const-arg,
George Liu59ab7272024-08-22 17:47:43 +0800249performance-move-constructor-init,
250performance-no-automatic-move,
251performance-no-int-to-ptr,
252performance-noexcept-move-constructor,
253performance-trivially-destructible,
254performance-type-promotion-in-math-fn,
George Liueffb3432024-08-22 19:25:21 +0800255performance-unnecessary-copy-initialization,
256readability-delete-null-pointer,
257readability-deleted-default,
258readability-function-size,
259readability-identifier-naming,
260readability-isolate-declaration,
261readability-make-member-function-const,
262readability-misleading-indentation,
263readability-misplaced-array-index,
264readability-named-parameter,
265readability-non-const-parameter,
266readability-redundant-function-ptr-dereference,
267readability-redundant-preprocessor,
268readability-redundant-smartptr-get,
269readability-redundant-string-init,
270readability-simplify-subscript-expr,
271readability-static-definition-in-anonymous-namespace,
272readability-suspicious-call-argument,
273readability-uniqueptr-delete-release,
274readability-uppercase-literal-suffix'
George Liu8f538d92024-08-22 15:41:22 +0800275
276WarningsAsErrors: '*'
277HeaderFilterRegex: '.*.hpp'