[llvm] eaf6c22 - Add a default copy constructor for -Wdeprecated-copy warnings.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 14:17:51 PST 2019
Author: Eric Christopher
Date: 2019-12-05T14:16:04-08:00
New Revision: eaf6c22bf411b07c17d204a7345fc62833120b0b
URL: https://github.com/llvm/llvm-project/commit/eaf6c22bf411b07c17d204a7345fc62833120b0b
DIFF: https://github.com/llvm/llvm-project/commit/eaf6c22bf411b07c17d204a7345fc62833120b0b.diff
LOG: Add a default copy constructor for -Wdeprecated-copy warnings.
Added:
Modified:
llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
Removed:
################################################################################
diff --git a/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h b/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
index ec8c237e2540..865cdc7da108 100644
--- a/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
+++ b/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
@@ -3589,6 +3589,8 @@ class BoundSecondMatcher {
GTEST_LOG_(FATAL) << "BoundSecondMatcher should never be assigned.";
}
+ BoundSecondMatcher(const BoundSecondMatcher &) = default;
+
private:
template <typename T>
class Impl : public MatcherInterface<T> {
More information about the llvm-commits
mailing list