This is an archive of the discontinued LLVM Phabricator instance.

[change-namespace] Enhance detection of conflicting namespaces.
ClosedPublic

Authored by ioeric on Oct 22 2018, 3:28 AM.

Details

Summary

For example:

namespace util { class Base; }

namespace new {
namespace util { class Internal; }
}

namespace old {
util::Base b1;
}

When changing old:: to new::, util:: in namespace "new::" will conflict
with "new::util::" unless a leading "::" is added.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Oct 22 2018, 3:28 AM
hokein accepted this revision.Oct 22 2018, 5:21 AM

LGTM

This revision is now accepted and ready to land.Oct 22 2018, 5:21 AM
This revision was automatically updated to reflect the committed changes.