summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/CommentHandlerTest.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-08-13 21:24:08 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-08-13 21:24:08 +0000
commite438127b913cf6391d4dbe178f33b7a224150162 (patch)
tree7fa754e73dae5a6da87971f6b693707766d9bcb0 /clang/unittests/Tooling/CommentHandlerTest.cpp
parent9ae479c5218c5c04e2354f8a650d31ef3123197d (diff)
downloadbcm5719-llvm-e438127b913cf6391d4dbe178f33b7a224150162.tar.gz
bcm5719-llvm-e438127b913cf6391d4dbe178f33b7a224150162.zip
Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable
llvm-svn: 244958
Diffstat (limited to 'clang/unittests/Tooling/CommentHandlerTest.cpp')
-rw-r--r--clang/unittests/Tooling/CommentHandlerTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/CommentHandlerTest.cpp b/clang/unittests/Tooling/CommentHandlerTest.cpp
index da5604524cd..b42b28b9c94 100644
--- a/clang/unittests/Tooling/CommentHandlerTest.cpp
+++ b/clang/unittests/Tooling/CommentHandlerTest.cpp
@@ -97,6 +97,10 @@ public:
: Current(Comments.begin()), End(Comments.end()), PP(PP)
{ }
+ CommentVerifier(CommentVerifier &&C) : Current(C.Current), End(C.End), PP(C.PP) {
+ C.Current = C.End;
+ }
+
~CommentVerifier() {
if (Current != End) {
EXPECT_TRUE(Current == End) << "Unexpected comment \""
OpenPOWER on IntegriCloud