googletest/googlemock/include/gmock
Abseil Team 3fa7f983c6 Shut up a Clang warning.
Clang warns on this pattern because it looks like the author might
have meant to use the value of the first part of the comma operator,
so it warns that it isn't being used. The cast here signals to Clang
that this behavior is intentional.

This was discovered while updating gmock in Android. Clang's -Wcomma
warning is on by default with either -Wall or -Werror, so users of
gmock with those on in combination with -Werror are unable to build
without this fix.

PiperOrigin-RevId: 495655990
Change-Id: Iaf27e2199669f5b6185a877738234e551b6b6556
2022-12-15 11:50:51 -08:00
..
internal Disables -Wunused-member-function and -Wused-but-marked-unused that trigger via MOCK_METHOD() and EXPECT_THAT() macros. 2022-11-29 08:44:15 -08:00
gmock-actions.h Workaround for Visual C++ error C2039 with std::tuple_element_t. 2022-10-12 10:31:07 -07:00
gmock-cardinalities.h Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gmock-function-mocker.h Disables -Wunused-member-function and -Wused-but-marked-unused that trigger via MOCK_METHOD() and EXPECT_THAT() macros. 2022-11-29 08:44:15 -08:00
gmock-matchers.h Shut up a Clang warning. 2022-12-15 11:50:51 -08:00
gmock-more-actions.h gmock: improve SFINAE for actions involving arguments. 2022-04-04 14:38:58 -07:00
gmock-more-matchers.h Add IsEmpty overload for C-style strings 2022-07-25 14:38:26 -07:00
gmock-nice-strict.h Work around a maybe-uninitialized warning under GCC 12 2022-06-01 14:08:04 -07:00
gmock-spec-builders.h Remove incorrect GTEST_ATTRIBUTE_UNUSED_ from InSequence class. 2022-11-08 07:58:14 -08:00
gmock.h Consistently apply IWYU pragmas across googletest and googlemock headers 2022-01-18 08:11:11 -08:00