diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-16 08:56:50 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-16 08:56:50 +0000 |
commit | 246de858e37a989a9cdf9b80d7434453b2c52e70 (patch) | |
tree | 184c3e25d00e5d1a6c7ff86b479689ecd810c5dc /include/llvm/Support/Process.h | |
parent | 4d66f4cc6ec5c5891cf2f626550f503d4b916351 (diff) | |
download | external_llvm-246de858e37a989a9cdf9b80d7434453b2c52e70.zip external_llvm-246de858e37a989a9cdf9b80d7434453b2c52e70.tar.gz external_llvm-246de858e37a989a9cdf9b80d7434453b2c52e70.tar.bz2 |
Reapply 'Add reverseColor to raw_ostream'.
To be used in printing unprintable source in clang diagnostics.
Patch by Seth Cantrell, with a minor fix for mingw by me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154805 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Process.h')
-rw-r--r-- | include/llvm/Support/Process.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/Process.h b/include/llvm/Support/Process.h index 3379922..d796b79 100644 --- a/include/llvm/Support/Process.h +++ b/include/llvm/Support/Process.h @@ -136,6 +136,10 @@ namespace sys { /// Same as OutputColor, but only enables the bold attribute. static const char *OutputBold(bool bg); + /// This function returns the escape sequence to reverse forground and + /// background colors. + static const char *OutputReverse(); + /// Resets the terminals colors, or returns an escape sequence to do so. static const char *ResetColor(); /// @} |