[llvm] r187947 - Forward resetColor() et al to the underlying stream.
Ted Kremenek
kremenek at apple.com
Wed Aug 7 17:43:30 PDT 2013
Author: kremenek
Date: Wed Aug 7 19:43:30 2013
New Revision: 187947
URL: http://llvm.org/viewvc/llvm-project?rev=187947&view=rev
Log:
Forward resetColor() et al to the underlying stream.
Modified:
llvm/trunk/include/llvm/Support/FormattedStream.h
Modified: llvm/trunk/include/llvm/Support/FormattedStream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FormattedStream.h?rev=187947&r1=187946&r2=187947&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FormattedStream.h (original)
+++ llvm/trunk/include/llvm/Support/FormattedStream.h Wed Aug 7 19:43:30 2013
@@ -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() {
More information about the llvm-commits
mailing list