GCC Middle and Back End API Reference
compiler_diagnostic_option_manager Class Reference

#include <opts-diagnostic.h>

Inheritance diagram for compiler_diagnostic_option_manager:
Collaboration diagram for compiler_diagnostic_option_manager:

Public Member Functions

 compiler_diagnostic_option_manager (const diagnostic_context &context, unsigned lang_mask, void *opts)
 
int option_enabled_p (diagnostic_option_id option_id) const final override
 
char * make_option_name (diagnostic_option_id option_id, diagnostic_t orig_diag_kind, diagnostic_t diag_kind) const final override
 
char * make_option_url (diagnostic_option_id option_id) const final override
 

Protected Attributes

unsigned m_lang_mask
 

Private Attributes

const diagnostic_contextm_context
 
void * m_opts
 

Detailed Description

Concrete implementation of diagnostic_option_manager for compiler.   

Constructor & Destructor Documentation

◆ compiler_diagnostic_option_manager()

compiler_diagnostic_option_manager::compiler_diagnostic_option_manager ( const diagnostic_context & context,
unsigned lang_mask,
void * opts )
inline

Member Function Documentation

◆ make_option_name()

char * compiler_diagnostic_option_manager::make_option_name ( diagnostic_option_id option_id,
diagnostic_t orig_diag_kind,
diagnostic_t diag_kind ) const
finaloverridevirtual
Return malloced memory for the name of the option OPTION_INDEX
which enabled a diagnostic, originally of type
ORIG_DIAG_KIND but possibly converted to DIAG_KIND by options such
as -Werror.   

Implements diagnostic_option_manager.

References cl_options, m_context, diagnostic_option_id::m_idx, NULL, cl_option::opt_text, and diagnostic_context::warning_as_error_requested_p().

◆ make_option_url()

char * gcc_diagnostic_option_manager::make_option_url ( diagnostic_option_id option_id) const
finaloverridevirtualinherited
Return malloced memory for a URL describing the option OPTION_INDEX
which enabled a diagnostic.   

Implements diagnostic_option_manager.

References get_option_url_suffix(), diagnostic_option_id::m_idx, and gcc_diagnostic_option_manager::m_lang_mask.

◆ option_enabled_p()

int compiler_diagnostic_option_manager::option_enabled_p ( diagnostic_option_id option_id) const
finaloverridevirtual

Field Documentation

◆ m_context

const diagnostic_context& compiler_diagnostic_option_manager::m_context
private

Referenced by make_option_name().

◆ m_lang_mask

unsigned gcc_diagnostic_option_manager::m_lang_mask
protectedinherited

◆ m_opts

void* compiler_diagnostic_option_manager::m_opts
private

Referenced by option_enabled_p().


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