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 Member Functions

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
enum logical_location_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
bool function_p (key k) const

Static Public Member Functions

static tree tree_from_key (logical_location k)
static logical_location 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 logical_location_manager in which the keys are
"tree".
Note that there is no integration with the garbage collector,
and so logical_location instances can only be short-lived.   

Member Function Documentation

◆ function_p()

bool logical_location_manager::function_p ( key k) const
inherited
class logical_location_manager.   
Return true iff this is a function or method.   

References function, gcc_unreachable, get_kind(), member, module_, namespace_, parameter, return_type, type, unknown, and variable.

◆ get_internal_name()

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

◆ get_kind()

enum logical_location_kind tree_logical_location_manager::get_kind ( key k) const
finaloverridevirtual

◆ 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()

logical_location 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
class tree_logical_location_manager : public logical_location_manager.   

Implements logical_location_manager.

References assert_valid_tree(), DECL_P, lang_hooks::decl_printable_name, IDENTIFIER_POINTER, identifier_to_locale(), tree_from_key(), TYPE_IDENTIFIER, and TYPE_P.

◆ key_from_tree()

logical_location tree_logical_location_manager::key_from_tree ( tree node)
inlinestatic

◆ tree_from_key()


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