aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/FormattedStream.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-08-08 00:43:30 +0000
committerTed Kremenek <kremenek@apple.com>2013-08-08 00:43:30 +0000
commitbf473e22406143bcce9613b09f54adc1ba9301b8 (patch)
tree70e867837653b13028f74873a8850e81c4f4e129 /include/llvm/Support/FormattedStream.h
parent35b6edfbeaf0f82954e0b308e1c6693e3d39a9e1 (diff)
downloadexternal_llvm-bf473e22406143bcce9613b09f54adc1ba9301b8.zip
external_llvm-bf473e22406143bcce9613b09f54adc1ba9301b8.tar.gz
external_llvm-bf473e22406143bcce9613b09f54adc1ba9301b8.tar.bz2
Forward resetColor() et al to the underlying stream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FormattedStream.h')
-rw-r--r--include/llvm/Support/FormattedStream.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/llvm/Support/FormattedStream.h b/include/llvm/Support/FormattedStream.h
index 18ee048..df1f218 100644
--- a/include/llvm/Support/FormattedStream.h
+++ b/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() {