[clang] [clang] Fix comma location tracking inside ParenListExpr. (PR #199411)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Tue May 26 03:40:35 PDT 2026


ojhunt wrote:

@AaronBallman  I think this is likely to be a real memory use regression - a source location for every comma in a paren expression seems excessive for the diagnostics.

@nvetrini I suspect it's probably better to find the comma location by traversing the from the end of each expression to find the next comma. You'll need to do some checking for macro expansions, for which I'd just say give up and not bother with accurate comma placement because at that point comma location becomes irrelevant.

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


More information about the cfe-commits mailing list