hanchenye-llvm-project/clang-tools-extra/change-namespace
Eric Liu 8bc2416414 [change-namespace] avoid adding leading '::' when possible.
Summary:
When changing namespaces, the tool adds leading "::" to references that need to
be fully-qualified, which would affect readability.

We avoid adding "::" when the symbol name does not conflict with the new
namespace name. For example, a symbol name "na::nb::X" conflicts with "ns::na"
since it would be resolved to "ns::na::nb::X" in the new namespace.

Reviewers: hokein

Reviewed By: hokein

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D30493

llvm-svn: 298363
2017-03-21 12:41:59 +00:00
..
tool [change-namespace] trying to fix windows buildbot failure. 2017-02-28 10:00:15 +00:00
CMakeLists.txt
ChangeNamespace.cpp [change-namespace] avoid adding leading '::' when possible. 2017-03-21 12:41:59 +00:00
ChangeNamespace.h [change-namepsace] make it possible to whitelist symbols so they don't get updated. 2017-02-24 11:54:45 +00:00