@@ -5445,47 +5445,47 @@ PolymorphicMatcher<internal::ExceptionMatcherImpl<Err>> ThrowsMessage(
54455445 ::testing::internal::MakePredicateFormatterFromMatcher (matcher), value)
54465446
54475447// MATCHER* macros itself are listed below.
5448- #define MATCHER (name, description ) \
5449- class name ##Matcher \
5450- : public ::testing::internal::MatcherBaseImpl<name##Matcher> { \
5451- public: \
5452- template <typename arg_type> \
5453- class gmock_Impl : public ::testing::MatcherInterface<const arg_type&> { \
5454- public: \
5455- gmock_Impl () {} \
5456- bool MatchAndExplain ( \
5457- const arg_type& arg, \
5458- ::testing::MatchResultListener* result_listener) const override ; \
5459- void DescribeTo (::std::ostream* gmock_os) const override { \
5460- *gmock_os << FormatDescription (false ); \
5461- } \
5462- void DescribeNegationTo (::std::ostream* gmock_os) const override { \
5463- *gmock_os << FormatDescription (true ); \
5464- } \
5465- \
5466- private: \
5467- ::std::string FormatDescription (bool negation) const { \
5468- /* NOLINTNEXTLINE readability-redundant-string-init */ \
5469- ::std::string gmock_description = (description); \
5470- if (!gmock_description.empty ()) { \
5471- return gmock_description; \
5472- } \
5473- return ::testing::internal::FormatMatcherDescription (negation, #name, \
5474- {}, {}); \
5475- } \
5476- }; \
5477- }; \
5478- inline name##Matcher GMOCK_INTERNAL_WARNING_PUSH () \
5479- GMOCK_INTERNAL_WARNING_CLANG(ignored, " -Wunused-function" ) \
5480- GMOCK_INTERNAL_WARNING_CLANG(ignored, " -Wunused-member-function" ) \
5481- name GMOCK_INTERNAL_WARNING_POP()() { \
5482- return {}; \
5483- } \
5484- template <typename arg_type> \
5485- bool name##Matcher::gmock_Impl<arg_type>::MatchAndExplain( \
5486- const arg_type& arg, \
5487- ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) \
5488- const
5448+ #define MATCHER (name, description ) \
5449+ class name ##Matcher \
5450+ : public ::testing::internal::MatcherBaseImpl<name##Matcher> { \
5451+ public: \
5452+ template <typename arg_type> \
5453+ class gmock_Impl : public ::testing::MatcherInterface<const arg_type&> { \
5454+ public: \
5455+ gmock_Impl () {} \
5456+ bool MatchAndExplain ( \
5457+ const arg_type& arg, \
5458+ ::testing::MatchResultListener* result_listener) const override ; \
5459+ void DescribeTo (::std::ostream* gmock_os) const override { \
5460+ *gmock_os << FormatDescription (false ); \
5461+ } \
5462+ void DescribeNegationTo (::std::ostream* gmock_os) const override { \
5463+ *gmock_os << FormatDescription (true ); \
5464+ } \
5465+ \
5466+ private: \
5467+ ::std::string FormatDescription (bool negation) const { \
5468+ /* NOLINTNEXTLINE readability-redundant-string-init */ \
5469+ ::std::string gmock_description = (description); \
5470+ if (!gmock_description.empty ()) { \
5471+ return gmock_description; \
5472+ } \
5473+ return ::testing::internal::FormatMatcherDescription (negation, #name, \
5474+ {}, {}); \
5475+ } \
5476+ }; \
5477+ }; \
5478+ inline name##Matcher GMOCK_INTERNAL_WARNING_PUSH () \
5479+ GMOCK_INTERNAL_WARNING_CLANG(ignored, " -Wunused-function" ) \
5480+ GMOCK_INTERNAL_WARNING_CLANG(ignored, " -Wunused-member-function" ) \
5481+ name GMOCK_INTERNAL_WARNING_POP()() { \
5482+ return {}; \
5483+ } \
5484+ template <typename arg_type> \
5485+ bool name##Matcher::gmock_Impl<arg_type>::MatchAndExplain( \
5486+ const arg_type& arg, \
5487+ GTEST_INTERNAL_ATTRIBUTE_MAYBE_UNUSED ::testing::MatchResultListener* \
5488+ result_listener) const
54895489
54905490#define MATCHER_P (name, p0, description ) \
54915491 GMOCK_INTERNAL_MATCHER (name, name##MatcherP, description, (#p0), (p0))
@@ -5567,11 +5567,11 @@ PolymorphicMatcher<internal::ExceptionMatcherImpl<Err>> ThrowsMessage(
55675567 } \
55685568 template <GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAMS(args)> \
55695569 template <typename arg_type> \
5570- bool full_name<GMOCK_INTERNAL_MATCHER_TYPE_PARAMS(args)>::gmock_Impl< \
5571- arg_type>::MatchAndExplain(const arg_type& arg, \
5572- ::testing::MatchResultListener* \
5573- result_listener GTEST_ATTRIBUTE_UNUSED_) \
5574- const
5570+ bool full_name<GMOCK_INTERNAL_MATCHER_TYPE_PARAMS(args)>:: \
5571+ gmock_Impl< arg_type>::MatchAndExplain( \
5572+ const arg_type& arg, \
5573+ GTEST_INTERNAL_ATTRIBUTE_MAYBE_UNUSED ::testing:: \
5574+ MatchResultListener* result_listener) const
55755575
55765576#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAMS (args ) \
55775577 GMOCK_PP_TAIL ( \
0 commit comments