summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeryl Vaz <jerylvaz@yahoo.com>2023-04-14 11:15:21 +0200
committerJeryl Vaz <jerylvaz@yahoo.com>2023-04-14 11:15:21 +0200
commit952560d3ec06eae08347d5e54faa8e3192d41b4d (patch)
treee4e9e6f76ee4c3c571de06073d2f67561492ab2e
parent12a5852e451baabc79c63a86c634912c563d57bc (diff)
downloadgoogletest-git-952560d3ec06eae08347d5e54faa8e3192d41b4d.tar.gz
Suppress a clang-tidy warning in the MATCHER_P macro
-rw-r--r--googlemock/include/gmock/gmock-matchers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h
index 7c5d65cf..8936e497 100644
--- a/googlemock/include/gmock/gmock-matchers.h
+++ b/googlemock/include/gmock/gmock-matchers.h
@@ -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; \