Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable
llvm-svn: 244958
This commit is contained in:
parent
9ae479c521
commit
e438127b91
|
@ -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 \""
|
||||
|
|
Loading…
Reference in New Issue