GCC Middle and Back End API Reference
|
#include <output-spec.h>
Public Member Functions | |
std::unique_ptr< sink > | parse_and_make_sink (const char *, diagnostics::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 |
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::dc_spec_context::dc_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().
output_file diagnostics::output_spec::context::open_output_file | ( | label_text && | filename | ) | const |
References fopen, output_file, 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< sink > diagnostics::output_spec::context::parse_and_make_sink | ( | const char * | unparsed_arg, |
diagnostics::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::dc_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().