From: David Blaikie Date: Thu, 13 Aug 2015 21:24:08 +0000 (+0000) Subject: Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=300fcb5e2ece10220bc0c7a14398d20726cb86e8;p=clang Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244958 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Tooling/CommentHandlerTest.cpp b/unittests/Tooling/CommentHandlerTest.cpp index da5604524c..b42b28b9c9 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 \""