diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2019-08-30 09:29:34 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2019-08-30 09:29:34 +0000 |
commit | b22804b35464049ca92107d45042d2a5bbd292f6 (patch) | |
tree | 4e29b283156209efc4945de2129c9f8ad878d28f /clang/unittests/AST/RecursiveASTVisitorTest.cpp | |
parent | 12a7e6c09cda7fd0259be85c949cf87b040bf1b7 (diff) | |
download | bcm5719-llvm-b22804b35464049ca92107d45042d2a5bbd292f6.tar.gz bcm5719-llvm-b22804b35464049ca92107d45042d2a5bbd292f6.zip |
[Tooling] Migrated APIs that take ownership of objects to unique_ptr
Subscribers: jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D66960
llvm-svn: 370451
Diffstat (limited to 'clang/unittests/AST/RecursiveASTVisitorTest.cpp')
-rw-r--r-- | clang/unittests/AST/RecursiveASTVisitorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/AST/RecursiveASTVisitorTest.cpp b/clang/unittests/AST/RecursiveASTVisitorTest.cpp index 988a8ce4c2a..aa8756527d3 100644 --- a/clang/unittests/AST/RecursiveASTVisitorTest.cpp +++ b/clang/unittests/AST/RecursiveASTVisitorTest.cpp @@ -84,7 +84,7 @@ private: std::vector<VisitEvent> collectEvents(llvm::StringRef Code) { CollectInterestingEvents Visitor; clang::tooling::runToolOnCode( - new ProcessASTAction( + std::make_unique<ProcessASTAction>( [&](clang::ASTContext &Ctx) { Visitor.TraverseAST(Ctx); }), Code); return std::move(Visitor).takeEvents(); |