- --new_depend_on_old: new header will include old header
- --old_depend_on_new: old header will include new header.
Details
Diff Detail
- Build Status
Buildable 1483 Build 1483: arc lint + arc unit
Event Timeline
clang-move/ClangMove.cpp | ||
---|---|---|
309 | How do you handle the case where a whole file is copied? | |
416 | This function is not very straight-forward to me so need some comments on what and why. | |
424 | Please check this in main. Otherwise, the Finder will still be run without any matcher. | |
594 | This variable seems pretty ugly. Can you just use MovedDecl.SM in the loop instead. It is used two times anyway. | |
608 | What does this check mean? Please comment. It seems weird to rely on a variable that is set in a loop as a condition. Also, can you just do this to save some indentation? if (!SM) return; ... | |
613 | We might want to do what include-fixer does to compute the best path to put in #include, e.g. we'd want #include "llvm/XXX.h" instead of #include "llvm/include/llvm/XXX.h" | |
clang-move/ClangMove.h | ||
56 | additional seems redundant. | |
137 | You might want to explain what this is for and why it is needed. |
clang-move/ClangMove.cpp | ||
---|---|---|
606 | Do we need to do something (e.g. error handling) instead of just continue? If continue is allowed, please add comment explaining why. | |
607 | Just use SI->second below since ID is only used once. | |
609 | Maybe call this FileAndReplacements instead of It, which is a bit confusing when reading the code below. | |
616 | Maybe add a comment here indicating that this replacement *will* be cleaned up at the end. | |
651 | Maybe just std::string OldHeaderInclude = Spec.NewDependOnOld ? "#include \"" + Spec.OldHeader + "\"\n" : ":"; | |
clang-move/tool/ClangMoveMain.cpp | ||
67 | s/depends/will depend/ This makes it clearer IMO. Same below. | |
unittests/clang-move/ClangMoveTests.cpp | ||
435 | Also check that new does not depend on old? | |
458 | Also check that old does not depend on new? |
Lg.
unittests/clang-move/ClangMoveTests.cpp | ||
---|---|---|
424 | Is this indented correctly? or just phabricator bug? |
additional seems redundant.