Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Nice!
First round of comments.
clang-move/ClangMove.cpp | ||
---|---|---|
414 ↗ | (On Diff #77263) | Some comments here would be appreciated. Also nit: no braces. |
427 ↗ | (On Diff #77263) | Same as above. Comments and braces. |
test/clang-move/move-template-class.cpp | ||
20 ↗ | (On Diff #77263) | Not directly related, but we might want to start thinking about appropriate code formatting like spaces between decls. Code jamming together is not pretty... |
clang-move/ClangMove.cpp | ||
---|---|---|
417 ↗ | (On Diff #77292) | We can't write the code like this way since the ternary operator (condition ? E1:E2) requires E1 and E2 has same type or they can convert to each other. In our case, the pointer types of FTD and CMD are different, and they can't convert to each other. We could pass the compilation by writing the code like following way, but I'd keep the current way. erase(FTD ? static_cast<NamedDecl*>(FTD) : static_cast<NamedDecl*>CMD); |
clang-move/ClangMove.cpp | ||
---|---|---|
417 ↗ | (On Diff #77292) | nvm. you can keep it as it is. |