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

Public Member Functions

 sarif_stream_output_format (diagnostic_context &context, const line_maps *line_maps, const char *main_input_filename_, bool formatted, enum sarif_version version, FILE *stream)
 
 ~sarif_stream_output_format ()
 
bool machine_readable_stderr_p () const final override
 
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 ()
 
diagnostic_contextget_context () const
 
pretty_printerget_printer () const
 
text_art::theme * get_diagram_theme () const
 

Protected Attributes

sarif_builder m_builder
 
diagnostic_contextm_context
 

Private Attributes

FILE * m_stream
 

Constructor & Destructor Documentation

◆ sarif_stream_output_format()

sarif_stream_output_format::sarif_stream_output_format ( diagnostic_context & context,
const line_maps * line_maps,
const char * main_input_filename_,
bool formatted,
enum sarif_version version,
FILE * stream )
inline

◆ ~sarif_stream_output_format()

sarif_stream_output_format::~sarif_stream_output_format ( )
inline

Member Function Documentation

◆ after_diagnostic()

void sarif_output_format::after_diagnostic ( const diagnostic_info & )
inlinefinaloverridevirtualinherited

◆ get_builder()

sarif_builder & sarif_output_format::get_builder ( )
inlineinherited

◆ get_context()

◆ get_diagram_theme()

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

◆ get_printer()

◆ machine_readable_stderr_p()

bool sarif_stream_output_format::machine_readable_stderr_p ( ) const
inlinefinaloverridevirtual

Implements diagnostic_output_format.

References m_stream.

◆ on_begin_group()

void sarif_output_format::on_begin_group ( )
inlinefinaloverridevirtualinherited

◆ on_diagram()

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

◆ on_end_group()

void sarif_output_format::on_end_group ( )
inlinefinaloverridevirtualinherited

◆ on_report_diagnostic()

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

Field Documentation

◆ m_builder

◆ m_context

◆ m_stream

FILE* sarif_stream_output_format::m_stream
private

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