diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-16 07:07:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-16 07:07:38 +0000 |
commit | 7d31d75a77bb7a5a47f21d4c311ba13be86caa6f (patch) | |
tree | 54284d4bcc79bee085dba49e1ad5ba429a250013 /include/llvm/Support/Process.h | |
parent | 92040745984933f51b7c36b8b93f0e5a1931feee (diff) |
Add reverseColor to raw_ostream.
To be used in printing unprintable source in clang diagnostics.
Patch by Seth Cantrell!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154800 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 33799229ff..d796b7906d 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(); /// @} |