mirror of
https://git.mirrors.martin98.com/https://github.com/google/googletest.git
synced 2025-08-10 15:18:58 +08:00
Suppress a clang-tidy warning in the MATCHER_P macro
This commit is contained in:
parent
12a5852e45
commit
952560d3ec
@ -5544,6 +5544,7 @@ PolymorphicMatcher<internal::ExceptionMatcherImpl<Err>> ThrowsMessage(
|
|||||||
\
|
\
|
||||||
private: \
|
private: \
|
||||||
::std::string FormatDescription(bool negation) const { \
|
::std::string FormatDescription(bool negation) const { \
|
||||||
|
/* NOLINTNEXTLINE readability-redundant-string-init */ \
|
||||||
::std::string gmock_description = (description); \
|
::std::string gmock_description = (description); \
|
||||||
if (!gmock_description.empty()) { \
|
if (!gmock_description.empty()) { \
|
||||||
return gmock_description; \
|
return gmock_description; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user