GCC Middle and Back End API Reference
gcc::diagnostics_output_spec::context Struct Reference
Collaboration diagram for gcc::diagnostics_output_spec::context:

Public Member Functions

 context (const gcc_options &opts, diagnostic_context &dc, line_maps *location_mgr, location_t loc, const char *option_name)
 
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
 

Data Fields

const gcc_options & m_opts
 
diagnostic_contextm_dc
 
line_maps * m_location_mgr
 
location_t m_loc
 
const char * m_option_name
 

Detailed Description

Decls.   

Constructor & Destructor Documentation

◆ context()

gcc::diagnostics_output_spec::context::context ( const gcc_options & opts,
diagnostic_context & dc,
line_maps * location_mgr,
location_t loc,
const char * option_name )
inline

Member Function Documentation

◆ open_output_file()

diagnostic_output_file gcc::diagnostics_output_spec::context::open_output_file ( label_text && filename) const

◆ report_error()

◆ report_missing_key()

void gcc::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 m_option_name, and report_error().

◆ report_unknown_key()

void gcc::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

Field Documentation

◆ m_dc

◆ m_loc

location_t gcc::diagnostics_output_spec::context::m_loc

Referenced by open_output_file(), and report_error().

◆ m_location_mgr

line_maps* gcc::diagnostics_output_spec::context::m_location_mgr

Referenced by open_output_file(), and report_error().

◆ m_option_name

◆ m_opts

const gcc_options& gcc::diagnostics_output_spec::context::m_opts

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