GCC Middle and Back End API Reference
|
#include <opts-diagnostic.h>
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_context & | m_context |
void * | m_opts |
Concrete implementation of diagnostic_option_manager for compiler.
|
inline |
|
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().
|
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.
|
finaloverridevirtual |
Implements diagnostic_option_manager.
References diagnostic_option_id::m_idx, gcc_diagnostic_option_manager::m_lang_mask, m_opts, and option_enabled().
|
private |
Referenced by make_option_name().
|
protectedinherited |
Referenced by gcc_diagnostic_option_manager::make_option_url(), and option_enabled_p().
|
private |
Referenced by option_enabled_p().