GCC Middle and Back End API Reference
|
#include <tree-logical-location.h>
Public Member Functions | |
virtual const char * | get_short_name () const =0 |
virtual const char * | get_name_with_scope () const =0 |
virtual const char * | get_internal_name () const =0 |
virtual enum logical_location_kind | get_kind () const =0 |
virtual label_text | get_name_for_path_output () const =0 |
bool | function_p () const |
Static Protected Member Functions | |
static const char * | get_short_name_for_tree (tree) |
static const char * | get_name_with_scope_for_tree (tree) |
static const char * | get_internal_name_for_tree (tree) |
static enum logical_location_kind | get_kind_for_tree (tree) |
static label_text | get_name_for_tree_for_path_output (tree) |
Subclasses of logical_location with knowledge of "tree". Copyright (C) 2022-2024 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/>.
Abstract subclass of logical_location, with knowledge of "tree", but for no specific tree.
|
inherited |
class logical_location.
Return true iff this is a function or method.
References gcc_unreachable, logical_location::get_kind(), LOGICAL_LOCATION_KIND_FUNCTION, LOGICAL_LOCATION_KIND_MEMBER, LOGICAL_LOCATION_KIND_MODULE, LOGICAL_LOCATION_KIND_NAMESPACE, LOGICAL_LOCATION_KIND_PARAMETER, LOGICAL_LOCATION_KIND_RETURN_TYPE, LOGICAL_LOCATION_KIND_TYPE, LOGICAL_LOCATION_KIND_UNKNOWN, and LOGICAL_LOCATION_KIND_VARIABLE.
|
pure virtualinherited |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by make_sarif_logical_location_object().
|
staticprotected |
Get a string for DECL suitable for use by the SARIF logicalLocation "decoratedName" property (SARIF v2.1.0 section 3.33.6).
References DECL_ASSEMBLER_NAME, gcc_assert, HAS_DECL_ASSEMBLER_NAME_P, IDENTIFIER_POINTER, and NULL.
Referenced by current_fndecl_logical_location::get_internal_name(), and tree_logical_location::get_internal_name().
|
pure virtualinherited |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by logical_location::function_p(), and make_sarif_logical_location_object().
|
staticprotected |
Get what kind of SARIF logicalLocation DECL is (if any).
References LOGICAL_LOCATION_KIND_FUNCTION, LOGICAL_LOCATION_KIND_PARAMETER, LOGICAL_LOCATION_KIND_UNKNOWN, LOGICAL_LOCATION_KIND_VARIABLE, and TREE_CODE.
Referenced by current_fndecl_logical_location::get_kind(), and tree_logical_location::get_kind().
|
pure virtualinherited |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
|
staticprotected |
References _, DECL_NAME, lang_hooks::decl_printable_name, gcc_assert, and identifier_to_locale().
Referenced by current_fndecl_logical_location::get_name_for_path_output(), and tree_logical_location::get_name_for_path_output().
|
pure virtualinherited |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by make_sarif_logical_location_object().
|
staticprotected |
Get a string for DECL suitable for use by the SARIF logicalLocation "fullyQualifiedName" property (SARIF v2.1.0 section 3.33.5).
References lang_hooks::decl_printable_name, gcc_assert, and identifier_to_locale().
Referenced by current_fndecl_logical_location::get_name_with_scope(), and tree_logical_location::get_name_with_scope().
|
pure virtualinherited |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by make_sarif_logical_location_object().
|
staticprotected |
Subclasses of logical_location with knowledge of "tree". Copyright (C) 2022-2024 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/>.
class compiler_logical_location : public logical_location.
Get a string for DECL suitable for use by the SARIF logicalLocation "name" property (SARIF v2.1.0 section 3.33.4).
References lang_hooks::decl_printable_name, gcc_assert, and identifier_to_locale().
Referenced by current_fndecl_logical_location::get_short_name(), and tree_logical_location::get_short_name().