aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2024-08-21 11:38:13 -0700
committerGitHub <noreply@github.com>2024-08-21 11:38:13 -0700
commit8b4d4bee2a45f637fb4dcda49b592374e93a6480 (patch)
tree545fbbdbfc3ef1a7a4b5e1bd9a44b1759e959b63 /llvm/unittests/ADT/StringRefTest.cpp
parent6257a98b258a3f17b78af31bf43009a559c5dd1d (diff)
downloadllvm-8b4d4bee2a45f637fb4dcda49b592374e93a6480.zip
llvm-8b4d4bee2a45f637fb4dcda49b592374e93a6480.tar.gz
llvm-8b4d4bee2a45f637fb4dcda49b592374e93a6480.tar.bz2
[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.
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r--llvm/unittests/ADT/StringRefTest.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp
index 40351c9..a0529b0 100644
--- a/llvm/unittests/ADT/StringRefTest.cpp
+++ b/llvm/unittests/ADT/StringRefTest.cpp
@@ -16,21 +16,6 @@
#include "gtest/gtest.h"
using namespace llvm;
-namespace llvm {
-
-std::ostream &operator<<(std::ostream &OS, const StringRef &S) {
- OS << S.str();
- return OS;
-}
-
-std::ostream &operator<<(std::ostream &OS,
- const std::pair<StringRef, StringRef> &P) {
- OS << "(" << P.first << ", " << P.second << ")";
- return OS;
-}
-
-}
-
// Check that we can't accidentally assign a temporary std::string to a
// StringRef. (Unfortunately we can't make use of the same thing with
// constructors.)