19 cl::desc(
"Use colors in output (default=autodetect)"),
30 if (colorsEnabled(OS)) {
88 if (colorsEnabled(OS))
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
Compute iterated dominance frontiers using a linear time algorithm.
static raw_ostream & error()
Convenience method for printing "error: " to stderr.
virtual raw_ostream & changeColor(enum Colors Color, bool Bold=false, bool BG=false)
Changes the foreground color of text that will be output from this point forward. ...
static raw_ostream & warning()
Convenience method for printing "warning: " to stderr.
static raw_ostream & note()
Convenience method for printing "note: " to stderr.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
initializer< Ty > init(const Ty &Val)
virtual bool has_colors() const
This function determines if this stream is displayed and supports colors.
Color
A "color", which is either even or odd.
static cl::opt< cl::boolOrDefault > UseColor("color", cl::cat(ColorCategory), cl::desc("Use colors in output (default=autodetect)"), cl::init(cl::BOU_UNSET))
WithColor(raw_ostream &OS, HighlightColor S)
To be used like this: WithColor(OS, HighlightColor::String) << "text";.
virtual raw_ostream & resetColor()
Resets the colors to terminal defaults.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
cl::OptionCategory ColorCategory