From 952560d3ec06eae08347d5e54faa8e3192d41b4d Mon Sep 17 00:00:00 2001 From: Jeryl Vaz Date: Fri, 14 Apr 2023 11:15:21 +0200 Subject: Suppress a clang-tidy warning in the MATCHER_P macro --- 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 7c5d65c..8936e49 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -5544,6 +5544,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; \ -- cgit v0.12