Skip to content

Commit

Permalink
Suppress a clang-tidy warning in the MATCHER_P macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jerylvaz committed Apr 14, 2023
1 parent 12a5852 commit 952560d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions googlemock/include/gmock/gmock-matchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -5544,6 +5544,7 @@ PolymorphicMatcher<internal::ExceptionMatcherImpl<Err>> ThrowsMessage(
\
private: \
::std::string FormatDescription(bool negation) const { \
/* NOLINTNEXTLINE readability-redundant-string-init */ \
::std::string gmock_description = (description); \
if (!gmock_description.empty()) { \
return gmock_description; \
Expand Down

0 comments on commit 952560d

Please sign in to comment.