[change-namespace] move template class forward-declarations and don't move fwd-decls...
authorEric Liu <ioeric@google.com>
Wed, 7 Dec 2016 14:20:52 +0000 (14:20 +0000)
committerEric Liu <ioeric@google.com>
Wed, 7 Dec 2016 14:20:52 +0000 (14:20 +0000)
commit41552d6a37c8c9fb4a620b3a7164469a2cb914ac
treead2f3d0da9e320b6e782083ad083ad8c674d2e17
parentb1332d8bf603216b34c250a1e72de51025b48819
[change-namespace] move template class forward-declarations and don't move fwd-decls in classes.

Summary:
Forward declarations in moved namespaces should be moved back to the old
namespaces. We should also move template class forward declarations.

Also fix a bug that moves forward declarations of nested classes.

Reviewers: bkramer

Subscribers: cfe-commits

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

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