diff options
author | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-12-03 22:38:22 +0000 |
---|---|---|
committer | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-12-03 22:38:22 +0000 |
commit | 022d52c97955a7c499435c3a9e03a3c74b7ebc29 (patch) | |
tree | 0949bd9f08f265d8b29d513095775a69964dee0e /src/gtest-printers.cc | |
parent | bc830d325d07a8a943386446139be3ab3565e038 (diff) | |
download | gtest-022d52c97955a7c499435c3a9e03a3c74b7ebc29.tar.gz gtest-022d52c97955a7c499435c3a9e03a3c74b7ebc29.tar.bz2 gtest-022d52c97955a7c499435c3a9e03a3c74b7ebc29.tar.xz |
Add MemorySanitizer annotations in gtest printers. Also remove unused variable kPathSeparatorString.
git-svn-id: http://googletest.googlecode.com/svn/trunk@669 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'src/gtest-printers.cc')
-rw-r--r-- | src/gtest-printers.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtest-printers.cc b/src/gtest-printers.cc index 75fa408..0db5b44 100644 --- a/src/gtest-printers.cc +++ b/src/gtest-printers.cc @@ -56,6 +56,7 @@ namespace { using ::std::ostream; // Prints a segment of bytes in the given object. +GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start, size_t count, ostream* os) { char text[5] = ""; @@ -252,6 +253,7 @@ void PrintTo(wchar_t wc, ostream* os) { // The array starts at begin, the length is len, it may include '\0' characters // and may not be NUL-terminated. template <typename CharType> +GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ static void PrintCharsAsStringTo( const CharType* begin, size_t len, ostream* os) { const char* const kQuoteBegin = sizeof(CharType) == 1 ? "\"" : "L\""; @@ -273,6 +275,7 @@ static void PrintCharsAsStringTo( // Prints a (const) char/wchar_t array of 'len' elements, starting at address // 'begin'. CharType must be either char or wchar_t. template <typename CharType> +GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ static void UniversalPrintCharArray( const CharType* begin, size_t len, ostream* os) { // The code |