Skip to content

Commit c7e1a49

Browse files
committed
amend! amend! amend! Bump googletest to v1.14.0
Fix unused function issue which breaks a few bots.
1 parent 2fe51a3 commit c7e1a49

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

third-party/unittest/googletest/include/gtest/gtest-printers.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,24 @@ struct StreamPrinter {
218218
// ADL (possibly involving implicit conversions).
219219
// (Use SFINAE via return type, because it seems GCC < 12 doesn't handle name
220220
// lookup properly when we do it in the template parameter list.)
221+
222+
// LLVM local change to support llvm printables.
223+
//
224+
// static auto PrintValue(const T& value, ::std::ostream* os)
225+
// -> decltype((void)(*os << value)) {
226+
// // Call streaming operator found by ADL, possibly with implicit conversions
227+
// // of the arguments.
228+
// // LLVM local change to support llvm printables.
229+
// //
230+
// *os << value;
231+
// // LLVM local change end.
232+
// }
221233
static auto PrintValue(const T& value, ::std::ostream* os)
222-
-> decltype((void)(*os << value)) {
234+
-> decltype((void)(*os << ::llvm_gtest::printable(value))) {
223235
// Call streaming operator found by ADL, possibly with implicit conversions
224236
// of the arguments.
225237
// LLVM local change to support llvm printables.
226238
//
227-
// *os << value;
228239
*os << ::llvm_gtest::printable(value);
229240
// LLVM local change end.
230241
}

0 commit comments

Comments
 (0)