Details
Diff Detail
- Build Status
Buildable 217 Build 217: arc lint + arc unit
Event Timeline
clang-move/ClangMove.cpp | ||
---|---|---|
295–308 | Why create this lambda if it's only used once? I think you can save a few lines by just inlining this. | |
303 | I'd also allow whitespaces around separators, e.g. a::b::X, a::b::Y. Maybe also trim() the name. | |
304 | Does this work? InMovedClassNames = InMovedClassNames ? ... : ... | |
315 | What would happen if InMovedClassNames == false? | |
clang-move/ClangMove.h | ||
40–42 | I'd use commas as separator. Eyeballs can easily mix ";" with ":". | |
clang-move/tool/ClangMoveMain.cpp | ||
41 | Same here if semi->comma. And I'd name this Names and names | |
test/clang-move/Inputs/multiple_class_test.cpp | ||
16 | Can you add one more moved class that is also in namespace c? |
Address review comments.
clang-move/ClangMove.cpp | ||
---|---|---|
315 | "InMovedClassNames" should not be false in the matcher. Added an assert. |
clang-move/ClangMove.cpp | ||
---|---|---|
299 | The comment is trivial. | |
302 | Can we use trim() with default argument? | |
315 | I think you should instead exit early if ClassNames.empty() or assert not empty. | |
test/clang-move/Inputs/multiple_class_test.cpp | ||
19 | What I wanted to see is another *moved* class because there was no test case where multiple classes are moved into the same namespace. |
I'd use commas as separator. Eyeballs can easily mix ";" with ":".