This is an archive of the discontinued LLVM Phabricator instance.

clang-rename: fix renaming members when referenced as macro arguments
ClosedPublic

Authored by vmiklos on May 19 2016, 12:52 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

vmiklos updated this revision to Diff 57838.May 19 2016, 12:52 PM
vmiklos retitled this revision from to clang-rename: fix renaming members when referenced as macro arguments.
vmiklos updated this object.
vmiklos added reviewers: cfe-commits, klimek.
klimek added inline comments.May 20 2016, 2:52 AM
clang-rename/USRLocFinder.cpp
106–113 ↗(On Diff #57838)

Don't we just always want to do that?
Location = Decl->getASTContext().getSourceManager().getSpellingLoc(Expr->getMemberLoc());
should always work.

klimek accepted this revision.May 20 2016, 4:39 AM
klimek edited edge metadata.

lg

This revision is now accepted and ready to land.May 20 2016, 4:39 AM
This revision was automatically updated to reflect the committed changes.