llvm.org GIT mirror llvm / ccc0e67
Revert r326092: [gtest] Add PrintTo overload for StringRef. It seems to break the following buildbot: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/24729 Will resubmit after investigating and fixing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326096 91177308-0d34-0410-b5e6-96231b3b80d8 Ilya Biryukov 2 years ago
1 changed file(s) with 0 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
3838 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
3939 #define GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_
4040
41 #include "llvm/ADT/StringRef.h"
42 #include "llvm/Support/raw_os_ostream.h"
43 #include
44
45 namespace llvm {
46 // Without this overload StringRef will be printed as a generic container.
47 inline void PrintTo(const llvm::StringRef &Val, std::ostream *S) {
48 assert(S);
49 llvm::raw_os_ostream OS(*S);
50 OS << Val;
51 }
52 } // namespace llvm
53
5441 #endif // GTEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PRINTERS_H_