summaryrefslogtreecommitdiff
path: root/googlemock
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2023-03-07 03:05:23 -0800
committerCopybara-Service <copybara-worker@google.com>2023-03-07 03:06:06 -0800
commit1a727c27aa36c602b24bf170a301aec8686b88e8 (patch)
tree7a91c38670d6ce13d07b8fc854982b433b5d2a45 /googlemock
parente1ee0fa3e121e819c7a76d4d3b417de8f73ebfd7 (diff)
downloadgoogletest-git-1a727c27aa36c602b24bf170a301aec8686b88e8.tar.gz
Internal Code Change
PiperOrigin-RevId: 514678702 Change-Id: I5b0089d905152ccb85022be395ed340e42586234
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/include/gmock/internal/gmock-internal-utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h
index afbdce03..b5283ed0 100644
--- a/googlemock/include/gmock/internal/gmock-internal-utils.h
+++ b/googlemock/include/gmock/internal/gmock-internal-utils.h
@@ -311,7 +311,8 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers();
// crashes).
template <typename T>
inline T Invalid() {
- Assert(false, "", -1, "Internal error: attempt to return invalid value");
+ Assert(/*condition=*/false, /*file=*/"", /*line=*/-1,
+ "Internal error: attempt to return invalid value");
#if defined(__GNUC__) || defined(__clang__)
__builtin_unreachable();
#elif defined(_MSC_VER)