Instead of moving all the helper declarations blindly, this patch
implements an AST-based call graph solution to make clang-move only move used
helper decls to new.cc and remove unused decls in old.cc.
Depends on D27674.
Paths
| Differential D27673
[clang-move] Only move used helper declarations. ClosedPublic Authored by hokein on Dec 12 2016, 6:00 AM.
Details Summary Instead of moving all the helper declarations blindly, this patch Depends on D27674.
Diff Detail
Event Timelinehokein updated this object. hokein added a parent revision: D27674: [StaticAnalysis] Remove unnecessary parameter in CallGraphNode::addCallee.. Comment Actions First round of comments.
hokein marked 18 inline comments as done. hokein edited edge metadata. Comment Actions
Comment Actions Second rounds. Will start reviewing CallGraph code next.
hokein marked 15 inline comments as done. Comment Actions
Comment Actions Code is almost good. I'm just still a bit confused by names.
Comment Actions Thanks for the awesome suggestions on the names. I refactored the patch, hope it is clearer now.
This revision is now accepted and ready to land.Jan 2 2017, 7:44 AM Closed by commit rL290873: [clang-move] Only move used helper declarations. (authored by hokein). · Explain WhyJan 3 2017, 1:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 82847 clang-tools-extra/trunk/clang-move/CMakeLists.txt
clang-tools-extra/trunk/clang-move/ClangMove.h
clang-tools-extra/trunk/clang-move/ClangMove.cpp
clang-tools-extra/trunk/clang-move/HelperDeclRefGraph.h
clang-tools-extra/trunk/clang-move/HelperDeclRefGraph.cpp
clang-tools-extra/trunk/test/clang-move/Inputs/helper_decls_test.h
clang-tools-extra/trunk/test/clang-move/Inputs/helper_decls_test.cpp
clang-tools-extra/trunk/test/clang-move/Inputs/multiple_class_test.cpp
clang-tools-extra/trunk/test/clang-move/move-multiple-classes.cpp
clang-tools-extra/trunk/test/clang-move/move-used-helper-decls.cpp
clang-tools-extra/trunk/unittests/clang-move/ClangMoveTests.cpp
|