GCC Middle and Back End API Reference
text_range_label Class Reference

#include <text-range-label.h>

Inheritance diagram for text_range_label:
Collaboration diagram for text_range_label:

Public Member Functions

 text_range_label (const char *text)
 
label_text get_text (unsigned) const final override
 

Private Attributes

const char * m_text
 

Detailed Description

Simple implementation of range_label. Copyright (C) 2014-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/>.
Concrete subclass of libcpp's range_label. Simple implementation using a string literal.

Constructor & Destructor Documentation

◆ text_range_label()

text_range_label::text_range_label ( const char * text)
inline

References m_text.

Member Function Documentation

◆ get_text()

label_text text_range_label::get_text ( unsigned ) const
inlinefinaloverride

References m_text.

Field Documentation

◆ m_text

const char* text_range_label::m_text
private

Referenced by get_text(), and text_range_label().


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