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 | b6cbdf1b70fcaf54b91086c1fb922a2f99282172 (patch) | |
tree | 13b037130c4490fefcc458ef93f5c92034487783 /unittests/StaticAnalyzer/SymbolReaperTest.cpp | |
parent | 99b2bc4f952874990519d75bb61631959f8fd6c1 (diff) | |
download | clang-b6cbdf1b70fcaf54b91086c1fb922a2f99282172.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/StaticAnalyzer/SymbolReaperTest.cpp')
-rw-r--r-- | unittests/StaticAnalyzer/SymbolReaperTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unittests/StaticAnalyzer/SymbolReaperTest.cpp b/unittests/StaticAnalyzer/SymbolReaperTest.cpp index bd11303e94..bbbf68851a 100644 --- a/unittests/StaticAnalyzer/SymbolReaperTest.cpp +++ b/unittests/StaticAnalyzer/SymbolReaperTest.cpp @@ -61,8 +61,9 @@ public: // Test that marking s.x as live would also make s live. TEST(SymbolReaper, SuperRegionLiveness) { - EXPECT_TRUE(tooling::runToolOnCode(new SuperRegionLivenessAction, - "void foo() { struct S { int x; } s; }")); + EXPECT_TRUE( + tooling::runToolOnCode(std::make_unique<SuperRegionLivenessAction>(), + "void foo() { struct S { int x; } s; }")); } } // namespace |