|
LLVM
5.0.0
|
An RAII object that temporarily switches an output stream to a specific color. More...
#include "DebugInfo/DWARF/SyntaxHighlighting.h"
Public Member Functions | |
| WithColor (raw_ostream &OS, enum HighlightColor Type) | |
| To be used like this: WithColor(OS, syntax::String) << "text";. More... | |
| ~WithColor () | |
| raw_ostream & | get () |
| operator raw_ostream & () | |
An RAII object that temporarily switches an output stream to a specific color.
Definition at line 25 of file SyntaxHighlighting.h.
| WithColor::WithColor | ( | raw_ostream & | OS, |
| enum HighlightColor | Type | ||
| ) |
To be used like this: WithColor(OS, syntax::String) << "text";.
Definition at line 23 of file SyntaxHighlighting.cpp.
References llvm::dwarf::syntax::Address, llvm::raw_ostream::BLUE, llvm::cl::BOU_TRUE, llvm::cl::BOU_UNSET, llvm::raw_ostream::changeColor(), llvm::raw_ostream::CYAN, llvm::dwarf::syntax::Enumerator, llvm::raw_ostream::GREEN, llvm::raw_ostream::has_colors(), llvm::dwarf::syntax::Macro, llvm::raw_ostream::MAGENTA, llvm::raw_ostream::RED, llvm::dwarf::syntax::String, UseColor, and llvm::raw_ostream::YELLOW.
| WithColor::~WithColor | ( | ) |
Definition at line 37 of file SyntaxHighlighting.cpp.
References llvm::cl::BOU_TRUE, llvm::cl::BOU_UNSET, llvm::raw_ostream::has_colors(), llvm::raw_ostream::resetColor(), and UseColor.
|
inline |
Definition at line 33 of file SyntaxHighlighting.h.
Referenced by llvm::DWARFDebugMacro::dump(), llvm::DWARFFormValue::dump(), llvm::DWARFDie::dump(), and dumpAttribute().
|
inline |
Definition at line 34 of file SyntaxHighlighting.h.
1.8.6