George Liu | 8f538d9 | 2024-08-22 15:41:22 +0800 | [diff] [blame] | 1 | Checks: ' -*, |
| 2 | bugprone-argument-comment, |
| 3 | bugprone-assert-side-effect, |
| 4 | bugprone-bad-signal-to-kill-thread, |
| 5 | bugprone-bool-pointer-implicit-conversion, |
| 6 | bugprone-branch-clone, |
| 7 | bugprone-copy-constructor-init, |
| 8 | bugprone-dangling-handle, |
| 9 | bugprone-dynamic-static-initializers, |
| 10 | bugprone-fold-init-type, |
| 11 | bugprone-forward-declaration-namespace, |
| 12 | bugprone-forwarding-reference-overload, |
| 13 | bugprone-implicit-widening-of-multiplication-result, |
| 14 | bugprone-inaccurate-erase, |
| 15 | bugprone-incorrect-roundings, |
| 16 | bugprone-infinite-loop, |
| 17 | bugprone-integer-division, |
| 18 | bugprone-lambda-function-name, |
| 19 | bugprone-macro-parentheses, |
| 20 | bugprone-macro-repeated-side-effects, |
| 21 | bugprone-misplaced-operator-in-strlen-in-alloc, |
| 22 | bugprone-misplaced-pointer-arithmetic-in-alloc, |
| 23 | bugprone-misplaced-widening-cast, |
| 24 | bugprone-move-forwarding-reference, |
| 25 | bugprone-multiple-statement-macro, |
| 26 | bugprone-narrowing-conversions, |
| 27 | bugprone-no-escape, |
| 28 | bugprone-not-null-terminated-result, |
| 29 | bugprone-parent-virtual-call, |
| 30 | bugprone-posix-return, |
| 31 | bugprone-redundant-branch-condition, |
| 32 | bugprone-reserved-identifier, |
| 33 | bugprone-signal-handler, |
| 34 | bugprone-signed-char-misuse, |
| 35 | bugprone-sizeof-container, |
| 36 | bugprone-sizeof-expression, |
| 37 | bugprone-spuriously-wake-up-functions, |
| 38 | bugprone-string-constructor, |
| 39 | bugprone-string-integer-assignment, |
| 40 | bugprone-string-literal-with-embedded-nul, |
| 41 | bugprone-suspicious-enum-usage, |
| 42 | bugprone-suspicious-include, |
| 43 | bugprone-suspicious-memset-usage, |
| 44 | bugprone-suspicious-missing-comma, |
| 45 | bugprone-suspicious-semicolon, |
| 46 | bugprone-suspicious-string-compare, |
| 47 | bugprone-swapped-arguments, |
| 48 | bugprone-terminating-continue, |
| 49 | bugprone-throw-keyword-missing, |
| 50 | bugprone-too-small-loop-variable, |
| 51 | bugprone-undefined-memory-manipulation, |
| 52 | bugprone-undelegated-constructor, |
| 53 | bugprone-unhandled-exception-at-new, |
| 54 | bugprone-unhandled-self-assignment, |
| 55 | bugprone-unused-raii, |
| 56 | bugprone-unused-return-value, |
| 57 | bugprone-use-after-move, |
George Liu | 173dc32 | 2024-08-22 15:47:58 +0800 | [diff] [blame] | 58 | bugprone-virtual-near-miss, |
| 59 | cert-con36-c, |
| 60 | cert-con54-cpp, |
| 61 | cert-dcl03-c, |
| 62 | cert-dcl16-c, |
| 63 | cert-dcl21-cpp, |
| 64 | cert-dcl37-c, |
| 65 | cert-dcl50-cpp, |
| 66 | cert-dcl51-cpp, |
| 67 | cert-dcl54-cpp, |
| 68 | cert-dcl58-cpp, |
| 69 | cert-dcl59-cpp, |
| 70 | cert-env33-c, |
| 71 | cert-err09-cpp, |
| 72 | cert-err34-c, |
| 73 | cert-err52-cpp, |
| 74 | cert-err60-cpp, |
| 75 | cert-err61-cpp, |
| 76 | cert-fio38-c, |
| 77 | cert-flp30-c, |
| 78 | cert-mem57-cpp, |
| 79 | cert-msc30-c, |
| 80 | cert-msc32-c, |
| 81 | cert-msc50-cpp, |
| 82 | cert-msc51-cpp, |
| 83 | cert-oop11-cpp, |
| 84 | cert-oop54-cpp, |
| 85 | cert-oop57-cpp, |
| 86 | cert-oop58-cpp, |
| 87 | cert-pos44-c, |
| 88 | cert-pos47-c, |
| 89 | cert-sig30-c, |
George Liu | 9e3a9d5 | 2024-08-22 15:56:54 +0800 | [diff] [blame] | 90 | cert-str34-c, |
| 91 | clang-analyzer-apiModeling.StdCLibraryFunctions, |
| 92 | clang-analyzer-apiModeling.TrustNonnull, |
| 93 | clang-analyzer-apiModeling.google.GTest, |
| 94 | clang-analyzer-apiModeling.llvm.CastValue, |
| 95 | clang-analyzer-apiModeling.llvm.ReturnValue, |
| 96 | clang-analyzer-core.CallAndMessage, |
| 97 | clang-analyzer-core.CallAndMessageModeling, |
| 98 | clang-analyzer-core.DivideZero, |
| 99 | clang-analyzer-core.DynamicTypePropagation, |
| 100 | clang-analyzer-core.NonNullParamChecker, |
| 101 | clang-analyzer-core.NonnilStringConstants, |
| 102 | clang-analyzer-core.NullDereference, |
| 103 | clang-analyzer-core.StackAddrEscapeBase, |
| 104 | clang-analyzer-core.StackAddressEscape, |
| 105 | clang-analyzer-core.UndefinedBinaryOperatorResult, |
| 106 | clang-analyzer-core.VLASize, |
| 107 | clang-analyzer-core.builtin.BuiltinFunctions, |
| 108 | clang-analyzer-core.builtin.NoReturnFunctions, |
| 109 | clang-analyzer-core.uninitialized.ArraySubscript, |
| 110 | clang-analyzer-core.uninitialized.Assign, |
| 111 | clang-analyzer-core.uninitialized.Branch, |
| 112 | clang-analyzer-core.uninitialized.CapturedBlockVariable, |
| 113 | clang-analyzer-core.uninitialized.UndefReturn, |
| 114 | clang-analyzer-cplusplus.InnerPointer, |
| 115 | clang-analyzer-cplusplus.Move, |
| 116 | clang-analyzer-cplusplus.NewDelete, |
| 117 | clang-analyzer-cplusplus.NewDeleteLeaks, |
| 118 | clang-analyzer-cplusplus.PlacementNew, |
| 119 | clang-analyzer-cplusplus.PureVirtualCall, |
| 120 | clang-analyzer-cplusplus.SelfAssignment, |
| 121 | clang-analyzer-cplusplus.SmartPtrModeling, |
| 122 | clang-analyzer-cplusplus.VirtualCallModeling, |
| 123 | clang-analyzer-deadcode.DeadStores, |
| 124 | clang-analyzer-fuchsia.HandleChecker, |
| 125 | clang-analyzer-nullability.NullPassedToNonnull, |
| 126 | clang-analyzer-nullability.NullReturnedFromNonnull, |
| 127 | clang-analyzer-nullability.NullabilityBase, |
| 128 | clang-analyzer-nullability.NullableDereferenced, |
| 129 | clang-analyzer-nullability.NullablePassedToNonnull, |
| 130 | clang-analyzer-nullability.NullableReturnedFromNonnull, |
| 131 | clang-analyzer-optin.cplusplus.UninitializedObject, |
| 132 | clang-analyzer-optin.mpi.MPI-Checker, |
| 133 | clang-analyzer-optin.osx.OSObjectCStyleCast, |
| 134 | clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker, |
| 135 | clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker, |
| 136 | clang-analyzer-optin.performance.GCDAntipattern, |
| 137 | clang-analyzer-optin.performance.Padding, |
| 138 | clang-analyzer-optin.portability.UnixAPI, |
| 139 | clang-analyzer-osx.API, |
| 140 | clang-analyzer-osx.MIG, |
| 141 | clang-analyzer-osx.NSOrCFErrorDerefChecker, |
| 142 | clang-analyzer-osx.NumberObjectConversion, |
| 143 | clang-analyzer-osx.OSObjectRetainCount, |
| 144 | clang-analyzer-osx.ObjCProperty, |
| 145 | clang-analyzer-osx.SecKeychainAPI, |
| 146 | clang-analyzer-osx.cocoa.AtSync, |
| 147 | clang-analyzer-osx.cocoa.AutoreleaseWrite, |
| 148 | clang-analyzer-osx.cocoa.ClassRelease, |
| 149 | clang-analyzer-osx.cocoa.Dealloc, |
| 150 | clang-analyzer-osx.cocoa.IncompatibleMethodTypes, |
| 151 | clang-analyzer-osx.cocoa.Loops, |
| 152 | clang-analyzer-osx.cocoa.MissingSuperCall, |
| 153 | clang-analyzer-osx.cocoa.NSAutoreleasePool, |
| 154 | clang-analyzer-osx.cocoa.NSError, |
| 155 | clang-analyzer-osx.cocoa.NilArg, |
| 156 | clang-analyzer-osx.cocoa.NonNilReturnValue, |
| 157 | clang-analyzer-osx.cocoa.ObjCGenerics, |
| 158 | clang-analyzer-osx.cocoa.RetainCount, |
| 159 | clang-analyzer-osx.cocoa.RetainCountBase, |
| 160 | clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak, |
| 161 | clang-analyzer-osx.cocoa.SelfInit, |
| 162 | clang-analyzer-osx.cocoa.SuperDealloc, |
| 163 | clang-analyzer-osx.cocoa.UnusedIvars, |
| 164 | clang-analyzer-osx.cocoa.VariadicMethodTypes, |
| 165 | clang-analyzer-osx.coreFoundation.CFError, |
| 166 | clang-analyzer-osx.coreFoundation.CFNumber, |
| 167 | clang-analyzer-osx.coreFoundation.CFRetainRelease, |
| 168 | clang-analyzer-osx.coreFoundation.containers.OutOfBounds, |
| 169 | clang-analyzer-osx.coreFoundation.containers.PointerSizedValues, |
| 170 | clang-analyzer-security.FloatLoopCounter, |
| 171 | clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, |
| 172 | clang-analyzer-security.insecureAPI.SecuritySyntaxChecker, |
| 173 | clang-analyzer-security.insecureAPI.UncheckedReturn, |
| 174 | clang-analyzer-security.insecureAPI.bcmp, |
| 175 | clang-analyzer-security.insecureAPI.bcopy, |
| 176 | clang-analyzer-security.insecureAPI.bzero, |
| 177 | clang-analyzer-security.insecureAPI.decodeValueOfObjCType, |
| 178 | clang-analyzer-security.insecureAPI.getpw, |
| 179 | clang-analyzer-security.insecureAPI.gets, |
| 180 | clang-analyzer-security.insecureAPI.mkstemp, |
| 181 | clang-analyzer-security.insecureAPI.mktemp, |
| 182 | clang-analyzer-security.insecureAPI.rand, |
| 183 | clang-analyzer-security.insecureAPI.strcpy, |
| 184 | clang-analyzer-security.insecureAPI.vfork, |
| 185 | clang-analyzer-unix.API, |
| 186 | clang-analyzer-unix.DynamicMemoryModeling, |
| 187 | clang-analyzer-unix.Malloc, |
| 188 | clang-analyzer-unix.MallocSizeof, |
| 189 | clang-analyzer-unix.MismatchedDeallocator, |
| 190 | clang-analyzer-unix.Vfork, |
| 191 | clang-analyzer-unix.cstring.BadSizeArg, |
| 192 | clang-analyzer-unix.cstring.CStringModeling, |
| 193 | clang-analyzer-unix.cstring.NullArg, |
| 194 | clang-analyzer-valist.CopyToSelf, |
| 195 | clang-analyzer-valist.Uninitialized, |
| 196 | clang-analyzer-valist.Unterminated, |
| 197 | clang-analyzer-valist.ValistBase, |
| 198 | clang-analyzer-webkit.NoUncountedMemberChecker, |
George Liu | 7c737c0 | 2024-08-22 16:39:11 +0800 | [diff] [blame] | 199 | clang-analyzer-webkit.RefCntblBaseVirtualDtor, |
George Liu | b133118 | 2024-08-22 19:20:42 +0800 | [diff] [blame] | 200 | cppcoreguidelines-c-copy-assignment-signature, |
| 201 | cppcoreguidelines-macro-usage, |
| 202 | cppcoreguidelines-narrowing-conversions, |
| 203 | cppcoreguidelines-no-malloc, |
| 204 | cppcoreguidelines-prefer-member-initializer, |
| 205 | cppcoreguidelines-pro-type-const-cast, |
| 206 | cppcoreguidelines-pro-type-cstyle-cast, |
| 207 | cppcoreguidelines-pro-type-reinterpret-cast, |
| 208 | cppcoreguidelines-pro-type-static-cast-downcast, |
| 209 | cppcoreguidelines-pro-type-union-access, |
| 210 | cppcoreguidelines-pro-type-vararg, |
| 211 | cppcoreguidelines-slicing, |
George Liu | 7c737c0 | 2024-08-22 16:39:11 +0800 | [diff] [blame] | 212 | misc-misplaced-const, |
| 213 | misc-redundant-expression, |
| 214 | misc-static-assert, |
| 215 | misc-throw-by-value-catch-by-reference, |
| 216 | misc-unconventional-assign-operator, |
| 217 | misc-uniqueptr-reset-release, |
| 218 | misc-unused-using-decls, |
George Liu | 226059b | 2024-08-22 16:01:44 +0800 | [diff] [blame] | 219 | modernize-avoid-bind, |
George Liu | 7c737c0 | 2024-08-22 16:39:11 +0800 | [diff] [blame] | 220 | modernize-deprecated-headers, |
| 221 | modernize-deprecated-ios-base-aliases, |
| 222 | modernize-loop-convert, |
| 223 | modernize-make-shared, |
| 224 | modernize-make-unique, |
| 225 | modernize-raw-string-literal, |
| 226 | modernize-replace-auto-ptr, |
| 227 | modernize-replace-random-shuffle, |
| 228 | modernize-return-braced-init-list, |
| 229 | modernize-shrink-to-fit, |
| 230 | modernize-unary-static-assert, |
| 231 | modernize-use-bool-literals, |
| 232 | modernize-use-default-member-init, |
George Liu | fcf0810 | 2024-08-22 17:00:05 +0800 | [diff] [blame] | 233 | modernize-use-emplace, |
George Liu | cc1de72 | 2024-08-22 16:47:14 +0800 | [diff] [blame] | 234 | modernize-use-equals-default, |
George Liu | 7c737c0 | 2024-08-22 16:39:11 +0800 | [diff] [blame] | 235 | modernize-use-equals-delete, |
| 236 | modernize-use-noexcept, |
George Liu | aaa667f | 2024-08-22 17:37:51 +0800 | [diff] [blame] | 237 | modernize-use-nullptr, |
George Liu | c8ddde6 | 2024-08-22 17:29:16 +0800 | [diff] [blame] | 238 | modernize-use-override, |
George Liu | 7c737c0 | 2024-08-22 16:39:11 +0800 | [diff] [blame] | 239 | modernize-use-transparent-functors, |
| 240 | modernize-use-uncaught-exceptions, |
George Liu | 59ab727 | 2024-08-22 17:47:43 +0800 | [diff] [blame] | 241 | modernize-use-using, |
George Liu | 4bb15d8 | 2024-08-22 19:10:44 +0800 | [diff] [blame] | 242 | performance-faster-string-find, |
George Liu | 112821c | 2024-08-22 19:00:24 +0800 | [diff] [blame] | 243 | performance-for-range-copy, |
George Liu | 59ab727 | 2024-08-22 17:47:43 +0800 | [diff] [blame] | 244 | performance-implicit-conversion-in-loop, |
| 245 | performance-inefficient-algorithm, |
| 246 | performance-inefficient-string-concatenation, |
| 247 | performance-inefficient-vector-operation, |
George Liu | df3ab7c | 2024-08-22 19:05:27 +0800 | [diff] [blame] | 248 | performance-move-const-arg, |
George Liu | 59ab727 | 2024-08-22 17:47:43 +0800 | [diff] [blame] | 249 | performance-move-constructor-init, |
| 250 | performance-no-automatic-move, |
| 251 | performance-no-int-to-ptr, |
| 252 | performance-noexcept-move-constructor, |
| 253 | performance-trivially-destructible, |
| 254 | performance-type-promotion-in-math-fn, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 255 | performance-unnecessary-copy-initialization, |
George Liu | 80f51bb | 2024-08-22 20:17:36 +0800 | [diff] [blame] | 256 | readability-avoid-const-params-in-decls, |
George Liu | 9e10415 | 2024-08-23 09:38:20 +0800 | [diff] [blame^] | 257 | readability-braces-around-statements, |
George Liu | 405ea28 | 2024-08-22 19:36:41 +0800 | [diff] [blame] | 258 | readability-const-return-type, |
George Liu | f059255 | 2024-08-23 09:46:17 +0800 | [diff] [blame] | 259 | readability-convert-member-functions-to-static, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 260 | readability-delete-null-pointer, |
| 261 | readability-deleted-default, |
| 262 | readability-function-size, |
| 263 | readability-identifier-naming, |
George Liu | 49875a2 | 2024-08-23 08:58:59 +0800 | [diff] [blame] | 264 | readability-implicit-bool-conversion, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 265 | readability-isolate-declaration, |
| 266 | readability-make-member-function-const, |
| 267 | readability-misleading-indentation, |
| 268 | readability-misplaced-array-index, |
| 269 | readability-named-parameter, |
| 270 | readability-non-const-parameter, |
George Liu | 3d48751 | 2024-08-23 09:19:57 +0800 | [diff] [blame] | 271 | readability-qualified-auto, |
George Liu | 15c6ec2 | 2024-08-22 19:47:32 +0800 | [diff] [blame] | 272 | readability-redundant-access-specifiers, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 273 | readability-redundant-function-ptr-dereference, |
George Liu | 391bec5 | 2024-08-22 20:10:55 +0800 | [diff] [blame] | 274 | readability-redundant-member-init, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 275 | readability-redundant-preprocessor, |
| 276 | readability-redundant-smartptr-get, |
George Liu | 3d68ed5 | 2024-08-23 09:33:10 +0800 | [diff] [blame] | 277 | readability-redundant-string-cstr, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 278 | readability-redundant-string-init, |
George Liu | 349d22e | 2024-08-23 09:09:56 +0800 | [diff] [blame] | 279 | readability-simplify-boolean-expr, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 280 | readability-simplify-subscript-expr, |
George Liu | 16181d1 | 2024-08-22 20:05:20 +0800 | [diff] [blame] | 281 | readability-static-accessed-through-instance, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 282 | readability-static-definition-in-anonymous-namespace, |
George Liu | b6da788 | 2024-08-22 19:59:23 +0800 | [diff] [blame] | 283 | readability-string-compare, |
George Liu | effb343 | 2024-08-22 19:25:21 +0800 | [diff] [blame] | 284 | readability-suspicious-call-argument, |
| 285 | readability-uniqueptr-delete-release, |
| 286 | readability-uppercase-literal-suffix' |
George Liu | 8f538d9 | 2024-08-22 15:41:22 +0800 | [diff] [blame] | 287 | |
| 288 | WarningsAsErrors: '*' |
| 289 | HeaderFilterRegex: '.*.hpp' |