diff options
-rw-r--r-- | .clang-tidy | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/.clang-tidy b/.clang-tidy index 50926dc5..c49ab458 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,22 +1,38 @@ Checks: > *, - -*avoid-c-arrays, - -*magic-numbers, - -*narrowing-conversions, - -*non-private-member-variables-in-classes, - -*special-member-functions, - -*uppercase-literal-suffix, + -*-avoid-c-arrays, + -*-else-after-return, + -*-magic-numbers, + -*-member-init, + -*-named-parameter, + -*-narrowing-conversions, + -*-non-private-member-variables-in-classes, + -*-special-member-functions, + -*-uppercase-literal-suffix, + -*-use-auto, + -*-use-emplace, + -abseil-string-find-str-contains, -android-cloexec-fopen, -bugprone-branch-clone, + -bugprone-exception-escape, + -bugprone-macro-parentheses, -bugprone-parent-virtual-call, + -bugprone-reserved-identifier, -bugprone-signed-char-misuse, -bugprone-suspicious-string-compare, + -cert-dcl37-c, -cert-dcl50-cpp, + -cert-dcl51-cpp, -cert-err34-c, + -cert-err58-cpp, + -cert-str34-c, -clang-analyzer-alpha.*, -clang-analyzer-core.CallAndMessage, -clang-analyzer-optin.cplusplus.VirtualCall, -clang-analyzer-valist.Uninitialized, + -clang-analyzer-webkit.NoUncountedMemberChecker, + -cppcoreguidelines-avoid-non-const-global-variables, + -cppcoreguidelines-init-variables, -cppcoreguidelines-macro-usage, -cppcoreguidelines-no-malloc, -cppcoreguidelines-owning-memory, @@ -29,6 +45,7 @@ Checks: > -cppcoreguidelines-pro-type-static-cast-downcast, -cppcoreguidelines-pro-type-union-access, -cppcoreguidelines-pro-type-vararg, + -cppcoreguidelines-slicing, -fuchsia-*, -google-build-using-namespace, -google-default-arguments, @@ -43,12 +60,22 @@ Checks: > -hicpp-signed-bitwise, -hicpp-vararg, -llvm-header-guard, + -llvm-namespace-comment, + -llvmlibc-*, + -misc-no-recursion, -misc-unused-parameters, + -modernize-loop-convert, -modernize-use-trailing-return-type, + -performance-unnecessary-value-param, -portability-simd-intrinsics, - -readability-else-after-return, + -readability-container-size-empty, + -readability-convert-member-functions-to-static, + -readability-delete-null-pointer, -readability-implicit-bool-conversion, - -readability-named-parameter, + -readability-inconsistent-declaration-parameter-name, + -readability-isolate-declaration, + -readability-redundant-smartptr-get, + -readability-use-anyofallof, WarningsAsErrors: '*' HeaderFilterRegex: 'include/ingen/.*|tests/.*|src/.*' FormatStyle: file |