GCC Middle and Back End API Reference
|
#include <diagnostic-output-spec.h>
Public Member Functions | |
gcc_spec_context (diagnostic_context &dc, line_maps *affected_location_mgr, line_maps *control_location_mgr, location_t loc, const char *option_name) | |
void | report_error_va (const char *gmsgid, va_list *ap) const final override ATTRIBUTE_GCC_DIAG(2 |
void rich_location | richloc (m_control_location_mgr, m_loc) |
m_dc | end_group () |
std::unique_ptr< diagnostic_output_format > | parse_and_make_sink (const char *, diagnostic_context &dc) |
void | report_error (const char *gmsgid,...) const ATTRIBUTE_GCC_DIAG(2 |
void void | report_unknown_key (const char *unparsed_arg, const std::string &key, const std::string &scheme_name, auto_vec< const char * > &known_keys) const |
void | report_missing_key (const char *unparsed_arg, const std::string &key, const std::string &scheme_name, const char *metavar) const |
diagnostic_output_file | open_output_file (label_text &&filename) const |
const char * | get_option_name () const |
line_maps * | get_affected_location_mgr () const |
virtual const char * | get_base_filename () const =0 |
Data Fields | |
m_dc diagnostic_impl & | richloc |
diagnostic_context & | m_dc |
line_maps * | m_control_location_mgr |
location_t | m_loc |
Protected Attributes | |
const char * | m_option_name |
line_maps * | m_affected_location_mgr |
A subclass that implements reporting errors via a diagnostic_context.
|
inline |
References diagnostics_output_spec::context::context(), m_control_location_mgr, m_dc, and m_loc.
|
inlineinherited |
|
pure virtualinherited |
|
inlineinherited |
References m_option_name.
Referenced by diagnostics_output_spec::output_factory::make_sink(), diagnostics_output_spec::parse(), diagnostics_output_spec::output_factory::scheme_handler::parse_bool_value(), diagnostics_output_spec::output_factory::scheme_handler::parse_enum_value(), report_missing_key(), and report_unknown_key().
|
inherited |
References fopen, and report_error().
Referenced by diagnostics_output_spec::html_scheme_handler::make_sink(), and diagnostics_output_spec::sarif_scheme_handler::make_sink().
|
inherited |
|
inherited |
struct context.
References ap, and report_error_va().
Referenced by diagnostics_output_spec::output_factory::make_sink(), open_output_file(), diagnostics_output_spec::parse(), diagnostics_output_spec::output_factory::scheme_handler::parse_bool_value(), diagnostics_output_spec::output_factory::scheme_handler::parse_enum_value(), report_missing_key(), and report_unknown_key().
|
finaloverridevirtual |
Implements diagnostics_output_spec::context.
|
inherited |
References get_option_name(), and report_error().
Referenced by diagnostics_output_spec::html_scheme_handler::make_sink(), and diagnostics_output_spec::sarif_scheme_handler::make_sink().
|
inherited |
void rich_location diagnostics_output_spec::gcc_spec_context::richloc | ( | m_control_location_mgr | , |
m_loc | ) |
References m_control_location_mgr, and m_loc.
|
protectedinherited |
Referenced by context(), and get_affected_location_mgr().
line_maps* diagnostics_output_spec::gcc_spec_context::m_control_location_mgr |
Referenced by gcc_spec_context(), and richloc().
diagnostic_context& diagnostics_output_spec::gcc_spec_context::m_dc |
Referenced by end_group(), gcc_spec_context(), and report_error_va().
location_t diagnostics_output_spec::gcc_spec_context::m_loc |
Referenced by gcc_spec_context(), and richloc().
|
protectedinherited |
Referenced by context(), and get_option_name().
m_dc diagnostic_impl& diagnostics_output_spec::gcc_spec_context::richloc |