[clang] [Clang] enhance loop analysis to handle variable changes inside lambdas (PR #135573)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 17 11:32:37 PDT 2025
================
@@ -299,3 +299,18 @@ void test10() {
for (auto[i, j, k] = arr; i < a; ++i) { }
for (auto[i, j, k] = arr; i < a; ++arr[0]) { }
};
+
+extern void foo(int);
----------------
shafik wrote:
Can we also get tests that show diagnostics for lambda cases as well.
https://github.com/llvm/llvm-project/pull/135573
More information about the cfe-commits
mailing list