[clang] [Clang] enhance loop analysis to handle variable changes inside lambdas (PR #135573)

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 8 07:17:39 PST 2026


================
@@ -496,7 +496,9 @@ Improvements to Clang's diagnostics
   Now the include/import locations are written into `sarif.run.result.relatedLocations`.
 
 - Clang now generates a fix-it for C++20 designated initializers when the 
-  initializers do not match the declaration order in the structure. 
+  initializers do not match the declaration order in the structure.
+
+- The ``-Wloop-analysis`` warning now handles variable modifications inside lambda expressions (#GH132038).
----------------
a-tarasyuk wrote:

@zyn0217 Thanks for the feedback 👍. I’ve made the requested changes and will wait for @AaronBallman’s feedback before moving forward with the close/merge.

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


More information about the cfe-commits mailing list