An RAII object that temporarily switches an output stream to a specific color.
Synopsis
Declared in <llvm/Support/WithColor.h>
class WithColor;
Type Aliases
Name |
Description |
Predicate that decides whether colors should be auto‐enabled for a stream. |
Member Functions
Name |
Description |
|
Constructors |
|
Restore the stream's previous color state. |
Change the color of text that will be output from this point forward. |
|
Determine whether colors are displayed. |
|
Return the underlying output stream. |
|
Reset the colors to terminal defaults. Call this when you are done outputting colored text, or before program exit. |
|
Convert to the underlying output stream. |
|
Write |
Static Member Functions
Name |
Description |
Retrieve the default color auto detection function. |
|
Implement default handling for Error. Print "error: " to stderr. |
|
Implement default handling for Warning. Print "warning: " to stderr. |
|
|
|
|
|
|
|
Change the global auto detection function. |
|
|
Created with MrDocs