Skip to content

Commit

Permalink
[NFC][ADT] Remove << operators from StringRefTest (#105500)
Browse files Browse the repository at this point in the history
- Remove ostream << operators for StringRef and StringRef pair from
StringTest.
  Both of these are natively supported by googletest framework.
  • Loading branch information
jurahul authored Aug 21, 2024
1 parent 6257a98 commit 8b4d4be
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions llvm/unittests/ADT/StringRefTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down

0 comments on commit 8b4d4be

Please sign in to comment.