GCC Middle and Back End API Reference
gcc_diagnostic_option_manager Class Referenceabstract

#include <opts-diagnostic.h>

Inheritance diagram for gcc_diagnostic_option_manager:
Collaboration diagram for gcc_diagnostic_option_manager:

Public Member Functions

char * make_option_url (diagnostic_option_id option_id) const final override
 
virtual int option_enabled_p (diagnostic_option_id option_id) const =0
 
virtual char * make_option_name (diagnostic_option_id option_id, diagnostic_t orig_diag_kind, diagnostic_t diag_kind) const =0
 

Protected Member Functions

 gcc_diagnostic_option_manager (unsigned lang_mask)
 

Protected Attributes

unsigned m_lang_mask
 

Detailed Description

Command line option handling. Interactions with diagnostics code. Copyright (C) 2010-2025 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Abstract subclass of diagnostic_option_manager for gcc options.

Constructor & Destructor Documentation

◆ gcc_diagnostic_option_manager()

gcc_diagnostic_option_manager::gcc_diagnostic_option_manager ( unsigned lang_mask)
inlineprotected

Member Function Documentation

◆ make_option_name()

virtual char * diagnostic_option_manager::make_option_name ( diagnostic_option_id option_id,
diagnostic_t orig_diag_kind,
diagnostic_t diag_kind ) const
pure virtualinherited

◆ make_option_url()

char * gcc_diagnostic_option_manager::make_option_url ( diagnostic_option_id option_id) const
finaloverridevirtual
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 m_lang_mask.

◆ option_enabled_p()

virtual int diagnostic_option_manager::option_enabled_p ( diagnostic_option_id option_id) const
pure virtualinherited

Field Documentation

◆ m_lang_mask

unsigned gcc_diagnostic_option_manager::m_lang_mask
protected

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