GCC Middle and Back End API Reference
tree_logical_location_manager Class Reference

#include <tree-logical-location.h>

Inheritance diagram for tree_logical_location_manager:
Collaboration diagram for tree_logical_location_manager:

Public Types

using key = diagnostics::logical_locations::key
using kind = diagnostics::logical_locations::kind

Public Member Functions

void dump (FILE *out, int indent) const final override
const char * get_short_name (key) const final override
const char * get_name_with_scope (key) const final override
const char * get_internal_name (key) const final override
kind get_kind (key) const final override
label_text get_name_for_path_output (key) const final override
key get_parent (key) const final override
void DEBUG_FUNCTION dump () const
bool function_p (key k) const

Static Public Member Functions

static tree tree_from_key (key k)
static key key_from_tree (tree node)

Detailed Description

Subclass of logical_location_manager with knowledge of "tree".
   Copyright (C) 2022-2025 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

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/>.   
A subclass of diagnostics::logical_locations::manager in which the
keys are "tree".
Note that there is no integration with the garbage collector,
and so key instances can only be short-lived.   

Member Typedef Documentation

◆ key

◆ kind

Member Function Documentation

◆ dump() [1/2]

void DEBUG_FUNCTION diagnostics::logical_locations::manager::dump ( ) const
inlineinherited

References DEBUG_FUNCTION, and dump().

Referenced by dump().

◆ dump() [2/2]

void tree_logical_location_manager::dump ( FILE * outfile,
int indent ) const
finaloverridevirtual
class tree_logical_location_manager
: public diagnostics::logical_locations::manager.   

Implements diagnostics::logical_locations::manager.

References diagnostics::dumping::emit_heading().

◆ function_p()

◆ get_internal_name()

const char * tree_logical_location_manager::get_internal_name ( key k) const
finaloverridevirtual

◆ get_kind()

◆ get_name_for_path_output()

label_text tree_logical_location_manager::get_name_for_path_output ( key k) const
finaloverridevirtual

◆ get_name_with_scope()

const char * tree_logical_location_manager::get_name_with_scope ( key k) const
finaloverridevirtual

◆ get_parent()

key tree_logical_location_manager::get_parent ( key k) const
finaloverridevirtual

◆ get_short_name()

const char * tree_logical_location_manager::get_short_name ( key k) const
finaloverridevirtual

◆ key_from_tree()

key tree_logical_location_manager::key_from_tree ( tree node)
inlinestatic

◆ tree_from_key()

tree tree_logical_location_manager::tree_from_key ( key k)
inlinestatic

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