GCC Middle and Back End API Reference
diagnostics_output_spec::context Class Referenceabstract

#include <diagnostic-output-spec.h>

Inheritance diagram for diagnostics_output_spec::context:

Public Member Functions

std::unique_ptr< diagnostic_output_formatparse_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

Detailed Description

An abstract base class for handling the DSL of -fdiagnostics-add-output=
and -fdiagnostics-set-output=.   

Constructor & Destructor Documentation

◆ ~context()

virtual diagnostics_output_spec::context::~context ( )
inlinevirtual

◆ context()

diagnostics_output_spec::context::context ( const char * option_name,
line_maps * affected_location_mgr )
inlineprotected

Member Function Documentation

◆ get_affected_location_mgr()

line_maps * diagnostics_output_spec::context::get_affected_location_mgr ( ) const
inline

◆ get_base_filename()

virtual const char * diagnostics_output_spec::context::get_base_filename ( ) const
pure virtual

◆ get_option_name()

◆ open_output_file()

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

◆ parse_and_make_sink()

std::unique_ptr< diagnostic_output_format > diagnostics_output_spec::context::parse_and_make_sink ( const char * unparsed_arg,
diagnostic_context & dc )

◆ report_error()

◆ report_error_va()

virtual void diagnostics_output_spec::context::report_error_va ( const char * gmsgid,
va_list * ap ) const
pure virtual

Implemented in diagnostics_output_spec::gcc_spec_context.

References ap.

Referenced by report_error().

◆ report_missing_key()

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

◆ report_unknown_key()

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

Field Documentation

◆ m_affected_location_mgr

line_maps* diagnostics_output_spec::context::m_affected_location_mgr
protected

◆ m_option_name

const char* diagnostics_output_spec::context::m_option_name
protected

Referenced by context(), and get_option_name().


The documentation for this class was generated from the following files: