From 7265bfa480bd21afede295ace32913ac8b5275ca Mon Sep 17 00:00:00 2001 From: Dmitriy Khaustov aka xDimon Date: Mon, 14 Oct 2024 16:50:09 +0300 Subject: [PATCH] update: clang-tidy rules Signed-off-by: Dmitriy Khaustov aka xDimon --- .clang-tidy | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index feefcd9..abc4d76 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -6,8 +6,50 @@ # --- -Checks: '-*,clang-analyzer-*,clang-diagnostic-*,readability-*,modernize-*,-modernize-use-trailing-return-type,boost-*,bugprone-*,cppcoreguidelines-*,google-*,hicpp-*,performance-*,readability-*,-google-readability-namespace-comments,-readability-inconsistent-declaration-parameter-name,-readability-braces-around-statements,-hicpp-signed-bitwise,-google-runtime-references,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-readability-magic-numbers,-hicpp-explicit-conversions,-hicpp-uppercase-literal-suffix,-readability-uppercase-literal-suffix,-hicpp-no-array-decay,-hicpp-special-member-functions,-bugprone-narrowing-conversions,-modernize-use-nodiscard,-google-readability-braces-around-statements,-hicpp-braces-around-statements,-bugprone-suspicious-semicolon,-readability-named-parameter,-hicpp-named-parameter,-readability-identifier-naming' -WarningsAsErrors: 'modernize-*,cppcoreguidelines-*,boost-*,google-build-using-namespace,readability-else-after-return,google-readability-todo' +Checks: "-*, + clang-analyzer-*, \ + clang-diagnostic-*, \ + -clang-diagnostic-missing-template-arg-list-after-template-kw, \ + modernize-*, \ + -modernize-use-nodiscard, \ + -modernize-use-trailing-return-type, \ + boost-*, \ + bugprone-*, \ + -bugprone-narrowing-conversions, \ + -bugprone-suspicious-semicolon, \ + cppcoreguidelines-*, \ + -cppcoreguidelines-rvalue-reference-param-not-moved, \ + -cppcoreguidelines-avoid-magic-numbers, \ + -cppcoreguidelines-pro-bounds-array-to-pointer-decay, \ + google-*, \ + -google-readability-namespace-comments, \ + -google-readability-braces-around-statements, \ + -google-runtime-references, \ + hicpp-*, \ + -hicpp-explicit-conversions, \ + -hicpp-uppercase-literal-suffix, \ + -hicpp-signed-bitwise, \ + -hicpp-no-array-decay, \ + -hicpp-special-member-functions, \ + -hicpp-braces-around-statements, \ + -hicpp-named-parameter, \ + performance-*, \ + readability-*, \ + -readability-magic-numbers, \ + -readability-named-parameter, \ + -readability-identifier-naming, \ + -readability-uppercase-literal-suffix, \ + -readability-inconsistent-declaration-parameter-name, \ + -readability-braces-around-statements" +WarningsAsErrors: "modernize-*, \ + cppcoreguidelines-*, \ + boost-*, \ + performance-*, \ + google-build-using-namespace, \ + readability-else-after-return, \ + readability-container-contains, \ + google-readability-todo" +HeaderFilterRegex: '\(hpp|h|pb\.h)' AnalyzeTemporaryDtors: false FormatStyle: .clang-format User: user