From 6de264cc79f5d0186f0136dbb8af15794e295894 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 6 Jan 2022 12:47:59 -0800 Subject: 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 Change-Id: I617d87f3970ae773e0767bb2f20118fca2e71daa --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) (limited to '.clang-tidy') 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, -- cgit v1.2.3