forked from OSchip/llvm-project
[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(),
|
||||
InitialDirectory.str(), Style, DumpDecls};
|
||||
move::DeclarationReporter Reporter;
|
||||
auto Factory = llvm::make_unique<clang::move::ClangMoveActionFactory>(
|
||||
&Context, &Reporter);
|
||||
move::ClangMoveActionFactory Factory(&Context, &Reporter);
|
||||
|
||||
int CodeStatus = Tool.run(Factory.get());
|
||||
int CodeStatus = Tool.run(&Factory);
|
||||
if (CodeStatus)
|
||||
return CodeStatus;
|
||||
|
||||
|
|
Loading…
Reference in New Issue