GCC Middle and Back End API Reference
|
#include <state-graphs.h>
Public Member Functions | |
state_node_ref (diagnostics::digraphs::node &node) | |
enum node_kind | get_node_kind () const |
void | set_node_kind (enum node_kind) |
logical_locations::key | get_logical_loc () const |
enum node_dynalloc_state | get_dynalloc_state () const |
void | set_dynalloc_state (enum node_dynalloc_state) const |
const char * | get_dynamic_extents () const |
const char * | get_name () const |
void | set_name (const char *name) const |
const char * | get_type () const |
void | set_type (const char *type) const |
const char * | get_value () const |
const char * | get_index () const |
const char * | get_attr (const char *key) const |
void | set_attr (const char *key, const char *value) const |
void | set_json_attr (const char *key, std::unique_ptr< json::value > value) const |
Data Fields | |
diagnostics::digraphs::node & | m_node |
A wrapper around a node that gets/sets attributes, using the node's property bag for storage, so that the data roundtrips through SARIF.
|
inline |
References m_node.
|
inline |
References m_node, and STATE_NODE_PREFIX.
Referenced by get_dynalloc_state(), get_index(), get_name(), get_node_kind(), get_type(), and get_value().
enum node_dynalloc_state state_node_ref::get_dynalloc_state | ( | ) | const |
References dynalloc_state_strs, get_attr(), i, and diagnostics::state_graphs::unknown.
Referenced by state_diagram::on_node_in_table().
const char * state_node_ref::get_dynamic_extents | ( | ) | const |
References m_node, and STATE_NODE_PREFIX.
Referenced by state_diagram::on_node_in_table().
|
inline |
References get_attr().
Referenced by state_diagram::on_node_in_table().
|
inline |
References m_node.
Referenced by state_diagram::on_node_in_table().
|
inline |
References get_attr().
Referenced by state_diagram::on_node_in_table().
enum node_kind state_node_ref::get_node_kind | ( | ) | const |
References get_attr(), i, node_kind_strs, and diagnostics::state_graphs::other.
Referenced by state_diagram::get_label_for_node(), state_diagram::on_node_in_table(), and state_diagram::starts_node_p().
|
inline |
References get_attr().
Referenced by state_diagram::on_node_in_table().
|
inline |
References get_attr().
Referenced by state_diagram::on_node_in_table().
|
inline |
References m_node, and STATE_NODE_PREFIX.
Referenced by set_dynalloc_state(), set_name(), set_node_kind(), and set_type().
void state_node_ref::set_dynalloc_state | ( | enum node_dynalloc_state | s | ) | const |
References dynalloc_state_strs, and set_attr().
void state_node_ref::set_json_attr | ( | const char * | key, |
std::unique_ptr< json::value > | value ) const |
References m_node, and STATE_NODE_PREFIX.
|
inline |
References set_attr().
void state_node_ref::set_node_kind | ( | enum node_kind | k | ) |
References diagnostics::state_graphs::node_kind_to_str(), and set_attr().
|
inline |
References set_attr().
diagnostics::digraphs::node& diagnostics::state_graphs::state_node_ref::m_node |