-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-tidy
27 lines (27 loc) · 2.98 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# The following are disabled because:
# - clang-analyzer-core.CallAndMessage, clang-analyzer-core.NonNullParamChecker,
# clang-analyzer-unix.Malloc:
# clang static analysis is run separately from clang-tidy, and this one gives
# false positives under clang-tidy.
# - boost-use-ranges: will switch to C++ standard ranges instead, no need to
# deepen the Boost dependency meanwhile.
# - bugprone-easily-swappable-parameters: too many suppressions for otherwise
# unfixable signatures
# - cppcoreguidelines-avoid-c-arrays: duplicated by modernize-avoid-c-arrays
# - cppcoreguidelines-macro-usage: does not respect __LINE__ in macro definition
# - cppcoreguidelines-pro-bounds-pointer-arithmetic: because leaf nodes are
# std::byte arrays
# - cppcoreguidelines-pro-type-const-cast: because VALGRIND_MALLOCLIKE_BLOCK
# expands a to C-style cast, and we have -Wold-style-cast anyway
# - hicpp-avoid-c-arrays: duplicated by modernize-avoid-c-arrays
# - hicpp-explicit-conversions: duplicated by google-explicit-constructor
# - hicpp-no-assembler: Valgrind client requests
# - modernize-use-equals-default: until foo() noexcept = default is accepted by
# clang
Checks: '*,-altera-id-dependent-backward-branch,-altera-struct-pack-align,-altera-unroll-loops,-boost-use-ranges,-bugprone-easily-swappable-parameters,-bugprone-use-after-move,-clang-diagnostic-error,-clang-analyzer-core.CallAndMessage,-clang-analyzer-core.NonNullParamChecker,-clang-analyzer-cplusplus.Move,-clang-analyzer-unix.Malloc,-cppcoreguidelines-avoid-c-arrays,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-init-variables,-cppcoreguidelines-macro-usage,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-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-static-cast-downcast,-cppcoreguidelines-pro-type-union-access,-fuchsia-default-arguments-calls,-fuchsia-default-arguments-declarations,-fuchsia-overloaded-operator,-google-readability-braces-around-statements,-google-runtime-references,-hicpp-avoid-c-arrays,-hicpp-braces-around-statements,-hicpp-explicit-conversions,-hicpp-invalid-access-moved,-hicpp-member-init,-hicpp-named-parameter,-hicpp-no-array-decay,-hicpp-no-assembler,-hicpp-use-equals-default,-llvm-include-order,-llvmlibc*,-misc-no-recursion,-misc-non-private-member-variables-in-classes,-modernize-use-equals-default,-modernize-use-trailing-return-type,-portability-simd-intrinsics,-readability-braces-around-statements,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-named-parameter,-readability-magic-numbers'
WarningsAsErrors: '*'
CheckOptions:
- key: performance-unnecessary-value-param.AllowedTypes
value: 'version_type'
- key: cppcoreguidelines-avoid-do-while.IgnoreMacros
value: true