GCC Middle and Back End API Reference
|
#include <simple-diagnostic-path.h>
Public Types | |
enum class | verb { unknown , acquire , release , enter , exit , call , return_ , branch , danger } |
enum class | noun { unknown , taint , sensitive , function , lock , memory , resource } |
enum class | property { unknown , true_ , false_ } |
Public Member Functions | |
simple_diagnostic_event (location_t loc, tree fndecl, int depth, const char *desc, diagnostic_thread_id_t thread_id=0) | |
~simple_diagnostic_event () | |
location_t | get_location () const final override |
int | get_stack_depth () const final override |
void | print_desc (pretty_printer &pp) const final override |
logical_location | get_logical_location () const final override |
meaning | get_meaning () const final override |
bool | connect_to_next_event_p () const final override |
diagnostic_thread_id_t | get_thread_id () const final override |
void | connect_to_next_event () |
tree | get_fndecl () const |
virtual void | maybe_add_sarif_properties (sarif_builder &, sarif_object &) const |
virtual std::unique_ptr< xml::document > | maybe_make_xml_state (bool debug) const |
label_text | get_desc (pretty_printer &ref_pp) const |
Private Attributes | |
location_t | m_loc |
tree | m_fndecl |
logical_location | m_logical_loc |
int | m_depth |
char * | m_desc |
bool | m_connected_to_next_event |
diagnostic_thread_id_t | m_thread_id |
Concrete classes for implementing diagnostic paths. Copyright (C) 2019-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/>.
Concrete subclasses of the abstract base classes declared in diagnostic-path.h.
A simple implementation of diagnostic_event.
|
stronginherited |
|
stronginherited |
|
stronginherited |
simple_diagnostic_event::simple_diagnostic_event | ( | location_t | loc, |
tree | fndecl, | ||
int | depth, | ||
const char * | desc, | ||
diagnostic_thread_id_t | thread_id = 0 ) |
struct simple_diagnostic_event.
simple_diagnostic_event's ctor.
References false, m_connected_to_next_event, m_depth, m_desc, m_fndecl, m_loc, m_logical_loc, and m_thread_id.
simple_diagnostic_event::~simple_diagnostic_event | ( | ) |
|
inline |
References m_connected_to_next_event.
|
inlinefinaloverridevirtual |
Implements diagnostic_event.
References final(), and m_connected_to_next_event.
|
inherited |
Generate a label_text containing the description of this event (for debugging/logging purposes).
References pretty_printer::clone(), pp_formatted_text(), pp_show_color(), and print_desc().
|
inlinefinaloverridevirtual |
Implements diagnostic_event.
|
inlinefinaloverridevirtual |
Implements diagnostic_event.
References final(), tree_logical_location_manager::key_from_tree(), and m_fndecl.
|
inlinefinaloverridevirtual |
Implements diagnostic_event.
References final().
|
inlinefinaloverridevirtual |
Implements diagnostic_event.
|
inlinefinaloverridevirtual |
Implements diagnostic_event.
References final(), and m_thread_id.
|
inlinevirtualinherited |
Reimplemented in ana::checker_event, and ana::superedge_event.
Referenced by sarif_builder::populate_thread_flow_location_object().
|
virtualinherited |
Reimplemented in ana::checker_event.
Referenced by sarif_builder::populate_thread_flow_location_object().
|
finaloverridevirtual |
Implements diagnostic_event.
References m_desc, and pp_string().
|
private |
Referenced by connect_to_next_event(), connect_to_next_event_p(), and simple_diagnostic_event().
|
private |
Referenced by get_stack_depth(), and simple_diagnostic_event().
|
private |
Referenced by print_desc(), simple_diagnostic_event(), and ~simple_diagnostic_event().
|
private |
Referenced by get_fndecl(), get_logical_location(), and simple_diagnostic_event().
|
private |
Referenced by get_location(), and simple_diagnostic_event().
|
private |
Referenced by simple_diagnostic_event().
|
private |
Referenced by get_thread_id(), and simple_diagnostic_event().