[PATCH] D24243: [clang-move] A prototype tool for moving class definition to new file.
Eugene Zelenko via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 6 10:20:45 PDT 2016
Eugene.Zelenko added a subscriber: Eugene.Zelenko.
================
Comment at: clang-move/ClangMove.h:33
@@ +32,3 @@
+ clang::SourceManager *SM;
+ MovedDecl() : Decl(nullptr), SM(nullptr) {}
+ MovedDecl(const clang::Decl *Decl, clang::SourceManager *SM)
----------------
Please add empty line before. Why don't use C++11 members initialization and = default?
================
Comment at: clang-move/ClangMove.h:83
@@ +82,3 @@
+public:
+ explicit ClangMoveAction(
+ const ClangMoveTool::MoveDefinitionSpec &spec,
----------------
Is explicit necessary?
================
Comment at: clang-move/ClangMove.h:106
@@ +105,3 @@
+ : Spec(Spec), FileToReplacements(FileToReplacements) {}
+ clang::FrontendAction *create() override {
+ return new ClangMoveAction(Spec, FileToReplacements);
----------------
Please add empty line before.
https://reviews.llvm.org/D24243
More information about the cfe-commits
mailing list