Skip to content

Commit 8b4d4be

Browse files
authored
[NFC][ADT] Remove << operators from StringRefTest (#105500)
- Remove ostream << operators for StringRef and StringRef pair from StringTest. Both of these are natively supported by googletest framework.
1 parent 6257a98 commit 8b4d4be

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

llvm/unittests/ADT/StringRefTest.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,6 @@
1616
#include "gtest/gtest.h"
1717
using namespace llvm;
1818

19-
namespace llvm {
20-
21-
std::ostream &operator<<(std::ostream &OS, const StringRef &S) {
22-
OS << S.str();
23-
return OS;
24-
}
25-
26-
std::ostream &operator<<(std::ostream &OS,
27-
const std::pair<StringRef, StringRef> &P) {
28-
OS << "(" << P.first << ", " << P.second << ")";
29-
return OS;
30-
}
31-
32-
}
33-
3419
// Check that we can't accidentally assign a temporary std::string to a
3520
// StringRef. (Unfortunately we can't make use of the same thing with
3621
// constructors.)

0 commit comments

Comments
 (0)