This revision was automatically updated to reflect the committed changes.
Closed by commit rL300356: [clang-move] Create ClangMoveActionFactory on stack
(authored by alexshap).
Changed prior to commit:
https://reviews.llvm.org/D32063?vs=95233&id=95326#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32063
Files:
clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp
Index: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp
===================================================================
--- clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp
+++ clang-tools-extra/trunk/clang-move/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: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp
===================================================================
--- clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp
+++ clang-tools-extra/trunk/clang-move/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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits