[change-namespace] consider typedef/using alias decls in the moved namespace.
authorEric Liu <ioeric@google.com>
Mon, 14 Nov 2016 19:37:55 +0000 (19:37 +0000)
committerEric Liu <ioeric@google.com>
Mon, 14 Nov 2016 19:37:55 +0000 (19:37 +0000)
commit3215886b7a44cd89f0a6cea726c24ae8740f6aeb
tree766cccd5f5d8665cbcdbf23113e5694ce03a7765
parent10e59fac3ed6bf7b24eb59548416b67cff330b31
[change-namespace] consider typedef/using alias decls in the moved namespace.

Summary: If a TypeLoc refers to a type alias defined in the moved namespace, we do not need to update its specifier since the type alias decl will be moved along with the type reference.

Reviewers: hokein

Subscribers: cfe-commits

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

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