diff options
author | Eric Liu <ioeric@google.com> | 2017-03-21 12:41:59 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2017-03-21 12:41:59 +0000 |
commit | 8bc241641425cb306d130f3402f56f873f61b302 (patch) | |
tree | 5344696f080345164700f08c54344c7552163b3e /clang/lib/Lex/ModuleMap.cpp | |
parent | 3b939d070c79c0de68170f004d1a4c79ec0bf1bd (diff) | |
download | llvm-8bc241641425cb306d130f3402f56f873f61b302.zip llvm-8bc241641425cb306d130f3402f56f873f61b302.tar.gz llvm-8bc241641425cb306d130f3402f56f873f61b302.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions