summaryrefslogtreecommitdiffstats
path: root/unittests/Tooling/CommentHandlerTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Tooling/CommentHandlerTest.cpp')
-rw-r--r--unittests/Tooling/CommentHandlerTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Tooling/CommentHandlerTest.cpp b/unittests/Tooling/CommentHandlerTest.cpp
index da56045..b42b28b 100644
--- a/unittests/Tooling/CommentHandlerTest.cpp
+++ b/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