196 lines
6.7 KiB
Plaintext
196 lines
6.7 KiB
Plaintext
|
---
|
||
|
InheritParentConfig: true
|
||
|
Checks: '>
|
||
|
clang-diagnostic-*,
|
||
|
modernize-avoid-bind,
|
||
|
modernize-avoid-c-arrays,
|
||
|
modernize-concat-nested-namespaces,
|
||
|
modernize-deprecated-headers,
|
||
|
modernize-deprecated-ios-base-aliases,
|
||
|
modernize-loop-convert,
|
||
|
modernize-make-shared,
|
||
|
modernize-redundant-void-arg,
|
||
|
modernize-return-braced-init-list,
|
||
|
modernize-use-auto,
|
||
|
modernize-make-unique,
|
||
|
modernize-pass-by-value,
|
||
|
modernize-raw-string-literal,
|
||
|
modernize-replace-auto-ptr,
|
||
|
modernize-use-bool-literals,
|
||
|
modernize-replace-random-shuffle,
|
||
|
modernize-unary-static-assert,
|
||
|
modernize-use-emplace,
|
||
|
modernize-shrink-to-fit,
|
||
|
modernize-use-equals-default,
|
||
|
modernize-use-default-member-init,
|
||
|
modernize-use-nullptr,
|
||
|
modernize-use-noexcept,
|
||
|
modernize-use-equals-delete,
|
||
|
modernize-use-override,
|
||
|
modernize-use-using,
|
||
|
modernize-use-transparent-functors,
|
||
|
performance-faster-string-find,
|
||
|
performance-for-range-copy,
|
||
|
performance-implicit-conversion-in-loop,
|
||
|
performance-inefficient-algorithm,
|
||
|
performance-inefficient-string-concatenation,
|
||
|
performance-inefficient-vector-operation,
|
||
|
performance-move-const-arg,
|
||
|
performance-move-constructor-init,
|
||
|
performance-noexcept-move-constructor,
|
||
|
performance-type-promotion-in-math-fn,
|
||
|
performance-unnecessary-copy-initialization,
|
||
|
performance-unnecessary-value-param,
|
||
|
cppcoreguidelines-macro-usage,
|
||
|
cppcoreguidelines-narrowing-conversions,
|
||
|
cppcoreguidelines-no-malloc,
|
||
|
cppcoreguidelines-pro-bounds-pointer-arithmetic,
|
||
|
cppcoreguidelines-pro-type-const-cast,
|
||
|
cppcoreguidelines-pro-type-cstyle-cast,
|
||
|
cppcoreguidelines-pro-type-member-init,
|
||
|
cppcoreguidelines-pro-type-reinterpret-cast,
|
||
|
cppcoreguidelines-pro-type-union-access,
|
||
|
cppcoreguidelines-pro-type-vararg,
|
||
|
cppcoreguidelines-slicing,
|
||
|
cppcoreguidelines-special-member-functions,
|
||
|
readability-avoid-const-params-in-decls,
|
||
|
readability-braces-around-statements,
|
||
|
readability-const-return-type,
|
||
|
readability-container-size-empty,
|
||
|
readability-deleted-default,
|
||
|
readability-delete-null-pointer,
|
||
|
readability-implicit-bool-conversion,
|
||
|
readability-inconsistent-declaration-parameter-name,
|
||
|
readability-isolate-declaration,
|
||
|
readability-misplaced-array-index,
|
||
|
readability-named-parameter,
|
||
|
readability-non-const-parameter,
|
||
|
readability-redundant-control-flow,
|
||
|
readability-redundant-declaration,
|
||
|
readability-redundant-function-ptr-dereference,
|
||
|
readability-redundant-preprocessor,
|
||
|
readability-redundant-smartptr-get,
|
||
|
readability-redundant-string-cstr,
|
||
|
readability-redundant-string-init,
|
||
|
readability-simplify-boolean-expr,
|
||
|
readability-simplify-subscript-expr,
|
||
|
readability-static-accessed-through-instance,
|
||
|
readability-static-definition-in-anonymous-namespace,
|
||
|
readability-string-compare,
|
||
|
readability-uniqueptr-delete-release,
|
||
|
misc-definitions-in-headers,
|
||
|
misc-new-delete-overloads,
|
||
|
misc-non-copyable-objects,
|
||
|
misc-static-assert,
|
||
|
misc-throw-by-value-catch-by-reference,
|
||
|
misc-unconventional-assign-operator,
|
||
|
misc-uniqueptr-reset-release,
|
||
|
misc-unused-alias-decls,
|
||
|
misc-unused-parameters,
|
||
|
misc-unused-using-decls,
|
||
|
bugprone-argument-comment,
|
||
|
bugprone-assert-side-effect,
|
||
|
bugprone-bool-pointer-implicit-conversion,
|
||
|
bugprone-copy-constructor-init,
|
||
|
bugprone-dangling-handle,
|
||
|
bugprone-exception-escape,
|
||
|
bugprone-fold-init-type,
|
||
|
bugprone-forward-declaration-namespace,
|
||
|
bugprone-forwarding-reference-overload,
|
||
|
bugprone-inaccurate-erase,
|
||
|
bugprone-incorrect-roundings,
|
||
|
bugprone-integer-division,
|
||
|
bugprone-macro-parentheses,
|
||
|
bugprone-macro-repeated-side-effects,
|
||
|
bugprone-misplaced-operator-in-strlen-in-alloc,
|
||
|
bugprone-misplaced-widening-cast,
|
||
|
bugprone-move-forwarding-reference,
|
||
|
bugprone-multiple-statement-macro,
|
||
|
bugprone-parent-virtual-call,
|
||
|
bugprone-sizeof-container,
|
||
|
bugprone-sizeof-expression,
|
||
|
bugprone-string-constructor,
|
||
|
bugprone-string-integer-assignment,
|
||
|
bugprone-string-literal-with-embedded-nul,
|
||
|
bugprone-suspicious-enum-usage,
|
||
|
bugprone-suspicious-memset-usage,
|
||
|
bugprone-suspicious-missing-comma,
|
||
|
bugprone-suspicious-semicolon,
|
||
|
bugprone-suspicious-string-compare,
|
||
|
bugprone-swapped-arguments,
|
||
|
bugprone-terminating-continue,
|
||
|
bugprone-throw-keyword-missing,
|
||
|
bugprone-too-small-loop-variable,
|
||
|
bugprone-undefined-memory-manipulation,
|
||
|
bugprone-undelegated-constructor,
|
||
|
bugprone-unused-return-value,
|
||
|
bugprone-use-after-move,
|
||
|
bugprone-virtual-near-miss,
|
||
|
clang-analyzer-apiModeling.StdCLibraryFunctions,
|
||
|
clang-analyzer-apiModeling.TrustNonnull,
|
||
|
clang-analyzer-apiModeling.google.GTest,
|
||
|
clang-analyzer-core.CallAndMessage,
|
||
|
clang-analyzer-core.DivideZero,
|
||
|
clang-analyzer-core.DynamicTypePropagation,
|
||
|
clang-analyzer-core.NonNullParamChecker,
|
||
|
clang-analyzer-core.NonnilStringConstants,
|
||
|
clang-analyzer-core.NullDereference,
|
||
|
clang-analyzer-core.StackAddressEscape,
|
||
|
clang-analyzer-core.UndefinedBinaryOperatorResult,
|
||
|
clang-analyzer-core.VLASize,
|
||
|
clang-analyzer-core.builtin.BuiltinFunctions,
|
||
|
clang-analyzer-core.builtin.NoReturnFunctions,
|
||
|
clang-analyzer-core.uninitialized.ArraySubscript,
|
||
|
clang-analyzer-core.uninitialized.Assign,
|
||
|
clang-analyzer-core.uninitialized.Branch,
|
||
|
clang-analyzer-core.uninitialized.CapturedBlockVariable,
|
||
|
clang-analyzer-core.uninitialized.UndefReturn,
|
||
|
clang-analyzer-cplusplus.InnerPointer,
|
||
|
clang-analyzer-cplusplus.Move,
|
||
|
clang-analyzer-cplusplus.NewDelete,
|
||
|
clang-analyzer-cplusplus.NewDeleteLeaks,
|
||
|
clang-analyzer-cplusplus.SelfAssignment,
|
||
|
clang-analyzer-deadcode.DeadStores,
|
||
|
clang-analyzer-optin.cplusplus.VirtualCall,
|
||
|
clang-analyzer-optin.mpi.MPI-Checker,
|
||
|
clang-analyzer-optin.performance.GCDAntipattern,
|
||
|
clang-analyzer-optin.performance.Padding,
|
||
|
clang-analyzer-optin.portability.UnixAPI,
|
||
|
clang-analyzer-nullability.NullPassedToNonnull,
|
||
|
clang-analyzer-nullability.NullReturnedFromNonnull,
|
||
|
clang-analyzer-nullability.NullableDereferenced,
|
||
|
clang-analyzer-nullability.NullablePassedToNonnull,
|
||
|
clang-analyzer-nullability.NullableReturnedFromNonnull,
|
||
|
clang-analyzer-security.FloatLoopCounter,
|
||
|
clang-analyzer-security.insecureAPI.UncheckedReturn,
|
||
|
clang-analyzer-security.insecureAPI.bcmp,
|
||
|
clang-analyzer-security.insecureAPI.bcopy,
|
||
|
clang-analyzer-security.insecureAPI.bzero,
|
||
|
clang-analyzer-security.insecureAPI.getpw,
|
||
|
clang-analyzer-security.insecureAPI.gets,
|
||
|
clang-analyzer-security.insecureAPI.mkstemp,
|
||
|
clang-analyzer-security.insecureAPI.mktemp,
|
||
|
clang-analyzer-security.insecureAPI.rand,
|
||
|
clang-analyzer-security.insecureAPI.strcpy,
|
||
|
clang-analyzer-security.insecureAPI.vfork,
|
||
|
clang-analyzer-unix.API,
|
||
|
clang-analyzer-unix.Malloc,
|
||
|
clang-analyzer-unix.MallocSizeof,
|
||
|
clang-analyzer-unix.MismatchedDeallocator,
|
||
|
clang-analyzer-unix.Vfork,
|
||
|
clang-analyzer-unix.cstring.BadSizeArg,
|
||
|
clang-analyzer-unix.cstring.NullArg,
|
||
|
clang-analyzer-valist.CopyToSelf,
|
||
|
clang-analyzer-valist.Uninitialized,
|
||
|
clang-analyzer-valist.Unterminated,
|
||
|
google-build-using-namespace,
|
||
|
'
|
||
|
|
||
|
CheckOptions:
|
||
|
- key: performance-unnecessary-value-param.AllowedTypes
|
||
|
value: '[Pp]ointer$;[Pp]tr$;[Rr]ef(erence)?$;'
|
||
|
- key: performance-unnecessary-copy-initialization.AllowedTypes
|
||
|
value: '[Pp]ointer$;[Pp]tr$;[Rr]ef(erence)?$'
|
||
|
|
||
|
...
|