[circular_raw_ostream] Delegate is_displayed to contained stream
authorTroy A. Johnson <troyj@cray.com>
Sat, 17 Aug 2019 14:20:41 +0000 (14:20 +0000)
committerTroy A. Johnson <troyj@cray.com>
Sat, 17 Aug 2019 14:20:41 +0000 (14:20 +0000)
commit30cde4e2e6a5b31e8246ad3fbc30d2e37ee04798
tree6505801112446aca4ad5757edabfc7062290eef4
parenta560bbf7a0374a6d1b9e8b6284037778cb135f1e
[circular_raw_ostream] Delegate is_displayed to contained stream

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() returns 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.

Differential Revision: https://reviews.llvm.org/D66026

llvm-svn: 369188
llvm/include/llvm/Support/circular_raw_ostream.h