diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-08-13 21:24:08 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-08-13 21:24:08 +0000 |
commit | e438127b913cf6391d4dbe178f33b7a224150162 (patch) | |
tree | 7fa754e73dae5a6da87971f6b693707766d9bcb0 /clang/unittests/Tooling/CommentHandlerTest.cpp | |
parent | 9ae479c5218c5c04e2354f8a650d31ef3123197d (diff) | |
download | bcm5719-llvm-e438127b913cf6391d4dbe178f33b7a224150162.tar.gz bcm5719-llvm-e438127b913cf6391d4dbe178f33b7a224150162.zip |
Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable
llvm-svn: 244958
Diffstat (limited to 'clang/unittests/Tooling/CommentHandlerTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/CommentHandlerTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/CommentHandlerTest.cpp b/clang/unittests/Tooling/CommentHandlerTest.cpp index da5604524cd..b42b28b9c94 100644 --- a/clang/unittests/Tooling/CommentHandlerTest.cpp +++ b/clang/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 \"" |