diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
commit | 62a56f39b7c5587a1b2144880500689bea5f32e4 (patch) | |
tree | c6f21dd30c4dfd02f50e4ca54712b24f2022a6f4 /clang/unittests/AST/NamedDeclPrinterTest.cpp | |
parent | 5bae2c87d5946ee72ad31d88033ed5ecbd01ada2 (diff) | |
download | bcm5719-llvm-62a56f39b7c5587a1b2144880500689bea5f32e4.tar.gz bcm5719-llvm-62a56f39b7c5587a1b2144880500689bea5f32e4.zip |
Revert "unique_ptr-ify ownership of ASTConsumers"
This reverts commit r213307.
Reverting to have some on-list discussion/confirmation about the ongoing
direction of smart pointer usage in the LLVM project.
llvm-svn: 213325
Diffstat (limited to 'clang/unittests/AST/NamedDeclPrinterTest.cpp')
-rw-r--r-- | clang/unittests/AST/NamedDeclPrinterTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/AST/NamedDeclPrinterTest.cpp b/clang/unittests/AST/NamedDeclPrinterTest.cpp index f8fb98454bd..4823b44862e 100644 --- a/clang/unittests/AST/NamedDeclPrinterTest.cpp +++ b/clang/unittests/AST/NamedDeclPrinterTest.cpp @@ -68,8 +68,8 @@ PrintedNamedDeclMatches(StringRef Code, const std::vector<std::string> &Args, PrintMatch Printer(SuppressUnwrittenScope); MatchFinder Finder; Finder.addMatcher(NodeMatch, &Printer); - std::unique_ptr<FrontendActionFactory> Factory = - newFrontendActionFactory(&Finder); + std::unique_ptr<FrontendActionFactory> Factory( + newFrontendActionFactory(&Finder)); if (!runToolOnCodeWithArgs(Factory->create(), Code, Args, FileName)) return testing::AssertionFailure() |