#include <tree-logical-location.h>
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) |
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.
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.
|
finaloverridevirtual |
Implements logical_location_manager.
References assert_valid_tree(), DECL_ASSEMBLER_NAME, DECL_P, HAS_DECL_ASSEMBLER_NAME_P, IDENTIFIER_POINTER, NULL, TREE_CODE, tree_from_key(), and TYPE_P.
|
finaloverridevirtual |
Implements logical_location_manager.
References assert_valid_tree(), function, namespace_, parameter, TREE_CODE, tree_from_key(), type, unknown, and variable.
|
finaloverridevirtual |
Implements logical_location_manager.
References _, assert_valid_tree(), DECL_NAME, DECL_P, lang_hooks::decl_printable_name, identifier_to_locale(), tree_from_key(), and TYPE_P.
|
finaloverridevirtual |
Implements logical_location_manager.
References assert_valid_tree(), DECL_P, lang_hooks::decl_printable_name, identifier_to_locale(), tree_from_key(), and TYPE_P.
|
finaloverridevirtual |
Implements logical_location_manager.
References assert_valid_tree(), DECL_CONTEXT, DECL_P, key_from_tree(), TREE_CODE, tree_from_key(), TYPE_CONTEXT, and TYPE_P.
|
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.
|
inlinestatic |
References logical_location_manager::key::from_ptr().
Referenced by simple_diagnostic_event::get_logical_location(), and get_parent().
|
inlinestatic |
References logical_location_manager::key::cast_to().
Referenced by get_internal_name(), get_kind(), get_name_for_path_output(), get_name_with_scope(), get_parent(), and get_short_name().