[clang-tools-extra] FIX : bugprone-too-small-loop-variable - false-negative when const variable is used as loop bound (PR #81183)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 13:01:59 PST 2024


================
@@ -169,6 +169,9 @@ Miscellaneous
   option is specified. Now ``clang-apply-replacements`` applies formatting only with
   the option.
 
+- Fixed incorrect implementation of ``too-small-loop-variable`` check when a const loop
+  variable is initialized with a function declaration.
+
----------------
PiotrZSL wrote:

Wrong place, should be under "Changes in existing checks", follow exist style

https://github.com/llvm/llvm-project/pull/81183


More information about the cfe-commits mailing list