This is an archive of the discontinued LLVM Phabricator instance.

Widen `name` stencil to support `TypeLoc` nodes.
ClosedPublic

Authored by SilensAngelusNex on May 10 2021, 11:13 AM.

Diff Detail

Event Timeline

SilensAngelusNex requested review of this revision.May 10 2021, 11:13 AM
SilensAngelusNex created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2021, 11:13 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Fix typo in name's doc comment and add TypeLoc to the list of expected types in name's typeError.

Adding Yitzhak as a reviewer. I notice that at least the name of a cxxBaseSpecifier is not supported and I don't know if that (or lack of typeloc support) is desired in the Transformer design.

ymandel accepted this revision.May 11 2021, 5:36 AM

Nice, thanks!

Adding Yitzhak as a reviewer. I notice that at least the name of a cxxBaseSpecifier is not supported and I don't know if that (or lack of typeloc support) is desired in the Transformer design.

No, not by design, but good question. I'd be happy to take a patch adding cxxBaseSpecifier support as well.

clang/lib/Tooling/Transformer/RangeSelector.cpp
234

Please use Loc instead of T->. I find it a bit confusing to see them both used.

This revision is now accepted and ready to land.May 11 2021, 5:36 AM
SilensAngelusNex marked an inline comment as done.May 11 2021, 10:55 AM
This revision was automatically updated to reflect the committed changes.