File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
third-party/unittest/googletest/include/gtest Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -218,13 +218,24 @@ struct StreamPrinter {
218
218
// ADL (possibly involving implicit conversions).
219
219
// (Use SFINAE via return type, because it seems GCC < 12 doesn't handle name
220
220
// 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
+ // }
221
233
static auto PrintValue (const T& value, ::std::ostream* os)
222
- -> decltype((void )(*os << value)) {
234
+ -> decltype((void )(*os << ::llvm_gtest::printable( value) )) {
223
235
// Call streaming operator found by ADL, possibly with implicit conversions
224
236
// of the arguments.
225
237
// LLVM local change to support llvm printables.
226
238
//
227
- // *os << value;
228
239
*os << ::llvm_gtest::printable (value);
229
240
// LLVM local change end.
230
241
}
You can’t perform that action at this time.
0 commit comments