Merge branch 'master' into fix-core-dump-shared
This commit is contained in:
		@@ -5,7 +5,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
 | 
					# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
 | 
				
			||||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
 | 
					- if [ "$CXX" = "g++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
 | 
				
			||||||
# /usr/bin/clang is 3.4, lets override with modern one.
 | 
					# /usr/bin/clang is 3.4, lets override with modern one.
 | 
				
			||||||
- if [ "$CXX" = "clang++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-3.7" CC="clang-3.7"; ln -sf /usr/bin/ccache /$HOME/bin/$CXX; ln -sf /usr/bin/ccache /$HOME/bin/$CC; fi
 | 
					- if [ "$CXX" = "clang++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-3.7" CC="clang-3.7"; ln -sf /usr/bin/ccache /$HOME/bin/$CXX; ln -sf /usr/bin/ccache /$HOME/bin/$CC; fi
 | 
				
			||||||
# ccache on OS X needs installation first
 | 
					# ccache on OS X needs installation first
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -74,6 +74,8 @@ include_directories("${gmock_SOURCE_DIR}/include"
 | 
				
			|||||||
# <= VS 2010  <= 10        <= 1600         Use Google Tests's own tuple.
 | 
					# <= VS 2010  <= 10        <= 1600         Use Google Tests's own tuple.
 | 
				
			||||||
# VS 2012     11           1700            std::tr1::tuple + _VARIADIC_MAX=10
 | 
					# VS 2012     11           1700            std::tr1::tuple + _VARIADIC_MAX=10
 | 
				
			||||||
# VS 2013     12           1800            std::tr1::tuple
 | 
					# VS 2013     12           1800            std::tr1::tuple
 | 
				
			||||||
 | 
					# VS 2015     14           1900            std::tuple
 | 
				
			||||||
 | 
					# VS 2017     15           >= 1910         std::tuple
 | 
				
			||||||
if (MSVC AND MSVC_VERSION EQUAL 1700)
 | 
					if (MSVC AND MSVC_VERSION EQUAL 1700)
 | 
				
			||||||
  add_definitions(/D _VARIADIC_MAX=10)
 | 
					  add_definitions(/D _VARIADIC_MAX=10)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -83,6 +83,8 @@ include_directories(
 | 
				
			|||||||
# <= VS 2010  <= 10        <= 1600         Use Google Tests's own tuple.
 | 
					# <= VS 2010  <= 10        <= 1600         Use Google Tests's own tuple.
 | 
				
			||||||
# VS 2012     11           1700            std::tr1::tuple + _VARIADIC_MAX=10
 | 
					# VS 2012     11           1700            std::tr1::tuple + _VARIADIC_MAX=10
 | 
				
			||||||
# VS 2013     12           1800            std::tr1::tuple
 | 
					# VS 2013     12           1800            std::tr1::tuple
 | 
				
			||||||
 | 
					# VS 2015     14           1900            std::tuple
 | 
				
			||||||
 | 
					# VS 2017     15           >= 1910         std::tuple
 | 
				
			||||||
if (MSVC AND MSVC_VERSION EQUAL 1700)
 | 
					if (MSVC AND MSVC_VERSION EQUAL 1700)
 | 
				
			||||||
  add_definitions(/D _VARIADIC_MAX=10)
 | 
					  add_definitions(/D _VARIADIC_MAX=10)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -642,6 +642,9 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
 | 
				
			|||||||
# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR)
 | 
					# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR)
 | 
				
			||||||
// STLport, provided with the Android NDK, has neither <tr1/tuple> or <tuple>.
 | 
					// STLport, provided with the Android NDK, has neither <tr1/tuple> or <tuple>.
 | 
				
			||||||
#  define GTEST_HAS_TR1_TUPLE 0
 | 
					#  define GTEST_HAS_TR1_TUPLE 0
 | 
				
			||||||
 | 
					# elif defined(_MSC_VER) && (_MSC_VER >= 1910)
 | 
				
			||||||
 | 
					// Prevent `warning C4996: 'std::tr1': warning STL4002: The non-Standard std::tr1 namespace and TR1-only machinery are deprecated and will be REMOVED.`
 | 
				
			||||||
 | 
					#  define GTEST_HAS_TR1_TUPLE 0
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
// The user didn't tell us not to do it, so we assume it's OK.
 | 
					// The user didn't tell us not to do it, so we assume it's OK.
 | 
				
			||||||
#  define GTEST_HAS_TR1_TUPLE 1
 | 
					#  define GTEST_HAS_TR1_TUPLE 1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -180,7 +180,10 @@ static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) {
 | 
				
			|||||||
        *os << static_cast<char>(c);
 | 
					        *os << static_cast<char>(c);
 | 
				
			||||||
        return kAsIs;
 | 
					        return kAsIs;
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        *os << "\\x" + String::FormatHexInt(static_cast<UnsignedChar>(c));
 | 
					        ostream::fmtflags flags = os->flags();
 | 
				
			||||||
 | 
					        *os << "\\x" << std::hex << std::uppercase
 | 
				
			||||||
 | 
					            << static_cast<int>(static_cast<UnsignedChar>(c));
 | 
				
			||||||
 | 
					        os->flags(flags);
 | 
				
			||||||
        return kHexEscape;
 | 
					        return kHexEscape;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user