This is an archive of the discontinued LLVM Phabricator instance.

[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
loc, it should be the auto token loc. This patch fixes it, and remove
a relevant hack in clang-tidy check.

Diff Detail

Event Timeline

hokein created this revision.Jan 11 2022, 3:55 AM
hokein requested review of this revision.Jan 11 2022, 3:55 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 11 2022, 3:56 AM
sammccall accepted this revision.Jan 11 2022, 8:58 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
This revision was automatically updated to reflect the committed changes.