From 7c2bd3af981e9f257a0b61ce664953008c105dad Mon Sep 17 00:00:00 2001 From: Krystian Kuzniarek Date: Sat, 7 Sep 2019 06:08:28 +0200 Subject: square away the stuff that hasn't been merged in a manual review This fixes up ab8f346b (a manual merge) that has abandoned some things from PR #2395. --- googlemock/include/gmock/gmock-matchers.h | 4 ++-- googlemock/include/gmock/internal/gmock-internal-utils.h | 2 -- googlemock/test/gmock-internal-utils_test.cc | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index bf9eb20..9bff5a7 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -1607,8 +1607,8 @@ class PointeeMatcher { template class Impl : public MatcherInterface { public: - typedef typename PointeeOf::type>::type>::type Pointee; + typedef typename PointeeOf::type + Pointee; explicit Impl(const InnerMatcher& matcher) : matcher_(MatcherCast(matcher)) {} diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index fdc049c..d012e71 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -334,8 +334,6 @@ class WithoutMatchers { // Internal use only: access the singleton instance of WithoutMatchers. GTEST_API_ WithoutMatchers GetWithoutMatchers(); -// Type traits. - // Disable MSVC warnings for infinite recursion, since in this case the // the recursion is unreachable. #ifdef _MSC_VER diff --git a/googlemock/test/gmock-internal-utils_test.cc b/googlemock/test/gmock-internal-utils_test.cc index d000e69..19ba6fe 100644 --- a/googlemock/test/gmock-internal-utils_test.cc +++ b/googlemock/test/gmock-internal-utils_test.cc @@ -40,7 +40,6 @@ #include #include #include -#include #include #include "gmock/gmock.h" -- cgit v0.12 From 3339b97c6a7fb908cd343ff8251d86782ea264a8 Mon Sep 17 00:00:00 2001 From: Krystian Kuzniarek Date: Mon, 16 Sep 2019 19:11:20 +0200 Subject: square away the stuff that hasn't been merged in a manual review This fixes up f2fb48c3 (a manual merge) that has abandoned some things from PR #2407. --- googletest/docs/advanced.md | 2 +- googletest/include/gtest/gtest.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index 3e5f779..c30ef85 100644 --- a/googletest/docs/advanced.md +++ b/googletest/docs/advanced.md @@ -465,7 +465,7 @@ You can call the function to assert that types `T1` and `T2` are the same. The function does nothing if the assertion is satisfied. If the types are different, the function call will fail to compile, the compiler error message will say that -`type1 and type2 are not the same type` and most likely (depending on the compiler) +`T1 and T2 are not the same type` and most likely (depending on the compiler) show you the actual values of `T1` and `T2`. This is mainly useful inside template code. diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index dbe5b1c..37a1762 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -2298,8 +2298,7 @@ class GTEST_API_ ScopedTrace { // to cause a compiler error. template constexpr bool StaticAssertTypeEq() noexcept { - static_assert(std::is_same::value, - "type1 and type2 are not the same type"); + static_assert(std::is_same::value, "T1 and T2 are not the same type"); return true; } -- cgit v0.12