]> granicus.if.org Git - llvm/commit
[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)
commitd5fa059858cbe65f1d43d3e2e9e124d48356a0f5
treee30c24ae9a4b11f0f0798356666b0bffc55f89c0
parentd20494f7b49e4386d69bceaae5714e1790856211
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369188 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/circular_raw_ostream.h