[clang] [FixIt] Improve Source Ranges and Fix-It Hints for Unused Lambda Captures #106445 (PR #117953)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 22:50:31 PDT 2025
================
@@ -598,7 +598,7 @@ struct S1 {
};
void foo1() {
- auto s0 = S1([name=]() {}); // expected-error {{expected expression}}
+ auto s0 = S1([]() {}); // Remove invalid capture, no diagnostic expected
----------------
cor3ntin wrote:
@charan-003
https://github.com/llvm/llvm-project/pull/117953
More information about the cfe-commits
mailing list