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/Tooling/RefactoringTest.cpp | |
parent | 12a7e6c09cda7fd0259be85c949cf87b040bf1b7 (diff) | |
download | llvm-b22804b35464049ca92107d45042d2a5bbd292f6.zip llvm-b22804b35464049ca92107d45042d2a5bbd292f6.tar.gz llvm-b22804b35464049ca92107d45042d2a5bbd292f6.tar.bz2 |
[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/Tooling/RefactoringTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/RefactoringTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Tooling/RefactoringTest.cpp b/clang/unittests/Tooling/RefactoringTest.cpp index b5c56e90..5949c53 100644 --- a/clang/unittests/Tooling/RefactoringTest.cpp +++ b/clang/unittests/Tooling/RefactoringTest.cpp @@ -650,7 +650,7 @@ template <typename T> class TestVisitor : public clang::RecursiveASTVisitor<T> { public: bool runOver(StringRef Code) { - return runToolOnCode(new TestAction(this), Code); + return runToolOnCode(std::make_unique<TestAction>(this), Code); } protected: |