diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-06 23:47:59 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 21:32:29 +0300 |
commit | 6de264cc79f5d0186f0136dbb8af15794e295894 (patch) | |
tree | ea13a49e49852b84322e37e7d5443cbbbf733a68 /.clang-tidy | |
parent | 24b2fe810e784f04728379f49af54a3ab2252c9b (diff) | |
download | bmcweb-6de264cc79f5d0186f0136dbb8af15794e295894.tar.xz |
Enable bugprone widening checks in clang
Most of the errors we hit are simply places we need to explicitly
increase the width of the integer. Luckily, these are few and far
between.
Tested: Code compiles, unit tests pass.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I617d87f3970ae773e0767bb2f20118fca2e71daa
Diffstat (limited to '.clang-tidy')
-rw-r--r-- | .clang-tidy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy index 3e9d87b2fb..15ade7fb15 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -12,6 +12,7 @@ bugprone-exception-escape, bugprone-fold-init-type, bugprone-forward-declaration-namespace, bugprone-forwarding-reference-overload, +bugprone-implicit-widening-of-multiplication-result, bugprone-inaccurate-erase, bugprone-incorrect-roundings, bugprone-infinite-loop, |