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