|
GCC Middle and Back End API Reference
|
#include <markup.h>


Public Member Functions | |
| void | print_to_pp (pretty_printer *pp) const final override |
| std::unique_ptr< text_art::tree_widget > | make_dump_widget (text_art::dump_widget_info &dwi) const final override |
| const node & | get_operand () const |
| std::unique_ptr< node > | take_operand () |
| virtual const char * | get_class_name () const =0 |
| virtual kind | get_kind () const =0 |
| void | dump () const |
| virtual const text * | dyn_cast_text () const |
| virtual const compound_node * | dyn_cast_compound_node () const |
| virtual const math::associative_op * | dyn_cast_math_associative_op () const |
| virtual math::negation * | dyn_cast_math_negation () |
| virtual std::unique_ptr< node > | lower (const lowering_options &opts) const =0 |
Protected Member Functions | |
| unary_node (std::unique_ptr< node > operand) | |
Private Attributes | |
| std::unique_ptr< node > | m_operand |
Abstract subclass for nodes that have a single child.
|
inlineprotected |
References gcc_assert, and m_operand.
Referenced by diagnostics::markup::math::negation::negation().
|
inherited |
References diagnostics::markup::dump_node_tree_to_pp(), pp_flush(), and pretty_printer::set_output_stream().
Referenced by print_to_pp().
|
inlinevirtualinherited |
Reimplemented in diagnostics::markup::compound_node.
|
inlinevirtualinherited |
Reimplemented in diagnostics::markup::math::associative_op.
|
inlinevirtualinherited |
Reimplemented in diagnostics::markup::math::negation.
|
inlinevirtualinherited |
Reimplemented in diagnostics::markup::text.
|
pure virtualinherited |
Implemented in diagnostics::markup::code::element_expr, diagnostics::markup::code::field_expr, diagnostics::markup::code::infix_binary_op, diagnostics::markup::compound_node, diagnostics::markup::inline_code, diagnostics::markup::math::half_open_interval, diagnostics::markup::math::negation, diagnostics::markup::math::product, diagnostics::markup::math::subtraction, diagnostics::markup::math::sum, and diagnostics::markup::text.
Referenced by diagnostics::markup::binary_node::make_dump_widget(), diagnostics::markup::unary_node::make_dump_widget(), diagnostics::markup::binary_node::print_to_pp(), and diagnostics::markup::unary_node::print_to_pp().
|
pure virtualinherited |
Implemented in diagnostics::markup::code::element_expr, diagnostics::markup::code::field_expr, diagnostics::markup::code::infix_binary_op, diagnostics::markup::compound_node, diagnostics::markup::inline_code, diagnostics::markup::math::half_open_interval, diagnostics::markup::math::negation, diagnostics::markup::math::product, diagnostics::markup::math::subtraction, diagnostics::markup::math::sum, and diagnostics::markup::text.
Referenced by diagnostics::markup::child_needs_parens_p().
|
inline |
References m_operand.
Referenced by diagnostics::markup::math::negation::lower().
|
pure virtualinherited |
Implemented in diagnostics::markup::code::element_expr, diagnostics::markup::code::field_expr, diagnostics::markup::code::infix_binary_op, diagnostics::markup::compound_node, diagnostics::markup::inline_code, diagnostics::markup::math::associative_op, diagnostics::markup::math::half_open_interval, diagnostics::markup::math::negation, diagnostics::markup::math::subtraction, and diagnostics::markup::text.
Referenced by diagnostics::markup::lower_and_append_with_any_parens().
|
finaloverridevirtual |
Implements diagnostics::markup::node.
References text_art::tree_widget::from_fmt(), diagnostics::markup::node::get_class_name(), and m_operand.
|
finaloverridevirtual |
Implements diagnostics::markup::node.
References diagnostics::markup::node::get_class_name(), m_operand, and pp_string().
|
inline |
References m_operand.
|
private |
Referenced by get_operand(), make_dump_widget(), print_to_pp(), take_operand(), and unary_node().