This is an archive of the discontinued LLVM Phabricator instance.

[change-namespace] add leading '::' to references in new namespace when name conflict is possible.
ClosedPublic

Authored by ioeric on Jan 26 2017, 6:12 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Jan 26 2017, 6:12 AM
bkramer accepted this revision.Jan 26 2017, 7:06 AM

Only nits below.

change-namespace/ChangeNamespace.cpp
232 ↗(On Diff #85894)

This could use llvm::is_contained

237 ↗(On Diff #85894)

I guess you could add here that you're now searching the longest common prefix.

243 ↗(On Diff #85894)

Not sure if this should be a while loop. It's so ugly right now :(

This revision is now accepted and ready to land.Jan 26 2017, 7:06 AM
ioeric updated this revision to Diff 85903.Jan 26 2017, 7:13 AM
ioeric marked 3 inline comments as done.
  • Addressed comments.
This revision was automatically updated to reflect the committed changes.