[clang-move] Create ClangMoveActionFactory on stack

This diff removes unnecessary using of unique_ptr with ClangMoveActionFactory (pico cleanup).
NFC

Test plan: make check-clang-tools

Differential revision: https://reviews.llvm.org/D32063

llvm-svn: 300356
This commit is contained in:
Alexander Shaposhnikov 2017-04-14 18:12:11 +00:00
parent 8580cd4e1a
commit ffb997a8eb
1 changed files with 3 additions and 4 deletions

View File

@ -127,10 +127,9 @@ int main(int argc, const char **argv) {
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;