| GCC Middle and Back End API Reference
    | 
#include <diagnostic-output-spec.h>

| Public Member Functions | |
| 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 | ~context () | 
| virtual void | report_error_va (const char *gmsgid, va_list *ap) const =0 | 
| virtual const char * | get_base_filename () const =0 | 
| Protected Member Functions | |
| context (const char *option_name, line_maps *affected_location_mgr) | |
| Protected Attributes | |
| const char * | m_option_name | 
| line_maps * | m_affected_location_mgr | 
An abstract base class for handling the DSL of -fdiagnostics-add-output= and -fdiagnostics-set-output=.
| 
 | inlinevirtual | 
| 
 | inlineprotected | 
References m_affected_location_mgr, and m_option_name.
Referenced by diagnostics_output_spec::gcc_spec_context::gcc_spec_context().
| 
 | inline | 
| 
 | pure virtual | 
| 
 | inline | 
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().
| diagnostic_output_file diagnostics_output_spec::context::open_output_file | ( | label_text && | filename | ) | const | 
References fopen, and report_error().
Referenced by diagnostics_output_spec::html_scheme_handler::make_sink(), and diagnostics_output_spec::sarif_scheme_handler::make_sink().
| std::unique_ptr< diagnostic_output_format > diagnostics_output_spec::context::parse_and_make_sink | ( | const char * | unparsed_arg, | 
| diagnostic_context & | dc ) | 
| void diagnostics_output_spec::context::report_error | ( | const char * | gmsgid, | 
| ... ) const | 
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().
| 
 | pure virtual | 
Implemented in diagnostics_output_spec::gcc_spec_context.
References ap.
Referenced by report_error().
| void diagnostics_output_spec::context::report_missing_key | ( | const char * | unparsed_arg, | 
| const std::string & | key, | ||
| const std::string & | scheme_name, | ||
| const char * | metavar ) const | 
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().
| void diagnostics_output_spec::context::report_unknown_key | ( | const char * | unparsed_arg, | 
| const std::string & | key, | ||
| const std::string & | scheme_name, | ||
| auto_vec< const char * > & | known_keys ) const | 
| 
 | protected | 
Referenced by context(), and get_affected_location_mgr().
| 
 | protected | 
Referenced by context(), and get_option_name().