- 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 support dumpng class/function types.
- Refactoring code a little bit by creating a ClangMoveContext which holds all options for ClangMoveTool, which can simplify the code in some degree.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-move/ClangMove.h | ||
---|---|---|
90 ↗ | (On Diff #79120) | Is this the right place for this comment? Seems a bit unexpected. |
unittests/clang-move/ClangMoveTests.cpp | ||
522 ↗ | (On Diff #79120) | What if Reporter.getDeclarationList().size() > ExpectedDeclaration.size(). I'd use iterator-based loop on both vectors and assert both iterators reached end after loop. |
Comment Actions
LG with a nit.
clang-move/tool/ClangMoveMain.cpp | ||
---|---|---|
155 ↗ | (On Diff #79194) | This check is run in each iteration... maybe just loop from begin() to end()-1 and special casing the last element, in which case you don't need to check in each run. |