[clang] [FixIt] Improve Source Ranges and Fix-It Hints for Unused Lambda Captures #106445 (PR #117953)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 22 06:22:18 PST 2025


erichkeane wrote:

> Hi @erichkeane, thank you for the feedback! I understand that the lexing logic should be moved to the parser. Could you please point me toward specific areas in the parser where this logic should be integrated? A bit more detail would help me ensure this is implemented correctly. Thank you!

@cor3ntin is the parser owner can help identify a spot, but likely while we are parsing the lambda capture section directly.  If you debug it, you should be able to see where we consume that token.  Generally source locations should be created right about the same moment we consume the token.

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


More information about the cfe-commits mailing list