LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::dwarf::syntax::WithColor Class Reference

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_ostreamget ()
 
 operator raw_ostream & ()
 

Detailed Description

An RAII object that temporarily switches an output stream to a specific color.

Definition at line 35 of file SyntaxHighlighting.h.

Constructor & Destructor Documentation

◆ WithColor()

WithColor::WithColor ( raw_ostream OS,
enum HighlightColor  Type 
)

◆ ~WithColor()

WithColor::~WithColor ( )

Member Function Documentation

◆ get()

raw_ostream& llvm::dwarf::syntax::WithColor::get ( )
inline

Definition at line 43 of file SyntaxHighlighting.h.

Referenced by llvm::DWARFDebugMacro::dump().

◆ operator raw_ostream &()

llvm::dwarf::syntax::WithColor::operator raw_ostream & ( )
inline

Definition at line 44 of file SyntaxHighlighting.h.


The documentation for this class was generated from the following files: