[change-namespace] shorten namespace qualifier based on UsingDecl and UsingDirectiveDecl.
authorEric Liu <ioeric@google.com>
Tue, 8 Nov 2016 22:44:17 +0000 (22:44 +0000)
committerEric Liu <ioeric@google.com>
Tue, 8 Nov 2016 22:44:17 +0000 (22:44 +0000)
commitb9bf1b5b8548de8dc9b455f701ac9a5afbc7673f
tree7e9dd5a3e18b2c79bd1c0c18c417816d939aba14
parent09d52e1cd45232337c0a5ef68fd986f74b91f053
[change-namespace] shorten namespace qualifier based on UsingDecl and UsingDirectiveDecl.

Summary:
when replacing symbol references in moved namespaces, trying to make the replace
name as short as possible by considering UsingDecl (i.e. UsingShadow) and
UsingDirectiveDecl (i.e. using namespace decl).

Reviewers: hokein

Subscribers: cfe-commits

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

llvm-svn: 286307
clang-tools-extra/change-namespace/ChangeNamespace.cpp
clang-tools-extra/change-namespace/ChangeNamespace.h
clang-tools-extra/unittests/change-namespace/ChangeNamespaceTests.cpp