diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-08-08 00:43:30 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-08-08 00:43:30 +0000 |
commit | 59c23c0bb5c704f95d980653cfd819c8a5b94b02 (patch) | |
tree | 08c354c576a75e44fb351c3c99936c6403fd3b6c | |
parent | 6663c7d5fc32613d7043a8ab82e1edfeec10f08f (diff) | |
download | bcm5719-llvm-59c23c0bb5c704f95d980653cfd819c8a5b94b02.tar.gz bcm5719-llvm-59c23c0bb5c704f95d980653cfd819c8a5b94b02.zip |
Forward resetColor() et al to the underlying stream.
llvm-svn: 187947
-rw-r--r-- | llvm/include/llvm/Support/FormattedStream.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/FormattedStream.h b/llvm/include/llvm/Support/FormattedStream.h index 18ee0483969..df1f2183e6c 100644 --- a/llvm/include/llvm/Support/FormattedStream.h +++ b/llvm/include/llvm/Support/FormattedStream.h @@ -129,6 +129,27 @@ public: /// getLine - Return the line number unsigned getLine() { return Position.second; } + + raw_ostream &resetColor() { + TheStream->resetColor(); + return *this; + } + + raw_ostream &reverseColor() { + TheStream->reverseColor(); + return *this; + } + + raw_ostream &changeColor(enum Colors Color, + bool Bold, + bool BG) { + TheStream->changeColor(Color, Bold, BG); + return *this; + } + + bool is_displayed() const { + return TheStream->is_displayed(); + } private: void releaseStream() { |