2021-07-28 16:16:05 +00:00
|
|
|
---
|
|
|
|
Checks: >
|
2021-10-25 22:44:37 +00:00
|
|
|
bugprone-argument-comment,
|
2021-10-25 20:43:54 +00:00
|
|
|
bugprone-assert-side-effect,
|
|
|
|
bugprone-bool-pointer-implicit-conversion,
|
|
|
|
bugprone-dangling-handle,
|
2021-10-25 22:44:37 +00:00
|
|
|
bugprone-fold-init-type,
|
2021-10-25 20:43:54 +00:00
|
|
|
bugprone-forward-declaration-namespace,
|
|
|
|
bugprone-inaccurate-erase,
|
|
|
|
bugprone-macro-repeated-side-effects,
|
2021-10-25 22:44:37 +00:00
|
|
|
bugprone-move-forwarding-reference,
|
2021-10-25 20:43:54 +00:00
|
|
|
bugprone-multiple-statement-macro,
|
2021-10-25 22:44:37 +00:00
|
|
|
bugprone-string-constructor,
|
2021-10-25 20:43:54 +00:00
|
|
|
bugprone-suspicious-memset-usage,
|
|
|
|
bugprone-swapped-arguments,
|
|
|
|
bugprone-undefined-memory-manipulation,
|
|
|
|
bugprone-undelegated-constructor,
|
|
|
|
bugprone-unused-raii,
|
2021-10-25 22:44:37 +00:00
|
|
|
bugprone-use-after-move,
|
2021-07-28 16:16:05 +00:00
|
|
|
clang-diagnostic-*,
|
|
|
|
-clang-analyzer-*,
|
2021-10-25 20:43:54 +00:00
|
|
|
darwin-avoid-spinlock,
|
|
|
|
google-build-explicit-make-pair,
|
|
|
|
google-build-namespaces,
|
|
|
|
google-default-arguments,
|
2021-11-09 22:14:10 +00:00
|
|
|
google-global-names-in-headers,
|
2021-10-25 20:43:54 +00:00
|
|
|
google-readability-function-size,
|
|
|
|
google-readability-namespace-comments,
|
|
|
|
google-runtime-operator,
|
|
|
|
misc-static-assert,
|
|
|
|
misc-unconventional-assign-operator,
|
2021-10-27 21:06:11 +00:00
|
|
|
misc-unused-using-decls,
|
2021-10-29 23:50:47 +00:00
|
|
|
modernize-avoid-bind
|
|
|
|
modernize-deprecated-ios-base-aliases
|
|
|
|
modernize-make-shared
|
|
|
|
modernize-make-unique
|
|
|
|
modernize-replace-auto-ptr
|
|
|
|
modernize-replace-disallow-copy-and-assign-macro
|
|
|
|
modernize-replace-random-shuffle
|
|
|
|
modernize-shrink-to-fit
|
|
|
|
modernize-use-bool-literals
|
|
|
|
modernize-use-equals-delete
|
|
|
|
modernize-use-noexcept
|
|
|
|
modernize-use-nullptr
|
|
|
|
modernize-use-transparent-functors
|
|
|
|
modernize-use-uncaught-exceptions
|
2021-10-25 20:43:54 +00:00
|
|
|
performance-faster-string-find,
|
|
|
|
performance-for-range-copy,
|
|
|
|
performance-implicit-conversion-in-loop,
|
|
|
|
performance-inefficient-algorithm,
|
|
|
|
performance-inefficient-vector-operation,
|
|
|
|
performance-move-constructor-init,
|
2021-10-27 21:17:09 +00:00
|
|
|
readability-container-size-empty,
|
2021-10-28 00:07:29 +00:00
|
|
|
readability-inconsistent-declaration-parameter-name,
|
2021-10-25 20:43:54 +00:00
|
|
|
readability-misleading-indentation,
|
|
|
|
readability-redundant-control-flow,
|
|
|
|
readability-redundant-smartptr-get,
|
|
|
|
readability-string-compare,
|
2021-07-28 16:16:05 +00:00
|
|
|
WarningsAsErrors: >
|
|
|
|
*,
|
|
|
|
-clang-diagnostic-unused-command-line-argument
|
|
|
|
HeaderFilterRegex: '.*'
|
|
|
|
...
|
|
|
|
|
2021-10-20 23:45:14 +00:00
|
|
|
# Disabled checks:
|
2021-07-28 16:16:05 +00:00
|
|
|
#
|
|
|
|
# clang-analyzer-*:
|
|
|
|
#
|
|
|
|
# performance-*
|
|
|
|
# bugprone-*
|
|
|
|
# cert-*
|
|
|
|
# misc-*
|
|
|
|
# readability-*
|
|
|
|
#
|
|
|
|
# Checks marked with @ should be reenabled first
|
|
|
|
# (the effort is minimal).
|
|
|
|
#
|
|
|
|
# modernize-avoid-c-arrays:
|
|
|
|
# @ modernize-concat-nested-namespaces:
|
|
|
|
# Note: added in c++17
|
|
|
|
# modernize-deprecated-headers:
|
|
|
|
# Advises to use <cheader> instead of <header.h> for
|
|
|
|
# legacy headers
|
|
|
|
# modernize-loop-convert:
|
|
|
|
# @ modernize-pass-by-value:
|
|
|
|
# @ modernize-raw-string-literal:
|
|
|
|
# Note: added in c++11
|
|
|
|
# @ modernize-redundant-void-arg:
|
|
|
|
# modernize-return-braced-init-list:
|
|
|
|
# @ modernize-unary-static-assert:
|
|
|
|
# Note: added in c++17
|
|
|
|
# The message argument can be omitted when it is empty
|
|
|
|
# @ modernize-use-auto:
|
|
|
|
# Advises to use auto when initializing with a cast to
|
|
|
|
# avoid duplicating the type name
|
|
|
|
# modernize-use-default-member-init:
|
|
|
|
# Note: added in c++11
|
|
|
|
# Advises to use a default initializer in
|
|
|
|
# member declarations
|
|
|
|
# @ modernize-use-emplace:
|
|
|
|
# @ modernize-use-equals-default:
|
|
|
|
# Note: added in c++11
|
|
|
|
# Advises to use '= default' for empty constructors or
|
|
|
|
# destructors '{}'
|
|
|
|
# modernize-use-nodiscard:
|
|
|
|
# Note: added in c++17
|
|
|
|
# @ modernize-use-override:
|
|
|
|
# modernize-use-trailing-return-type:
|
|
|
|
# Note: added in c++11
|
|
|
|
# Used to delay the writing of the return type
|
|
|
|
# to after the function parameters; does not make
|
|
|
|
# sense to generalise its use.
|
|
|
|
# modernize-use-using:
|
|
|
|
# Note: added in c++11
|
|
|
|
# Advises to use 'using' instead of 'typedef'
|