From 43cf52911aee7eb31a4d9e1f50aa4b9b4467a607 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Thu, 8 Jul 2021 05:12:46 -0400 Subject: [PATCH] Googletest export Suppress a clang-tidy warning in the MATCHER(name, description) macro. PiperOrigin-RevId: 383587271 --- googlemock/include/gmock/gmock-matchers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index f1bb22ca..3c191ba5 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -5400,6 +5400,7 @@ PolymorphicMatcher> 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; \