[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
Thu Nov 28 05:40:28 PST 2024


cor3ntin wrote:

By the time we are in Sema, the ranges should be correct.
I think the issue is somewhere in `Parser::ParseLambdaIntroducer`. It does seem quite confused https://gcc.godbolt.org/z/h7rfEGnMb

In particular, can you check whether `SourceLocation LocEnd = PrevTokLocation;` behave correctly?


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


More information about the cfe-commits mailing list