[clang-move] Enable dump all declarations in old header.
authorHaojian Wu <hokein@google.com>
Thu, 24 Nov 2016 10:17:17 +0000 (10:17 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 24 Nov 2016 10:17:17 +0000 (10:17 +0000)
commitb15c8da08979f4ed7e4209a46039af7617bb338a
treebba4d980abc6d4e8c29fdcf4c89765b72782c133
parentecd760ca6e3d846109e15706f0536bd1edaa46e0
[clang-move] Enable dump all declarations in old header.

Summary:
* Add -dump_dels option to dump all declarations from old header. It
  will allow clang-move used as a frontend to get declarations from
  header. Further more, this will make debugging stuff easier. Currently only
  class/function types are supported.
* Refactoring code a little bit by creating a ClangMoveContext which
  holds all options for ClangMoveTool, which can simplify the code in
  some degree.

Reviewers: ioeric

Subscribers: cfe-commits

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

llvm-svn: 287863
clang-tools-extra/clang-move/ClangMove.cpp
clang-tools-extra/clang-move/ClangMove.h
clang-tools-extra/clang-move/tool/ClangMoveMain.cpp
clang-tools-extra/unittests/clang-move/ClangMoveTests.cpp