Add MemorySanitizer annotations in gtest printers. Also remove unused variable kPathSeparatorString.

This commit is contained in:
kosak
2013-12-03 22:38:22 +00:00
parent aa34ae2508
commit 37b97d1c93
3 changed files with 16 additions and 2 deletions

View File

@@ -782,6 +782,19 @@ using ::std::tuple_size;
# define GTEST_HAS_CXXABI_H_ 0
#endif
// A function level attribute to disable checking for use of uninitialized
// memory when built with MemorySanitizer.
#if defined(__clang__)
# if __has_feature(memory_sanitizer)
# define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ \
__attribute__((no_sanitize_memory))
# else
# define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_
# endif
#else
# define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_
#endif
namespace testing {
class Message;