[PATCH] D128401: [clang-tidy] Fixing a bug raising false alarms on static local variables in the Infinite Loop Checker

Ziqing Luo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 25 12:03:45 PDT 2022


ziqingluo-90 added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp:194
+  }
+  return ContainsFunc && Overlap;
+}
----------------
njames93 wrote:
> This will always be false as if it's true, the loop would return.
Thanks for pointing this out.  I will make the change before commit!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128401/new/

https://reviews.llvm.org/D128401



More information about the cfe-commits mailing list