r244958 - Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 14:24:08 PDT 2015


Author: dblaikie
Date: Thu Aug 13 16:24:08 2015
New Revision: 244958

URL: http://llvm.org/viewvc/llvm-project?rev=244958&view=rev
Log:
Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable

Modified:
    cfe/trunk/unittests/Tooling/CommentHandlerTest.cpp

Modified: cfe/trunk/unittests/Tooling/CommentHandlerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/CommentHandlerTest.cpp?rev=244958&r1=244957&r2=244958&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/CommentHandlerTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/CommentHandlerTest.cpp Thu Aug 13 16:24:08 2015
@@ -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 \""




More information about the cfe-commits mailing list