blob: e6cb2b458daffb9771938e934953cd67be648e90 [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,
200misc-misplaced-const,
201misc-redundant-expression,
202misc-static-assert,
203misc-throw-by-value-catch-by-reference,
204misc-unconventional-assign-operator,
205misc-uniqueptr-reset-release,
206misc-unused-using-decls,
207modernize-deprecated-headers,
208modernize-deprecated-ios-base-aliases,
209modernize-loop-convert,
210modernize-make-shared,
211modernize-make-unique,
212modernize-raw-string-literal,
213modernize-replace-auto-ptr,
214modernize-replace-random-shuffle,
215modernize-return-braced-init-list,
216modernize-shrink-to-fit,
217modernize-unary-static-assert,
218modernize-use-bool-literals,
219modernize-use-default-member-init,
220modernize-use-equals-delete,
221modernize-use-noexcept,
222modernize-use-transparent-functors,
223modernize-use-uncaught-exceptions,
224modernize-use-using'
George Liu8f538d92024-08-22 15:41:22 +0800225
226WarningsAsErrors: '*'
227HeaderFilterRegex: '.*.hpp'