This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix the location of UsingTypeLoc.
ClosedPublic

Authored by hokein on Jan 19 2023, 8:14 AM.

Details

Summary

It is revealed by the https://reviews.llvm.org/D141280.

namespace ns { class Foo {}; }
using ns::Foo;

// Before the fix, the Location of UsingTypeLoc Foo points to the
token "class", slection on ^Foo will result in the VarDecl abc.
class Foo abc;

Diff Detail

Event Timeline

hokein created this revision.Jan 19 2023, 8:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 8:14 AM
hokein requested review of this revision.Jan 19 2023, 8:14 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 19 2023, 8:14 AM
sammccall accepted this revision.Jan 23 2023, 1:24 AM
This revision is now accepted and ready to land.Jan 23 2023, 1:24 AM
This revision was landed with ongoing or failed builds.Jan 23 2023, 3:53 AM
This revision was automatically updated to reflect the committed changes.