Skip to content

Commit

Permalink
Forward resetColor() et al to the underlying stream.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187947 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
tkremenek committed Aug 8, 2013
1 parent 35b6edf commit bf473e2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions include/llvm/Support/FormattedStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,27 @@ class formatted_raw_ostream : public raw_ostream {

/// 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() {
Expand Down

0 comments on commit bf473e2

Please sign in to comment.