[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:
parent
8580cd4e1a
commit
ffb997a8eb
|
@ -127,10 +127,9 @@ int main(int argc, const char **argv) {
|
||||||
move::ClangMoveContext Context{Spec, Tool.getReplacements(),
|
move::ClangMoveContext Context{Spec, Tool.getReplacements(),
|
||||||
InitialDirectory.str(), Style, DumpDecls};
|
InitialDirectory.str(), Style, DumpDecls};
|
||||||
move::DeclarationReporter Reporter;
|
move::DeclarationReporter Reporter;
|
||||||
auto Factory = llvm::make_unique<clang::move::ClangMoveActionFactory>(
|
move::ClangMoveActionFactory Factory(&Context, &Reporter);
|
||||||
&Context, &Reporter);
|
|
||||||
|
int CodeStatus = Tool.run(&Factory);
|
||||||
int CodeStatus = Tool.run(Factory.get());
|
|
||||||
if (CodeStatus)
|
if (CodeStatus)
|
||||||
return CodeStatus;
|
return CodeStatus;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue