hanchenye-llvm-project/clang-tools-extra/unittests
Eric Liu 495b211a6c A clang tool for changing surrouding namespaces of class/function definitions.
Summary:
A tool for changing surrouding namespaces of class/function definitions while keeping
references to types in the changed namespace correctly qualified by prepending
namespace specifiers before them.

Example: test.cc
   namespace na {
   class X {};
   namespace nb {
   class Y { X x; };
   } // namespace nb
   } // namespace na

To move the definition of class Y from namespace "na::nb" to "x::y", run:
   clang-change-namespace --old_namespace "na::nb" \
     --new_namespace "x::y" --file_pattern "test.cc" test.cc --

Output:
   namespace na {
   class X {};
   } // namespace na
   namespace x {
   namespace y {
   class Y { na::X x; };
   } // namespace y
   } // namespace x

Reviewers: alexfh, omtcyfz, hokein

Subscribers: mgorny, klimek, djasper, beanz, alexshap, Eugene.Zelenko, cfe-commits

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

llvm-svn: 281918
2016-09-19 17:40:32 +00:00
..
change-namespace A clang tool for changing surrouding namespaces of class/function definitions. 2016-09-19 17:40:32 +00:00
clang-apply-replacements [clang-apply-replacements] use Range::operator==() instead of self-defined operator. 2016-06-21 17:59:57 +00:00
clang-query Remove autoconf support 2016-01-26 21:31:36 +00:00
clang-tidy [clang-tidy] Merge ExtraArgs(Before) instead of overriding them. 2016-08-23 14:48:29 +00:00
include/common Remove clang-modernize. 2015-12-17 11:49:19 +00:00
include-fixer [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
CMakeLists.txt A clang tool for changing surrouding namespaces of class/function definitions. 2016-09-19 17:40:32 +00:00