Skip to content

Commit

Permalink
amend! amend! amend! Bump googletest to v1.14.0
Browse files Browse the repository at this point in the history
Fix unused function issue which breaks a few bots.
  • Loading branch information
zeroomega committed Sep 13, 2023
1 parent 2fe51a3 commit c7e1a49
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions third-party/unittest/googletest/include/gtest/gtest-printers.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,24 @@ struct StreamPrinter {
// ADL (possibly involving implicit conversions).
// (Use SFINAE via return type, because it seems GCC < 12 doesn't handle name
// lookup properly when we do it in the template parameter list.)

// LLVM local change to support llvm printables.
//
// static auto PrintValue(const T& value, ::std::ostream* os)
// -> decltype((void)(*os << value)) {
// // Call streaming operator found by ADL, possibly with implicit conversions
// // of the arguments.
// // LLVM local change to support llvm printables.
// //
// *os << value;
// // LLVM local change end.
// }
static auto PrintValue(const T& value, ::std::ostream* os)
-> decltype((void)(*os << value)) {
-> decltype((void)(*os << ::llvm_gtest::printable(value))) {
// Call streaming operator found by ADL, possibly with implicit conversions
// of the arguments.
// LLVM local change to support llvm printables.
//
// *os << value;
*os << ::llvm_gtest::printable(value);
// LLVM local change end.
}
Expand Down

0 comments on commit c7e1a49

Please sign in to comment.