[PATCH] D24243: [clang-move] A prototype tool for moving class definition to new file.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 6 01:50:17 PDT 2016
hokein created this revision.
hokein added a subscriber: cfe-commits.
This patch introduces a new tool which moves a specific class definition
from files (.h, .cc) to new files (.h, .cc), which mostly acts like
"Extract class defintion". In the long term, this tool should be
merged in to clang-refactoring as a subtool.
clang-move not only moves class definition, but also moves all the
forward declarations, functions defined in anonymous namespace and #include
headers to new files, to make sure the new files are compliable as much
To move `Foo` from old.[h/cc] to new.[h/cc], use:
clang-move -name=Foo -old_header=old.h -old_cc=old.cc -new_header=new.h
To move `Foo` from old.h to new.h, use:
clang-move -name=Foo -old_header=old.h -new_header=new.h old.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 30621 bytes
Desc: not available
More information about the cfe-commits