summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/CommentHandlerTest.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2019-08-30 09:29:34 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2019-08-30 09:29:34 +0000
commitb22804b35464049ca92107d45042d2a5bbd292f6 (patch)
tree4e29b283156209efc4945de2129c9f8ad878d28f /clang/unittests/Tooling/CommentHandlerTest.cpp
parent12a7e6c09cda7fd0259be85c949cf87b040bf1b7 (diff)
downloadbcm5719-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/Tooling/CommentHandlerTest.cpp')
-rw-r--r--clang/unittests/Tooling/CommentHandlerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/CommentHandlerTest.cpp b/clang/unittests/Tooling/CommentHandlerTest.cpp
index 5ceed95b989..7eb11ccd6ee 100644
--- a/clang/unittests/Tooling/CommentHandlerTest.cpp
+++ b/clang/unittests/Tooling/CommentHandlerTest.cpp
@@ -55,8 +55,8 @@ public:
CommentVerifier GetVerifier();
protected:
- ASTFrontendAction *CreateTestAction() override {
- return new CommentHandlerAction(this);
+ std::unique_ptr<ASTFrontendAction> CreateTestAction() override {
+ return std::make_unique<CommentHandlerAction>(this);
}
private:
OpenPOWER on IntegriCloud