E.g. Concept auto Func();
The nameLoc for the constained auto type loc pointed to the concept name
loc, it should be the auto token loc. This patch fixes it, and remove
a relevant hack in clang-tidy check.
Paths
| Differential D117009
[AST] Fix the incorrect auto-keyword loc for constrained auto type loc. ClosedPublic Authored by hokein on Jan 11 2022, 3:55 AM.
Details Summary E.g. Concept auto Func(); The nameLoc for the constained auto type loc pointed to the concept name
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 11 2022, 3:56 AM This revision is now accepted and ready to land.Jan 11 2022, 8:58 AM This revision was landed with ongoing or failed builds.Jan 19 2022, 5:19 AM Closed by commit rG6c78703e3abc: [AST] Fix the incorrect auto-keyword loc for constrained auto type loc. (authored by hokein). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 401183 clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
clang/lib/Parse/ParseDecl.cpp
clang/unittests/AST/SourceLocationTest.cpp
|