Page MenuHomePhabricator

Make circular_raw_ostream delegate is_displayed to contained stream

Authored by troyj on Aug 9 2019, 1:17 PM.



raw_ostream has an is_displayed() member function that determines if the stream is connected to a console for display or is connected to a file/pipe. By default, is_displayed() return false, and derived classes like raw_fd_ostream override it. Because circular_raw_ostream wraps another stream, its result for is_displayed() should be the same as that stream.

Diff Detail

Event Timeline

troyj created this revision.Aug 9 2019, 1:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2019, 1:17 PM
jkorous accepted this revision.Aug 9 2019, 4:33 PM
jkorous added a subscriber: jkorous.


This revision is now accepted and ready to land.Aug 9 2019, 4:33 PM
This revision was automatically updated to reflect the committed changes.