Enable all the other bugprone clang-tidy checks
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 18 Aug 2020 20:15:31 +0000 (22:15 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Tue, 1 Sep 2020 06:37:03 +0000 (06:37 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
.clang-tidy

index 436a6c7decb6c0dfc3faa44a1bbe5ec80f9dbee3..6028c43908edae25af93c8253d7c3ef161cb2bde 100644 (file)
@@ -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