We collect the source location of a trailing return type in the parser,
improving the location for regular functions and providing a location
for lambdas, where previously there was none.
Fixes PR47732.
Differential D90129
Better source location for -Wignored-qualifiers on trailing return types aaronpuchert on Oct 25 2020, 6:44 PM. Authored by
Details We collect the source location of a trailing return type in the parser, Fixes PR47732.
Diff Detail
Unit Tests
Event Timeline
Comment Actions Collect location of a trailing return type in the parser, use that for the warning. I resisted clang-format's urge to reflow the large parameter lists, I hope that's the right thing here. Comment Actions LGTM aside from a question about a potential assert to add.
Comment Actions Added the assertions in a follow-up change rGebfc427bbe08f0c36af9721d5a4e6d3ffe2e4bf5. |
I'm open to always using the RParenLoc.