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 dump (FILE *out, int indent) const override
 
void DEBUG_FUNCTION dump () const
 
std::unique_ptr< diagnostic_per_format_buffermake_per_format_buffer () final override
 
void set_buffer (diagnostic_per_format_buffer *base_buffer) final override
 
bool follows_reference_printer_p () const final override
 
void update_printer () 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 ()
 
size_t num_results () const
 
sarif_resultget_result (size_t idx)
 
virtual void on_report_verbatim (text_info &)
 
diagnostic_contextget_context () const
 
pretty_printerget_printer () const
 
text_art::theme * get_diagram_theme () const
 

Protected Attributes

sarif_builder m_builder
 
diagnostic_sarif_format_bufferm_buffer
 
diagnostic_contextm_context
 
std::unique_ptr< pretty_printerm_printer
 

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

◆ dump() [1/2]

◆ dump() [2/2]

void sarif_output_format::dump ( FILE * out,
int indent ) const
inlineoverridevirtualinherited

◆ follows_reference_printer_p()

bool sarif_output_format::follows_reference_printer_p ( ) const
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()

◆ get_result()

sarif_result & sarif_output_format::get_result ( size_t idx)
inlineinherited

◆ machine_readable_stderr_p()

bool sarif_stream_output_format::machine_readable_stderr_p ( ) const
inlinefinaloverridevirtual

Implements diagnostic_output_format.

References m_stream.

◆ make_per_format_buffer()

std::unique_ptr< diagnostic_per_format_buffer > sarif_output_format::make_per_format_buffer ( )
inlinefinaloverridevirtualinherited

◆ num_results()

size_t sarif_output_format::num_results ( ) const
inlineinherited

◆ 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

◆ on_report_verbatim()

void diagnostic_output_format::on_report_verbatim ( text_info & )
virtualinherited

Reimplemented in diagnostic_text_output_format.

◆ set_buffer()

void sarif_output_format::set_buffer ( diagnostic_per_format_buffer * base_buffer)
inlinefinaloverridevirtualinherited

◆ update_printer()

Field Documentation

◆ m_buffer

diagnostic_sarif_format_buffer* sarif_output_format::m_buffer
protectedinherited

◆ m_builder

◆ m_context

◆ m_printer

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

◆ m_stream

FILE* sarif_stream_output_format::m_stream
private

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