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

llvm-svn: 244958
This commit is contained in:
David Blaikie 2015-08-13 21:24:08 +00:00
parent 9ae479c521
commit e438127b91
1 changed files with 4 additions and 0 deletions

View File

@ -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 \""