From: Kevin Ottens Date: Tue, 18 Aug 2020 20:15:31 +0000 (+0200) Subject: Enable all the other bugprone clang-tidy checks X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~195^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=310693be2ccbba6dc2d9ff0a94f4f820692f375a;p=nextcloud-desktop.git Enable all the other bugprone clang-tidy checks Signed-off-by: Kevin Ottens --- diff --git a/.clang-tidy b/.clang-tidy index 436a6c7de..6028c4390 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,11 +1,5 @@ Checks: '-*, - bugprone-argument-comment, - bugprone-branch-clone, - bugprone-forward-declaration-namespace, - bugprone-macro-parentheses, - bugprone-narrowing-conversions, - bugprone-too-small-loop-variable, - bugprone-terminating-continue, + bugprone-*, cppcoreguidelines-init-variables, misc-*, -misc-non-private-member-variables-in-classes, @@ -40,5 +34,11 @@ HeaderFilterRegex: '.*' AnalyzeTemporaryDtors: false FormatStyle: none CheckOptions: + - key: bugprone-assert-side-effect.AssertMacros + value: 'assert;Q_ASSERT' + - key: bugprone-dangling-handle.HandleClasses + value: 'std::basic_string_view;std::experimental::basic_string_view;QStringView' + - key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression + value: 1 - key: modernize-use-default-member-init.UseAssignment value: 1