GCC Middle and Back End API Reference
sarif_output_format Class Referenceabstract
Inheritance diagram for sarif_output_format:
Collaboration diagram for sarif_output_format:

Public Member Functions

 ~sarif_output_format ()
 
void on_begin_group () final override
 
void on_end_group () final override
 
void on_report_diagnostic (const diagnostic_info &diagnostic, diagnostic_t orig_diag_kind) final override
 
void on_diagram (const diagnostic_diagram &diagram) final override
 
void after_diagnostic (const diagnostic_info &) final override
 
sarif_builderget_builder ()
 
virtual bool machine_readable_stderr_p () const =0
 
diagnostic_contextget_context () const
 
pretty_printerget_printer () const
 
text_art::theme * get_diagram_theme () const
 

Protected Member Functions

 sarif_output_format (diagnostic_context &context, const line_maps *line_maps, const char *main_input_filename_, bool formatted, enum sarif_version version)
 

Protected Attributes

sarif_builder m_builder
 
diagnostic_contextm_context
 

Constructor & Destructor Documentation

◆ ~sarif_output_format()

sarif_output_format::~sarif_output_format ( )
inline

◆ sarif_output_format()

sarif_output_format::sarif_output_format ( diagnostic_context & context,
const line_maps * line_maps,
const char * main_input_filename_,
bool formatted,
enum sarif_version version )
inlineprotected

Member Function Documentation

◆ after_diagnostic()

void sarif_output_format::after_diagnostic ( const diagnostic_info & )
inlinefinaloverridevirtual

◆ get_builder()

sarif_builder & sarif_output_format::get_builder ( )
inline

References m_builder.

◆ get_context()

◆ get_diagram_theme()

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

◆ get_printer()

◆ machine_readable_stderr_p()

virtual bool diagnostic_output_format::machine_readable_stderr_p ( ) const
pure virtualinherited

◆ on_begin_group()

void sarif_output_format::on_begin_group ( )
inlinefinaloverridevirtual

◆ on_diagram()

void sarif_output_format::on_diagram ( const diagnostic_diagram & diagram)
inlinefinaloverridevirtual

◆ on_end_group()

void sarif_output_format::on_end_group ( )
inlinefinaloverridevirtual

◆ on_report_diagnostic()

void sarif_output_format::on_report_diagnostic ( const diagnostic_info & diagnostic,
diagnostic_t orig_diag_kind )
inlinefinaloverridevirtual

Field Documentation

◆ m_builder

◆ m_context


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