clang-tidy: Enable bugprone-narrowing-conversions check
This check indicates instances where there's a potential loss of
data during type conversions, particularly when converting from
a wider type to a narrower type.
Change-Id: I43f3d9ff4a6d672f51c7b2d3eccca90f262fa852
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
index cb49236..67e4198 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -23,6 +23,7 @@
bugprone-misplaced-widening-cast,
bugprone-move-forwarding-reference,
bugprone-multiple-statement-macro,
+bugprone-narrowing-conversions,
bugprone-no-escape,
bugprone-not-null-terminated-result,
bugprone-parent-virtual-call,