GCC Middle and Back End API Reference
diagnostic_output_format Class Referenceabstract

#include <diagnostic-format.h>

Inheritance diagram for diagnostic_output_format:
Collaboration diagram for diagnostic_output_format:

Public Member Functions

virtual ~diagnostic_output_format ()
 
virtual void dump (FILE *out, int indent) const
 
virtual std::unique_ptr< diagnostic_per_format_buffermake_per_format_buffer ()=0
 
virtual void set_buffer (diagnostic_per_format_buffer *)=0
 
virtual void on_begin_group ()=0
 
virtual void on_end_group ()=0
 
virtual void on_report_diagnostic (const diagnostic_info &, diagnostic_t orig_diag_kind)=0
 
virtual void on_report_verbatim (text_info &)
 
virtual void on_diagram (const diagnostic_diagram &diagram)=0
 
virtual void after_diagnostic (const diagnostic_info &)=0
 
virtual bool machine_readable_stderr_p () const =0
 
virtual bool follows_reference_printer_p () const =0
 
virtual void update_printer ()=0
 
diagnostic_contextget_context () const
 
pretty_printerget_printer () const
 
text_art::theme * get_diagram_theme () const
 
void DEBUG_FUNCTION dump () const
 

Protected Member Functions

 diagnostic_output_format (diagnostic_context &context)
 

Protected Attributes

diagnostic_contextm_context
 
std::unique_ptr< pretty_printerm_printer
 

Detailed Description

Abstract base class for a particular output format for diagnostics;
each value of -fdiagnostics-output-format= will have its own
implementation.   

Constructor & Destructor Documentation

◆ ~diagnostic_output_format()

virtual diagnostic_output_format::~diagnostic_output_format ( )
inlinevirtual

◆ diagnostic_output_format()

diagnostic_output_format::diagnostic_output_format ( diagnostic_context & context)
inlineprotected

Member Function Documentation

◆ after_diagnostic()

virtual void diagnostic_output_format::after_diagnostic ( const diagnostic_info & )
pure virtual

◆ dump() [1/2]

◆ dump() [2/2]

void diagnostic_output_format::dump ( FILE * out,
int indent ) const
virtual

◆ follows_reference_printer_p()

virtual bool diagnostic_output_format::follows_reference_printer_p ( ) const
pure virtual

◆ get_context()

◆ get_diagram_theme()

text_art::theme * diagnostic_output_format::get_diagram_theme ( ) const
inline

◆ get_printer()

◆ machine_readable_stderr_p()

virtual bool diagnostic_output_format::machine_readable_stderr_p ( ) const
pure virtual

◆ make_per_format_buffer()

virtual std::unique_ptr< diagnostic_per_format_buffer > diagnostic_output_format::make_per_format_buffer ( )
pure virtual

◆ on_begin_group()

virtual void diagnostic_output_format::on_begin_group ( )
pure virtual

◆ on_diagram()

virtual void diagnostic_output_format::on_diagram ( const diagnostic_diagram & diagram)
pure virtual

◆ on_end_group()

virtual void diagnostic_output_format::on_end_group ( )
pure virtual

◆ on_report_diagnostic()

virtual void diagnostic_output_format::on_report_diagnostic ( const diagnostic_info & ,
diagnostic_t orig_diag_kind )
pure virtual

◆ on_report_verbatim()

void diagnostic_output_format::on_report_verbatim ( text_info & )
virtual

Reimplemented in diagnostic_text_output_format.

◆ set_buffer()

virtual void diagnostic_output_format::set_buffer ( diagnostic_per_format_buffer * )
pure virtual

◆ update_printer()

virtual void diagnostic_output_format::update_printer ( )
pure virtual

Field Documentation

◆ m_context

diagnostic_context& diagnostic_output_format::m_context
protected

◆ m_printer

std::unique_ptr<pretty_printer> diagnostic_output_format::m_printer
protected

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