summaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-07-06 20:37:23 +0300
committerEd Tanous <ed@tanous.net>2023-07-11 00:03:04 +0300
commitd5736ef260c5534fb2fe2ee895d62e91bc9319c3 (patch)
treee52b9651fd4f994a604d35ff62e2d09550a014ef /.clang-tidy
parentd9fcfcc174eb0e195105f3ba2e95456db29a4132 (diff)
downloadbmcweb-d5736ef260c5534fb2fe2ee895d62e91bc9319c3.tar.xz
Enable bugprone clang tidy checks
We pass basically all of these with flying colors now. Previously there were clang-tidy bugs around bugprone-exception-escape, but those seem to be resolved in clang-tidy-16, so we can turn that check back on. The only thing we had was an instance of bugprone-assignment-in-if-condition, that was trivially fixed. Tested: Clang-tidy passes. Change-Id: Ib2e63e951ee8e4e46f0d1b40bf41f8dca59c9a08 Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy7
1 files changed, 7 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 0d22df70ef..32f7f75243 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -3,12 +3,14 @@ Checks: '
boost-use-to-string,
bugprone-argument-comment,
bugprone-assert-side-effect,
+bugprone-assignment-in-if-condition,
bugprone-bad-signal-to-kill-thread,
bugprone-bool-pointer-implicit-conversion,
bugprone-branch-clone,
bugprone-copy-constructor-init,
bugprone-dangling-handle,
bugprone-dynamic-static-initializers,
+bugprone-exception-escape,
bugprone-fold-init-type,
bugprone-forward-declaration-namespace,
bugprone-forwarding-reference-overload,
@@ -32,18 +34,23 @@ bugprone-parent-virtual-call,
bugprone-posix-return,
bugprone-redundant-branch-condition,
bugprone-reserved-identifier,
+bugprone-shared-ptr-array-mismatch,
bugprone-signal-handler,
bugprone-signed-char-misuse,
bugprone-sizeof-container,
bugprone-sizeof-expression,
bugprone-spuriously-wake-up-functions,
+bugprone-standalone-empty,
bugprone-string-constructor,
bugprone-string-integer-assignment,
bugprone-string-literal-with-embedded-nul,
+bugprone-stringview-nullptr,
bugprone-suspicious-enum-usage,
bugprone-suspicious-include,
+bugprone-suspicious-memory-comparison,
bugprone-suspicious-memset-usage,
bugprone-suspicious-missing-comma,
+bugprone-suspicious-realloc-usage,
bugprone-suspicious-semicolon,
bugprone-suspicious-string-compare,
bugprone-swapped-arguments,