GCC Middle and Back End API Reference
|
#include <diagnostic-format.h>
Public Member Functions | |
virtual | ~diagnostic_output_format () |
virtual void | dump (FILE *out, int indent) const |
virtual std::unique_ptr< diagnostic_per_format_buffer > | make_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_context & | get_context () const |
pretty_printer * | get_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_context & | m_context |
std::unique_ptr< pretty_printer > | m_printer |
Abstract base class for a particular output format for diagnostics; each value of -fdiagnostics-output-format= will have its own implementation.
|
inlinevirtual |
|
inlineprotected |
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
inline |
References dump().
Referenced by dump(), diagnostic_text_output_format::dump(), json_output_format::dump(), sarif_file_output_format::dump(), and sarif_output_format::dump().
|
virtual |
Reimplemented in diagnostic_text_output_format, json_output_format, sarif_file_output_format, and sarif_output_format.
References m_printer.
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
inline |
|
inline |
References diagnostic_context::get_diagram_theme(), and m_context.
|
inline |
References m_printer.
Referenced by diagnostic_text_format_buffer::clear(), default_diagnostic_text_finalizer(), default_diagnostic_text_starter(), default_tree_diagnostic_text_starter(), diagnostic_text_format_buffer::flush(), lhd_print_error_function(), sarif_builder::make_location_object(), diagnostic_text_sink::on_begin_text_diagnostic(), and sarif_output_format::update_printer().
|
pure virtual |
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
virtual |
Reimplemented in diagnostic_text_output_format.
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
pure virtual |
Implemented in diagnostic_text_output_format, json_output_format, and sarif_output_format.
|
protected |
Referenced by get_context(), get_diagram_theme(), and sarif_output_format::update_printer().
|
protected |
Referenced by dump(), get_printer(), and sarif_output_format::update_printer().