GCC Middle and Back End API Reference
diagnostic_node Struct Reference
Inheritance diagram for diagnostic_node:
Collaboration diagram for diagnostic_node:

Public Member Functions

 diagnostic_node (diagnostic_graph &g, std::string id)
std::string get_id () const
const char * get_label () const
void set_label (const char *label)
void set_label (std::string label)
size_t get_num_children () const
nodeget_child (size_t idx) const
void add_child (std::unique_ptr< node > child)
location_t get_physical_loc () const
void set_physical_loc (location_t physical_loc)
logical_locations::key get_logical_loc () const
void set_logical_loc (logical_locations::key logical_loc)
void print (graphviz_out &gv) const
void dump () const
std::unique_ptr< json::objectto_json_sarif_node () const
std::unique_ptr< nodeclone (digraph &new_graph, std::map< node *, node * > &node_mapping) const
const char * get_property (const json::string_property &property) const
json::arrayget_property (const json::array_of_string_property &property) const
template<typename EnumType>
EnumType get_property (const json::enum_property< EnumType > &property) const
const json::valueget_property (const json::json_property &property) const
void set_property (const json::string_property &property, const char *utf8_value)
void set_property (const json::integer_property &property, long value)
void set_property (const json::bool_property &property, bool value)
template<typename EnumType>
void set_property (const json::enum_property< EnumType > &property, EnumType value)
void set_property (const json::json_property &property, std::unique_ptr< json::value > value)
bool maybe_get_property (const json::integer_property &property, long &out) const
tristate get_property_as_tristate (const json::bool_property &property) const
json::objectget_property_bag () const
json::objectensure_property_bag ()
void set_property_bag (std::unique_ptr< json::object > property_bag)

Private Attributes

std::string m_id
std::unique_ptr< std::string > m_label
std::vector< std::unique_ptr< node > > m_children
location_t m_physical_loc
logical_locations::key m_logical_loc
std::unique_ptr< json::objectm_property_bag

Constructor & Destructor Documentation

◆ diagnostic_node()

diagnostic_node::diagnostic_node ( diagnostic_graph & g,
std::string id )
inline

References g.

Member Function Documentation

◆ add_child()

void diagnostics::digraphs::node::add_child ( std::unique_ptr< node > child)
inlineinherited

◆ clone()

std::unique_ptr< digraph_node > digraph_node::clone ( digraph & new_graph,
std::map< node *, node * > & node_mapping ) const
inherited

◆ dump()

DEBUG_FUNCTION void digraph_node::dump ( ) const
inherited

References to_json_sarif_node().

◆ ensure_property_bag()

json::object & digraph_object::ensure_property_bag ( )
inherited

◆ get_child()

node & diagnostics::digraphs::node::get_child ( size_t idx) const
inlineinherited

◆ get_id()

std::string diagnostics::digraphs::node::get_id ( ) const
inlineinherited

References m_id.

Referenced by clone(), and state_diagram::make_id().

◆ get_label()

const char * diagnostics::digraphs::node::get_label ( ) const
inlineinherited

References m_label.

◆ get_logical_loc()

logical_locations::key diagnostics::digraphs::node::get_logical_loc ( ) const
inlineinherited

◆ get_num_children()

size_t diagnostics::digraphs::node::get_num_children ( ) const
inlineinherited

◆ get_physical_loc()

location_t diagnostics::digraphs::node::get_physical_loc ( ) const
inlineinherited

References m_physical_loc.

◆ get_property() [1/4]

json::array * digraph_object::get_property ( const json::array_of_string_property & property) const
inherited
Array-of-string properties.

References json::array::dyn_cast_array(), and m_property_bag.

◆ get_property() [2/4]

template<typename EnumType>
EnumType diagnostics::digraphs::object::get_property ( const json::enum_property< EnumType > & property) const
inlineinherited

◆ get_property() [3/4]

const json::value * digraph_object::get_property ( const json::json_property & property) const
inherited
json::value properties.

References m_property_bag.

◆ get_property() [4/4]

const char * digraph_object::get_property ( const json::string_property & property) const
inherited

◆ get_property_as_tristate()

tristate digraph_object::get_property_as_tristate ( const json::bool_property & property) const
inherited

◆ get_property_bag()

json::object * diagnostics::digraphs::object::get_property_bag ( ) const
inlineinherited

◆ maybe_get_property()

bool digraph_object::maybe_get_property ( const json::integer_property & property,
long & out_value ) const
inherited

◆ print()

void diagnostics::digraphs::node::print ( graphviz_out & gv) const
inherited

References new_graph().

◆ set_label() [1/2]

void diagnostics::digraphs::node::set_label ( const char * label)
inlineinherited

References m_label.

◆ set_label() [2/2]

void diagnostics::digraphs::node::set_label ( std::string label)
inlineinherited

References m_label.

◆ set_logical_loc()

void diagnostics::digraphs::node::set_logical_loc ( logical_locations::key logical_loc)
inlineinherited

References m_logical_loc.

◆ set_physical_loc()

void diagnostics::digraphs::node::set_physical_loc ( location_t physical_loc)
inlineinherited

References m_physical_loc.

◆ set_property() [1/5]

void digraph_object::set_property ( const json::bool_property & property,
bool value )
inherited
Bool properties.

References ensure_property_bag().

◆ set_property() [2/5]

template<typename EnumType>
void diagnostics::digraphs::object::set_property ( const json::enum_property< EnumType > & property,
EnumType value )
inlineinherited

References ensure_property_bag().

◆ set_property() [3/5]

void digraph_object::set_property ( const json::integer_property & property,
long value )
inherited

References ensure_property_bag().

◆ set_property() [4/5]

void digraph_object::set_property ( const json::json_property & property,
std::unique_ptr< json::value > value )
inherited

References ensure_property_bag().

◆ set_property() [5/5]

void digraph_object::set_property ( const json::string_property & property,
const char * utf8_value )
inherited

◆ set_property_bag()

void diagnostics::digraphs::object::set_property_bag ( std::unique_ptr< json::object > property_bag)
inlineinherited

References m_property_bag.

◆ to_json_sarif_node()

std::unique_ptr< json::object > digraph_node::to_json_sarif_node ( ) const
inherited

References diagnostics::make_sarif_node().

Referenced by dump().

Field Documentation

◆ m_children

std::vector<std::unique_ptr<node> > diagnostics::digraphs::node::m_children
privateinherited

◆ m_id

std::string diagnostics::digraphs::node::m_id
privateinherited

Referenced by get_id(), and node().

◆ m_label

std::unique_ptr<std::string> diagnostics::digraphs::node::m_label
privateinherited

Referenced by get_label(), set_label(), and set_label().

◆ m_logical_loc

logical_locations::key diagnostics::digraphs::node::m_logical_loc
privateinherited

◆ m_physical_loc

location_t diagnostics::digraphs::node::m_physical_loc
privateinherited

◆ m_property_bag

std::unique_ptr<json::object> diagnostics::digraphs::object::m_property_bag
privateinherited

The documentation for this struct was generated from the following file: