clang-tidy: Enable bugprone-too-small-loop-variable check
This check detects those for loops that have a loop variable
with a “too small” type which means this type can’t represent
all values which are part of the iteration range.
Change-Id: I9052bfd819ab78970b929411a08d77796c353465
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/.clang-tidy b/.clang-tidy
index 3e096c6..f2e1a72 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -41,6 +41,7 @@
bugprone-swapped-arguments,
bugprone-terminating-continue,
bugprone-throw-keyword-missing,
+bugprone-too-small-loop-variable,
bugprone-undefined-memory-manipulation,
bugprone-undelegated-constructor,
bugprone-unhandled-exception-at-new,