alexshap created this revision. alexshap created this object with visibility "All Users".
This diff removes unnecessary using of unique_ptr with ClangMoveActionFactory (pico cleanup). NFC Repository: rL LLVM https://reviews.llvm.org/D32063 Files: tool/ClangMoveMain.cpp Index: tool/ClangMoveMain.cpp =================================================================== --- tool/ClangMoveMain.cpp +++ tool/ClangMoveMain.cpp @@ -127,10 +127,9 @@ move::ClangMoveContext Context{Spec, Tool.getReplacements(), InitialDirectory.str(), Style, DumpDecls}; move::DeclarationReporter Reporter; - auto Factory = llvm::make_unique<clang::move::ClangMoveActionFactory>( - &Context, &Reporter); - - int CodeStatus = Tool.run(Factory.get()); + move::ClangMoveActionFactory Factory(&Context, &Reporter); + + int CodeStatus = Tool.run(&Factory); if (CodeStatus) return CodeStatus;
Index: tool/ClangMoveMain.cpp =================================================================== --- tool/ClangMoveMain.cpp +++ tool/ClangMoveMain.cpp @@ -127,10 +127,9 @@ move::ClangMoveContext Context{Spec, Tool.getReplacements(), InitialDirectory.str(), Style, DumpDecls}; move::DeclarationReporter Reporter; - auto Factory = llvm::make_unique<clang::move::ClangMoveActionFactory>( - &Context, &Reporter); - - int CodeStatus = Tool.run(Factory.get()); + move::ClangMoveActionFactory Factory(&Context, &Reporter); + + int CodeStatus = Tool.run(&Factory); if (CodeStatus) return CodeStatus;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits