GCC Middle and Back End API Reference
diagnostics::markup Namespace Reference

Namespaces

namespace  math
namespace  code

Data Structures

class  node
class  text
class  unary_node
class  binary_node
class  compound_node
class  inline_code
struct  lowering_options

Enumerations

enum class  kind {
  text , compound , math_half_open_interval , math_negation ,
  math_product , math_subtraction , math_sum , code_element_expr ,
  code_field_expr , code_infix_binary_op , inline_code
}

Functions

static bool child_needs_parens_p (const node &parent, const node &child)
static void lower_and_append_with_any_parens (compound_node &dst_node, const node &parent, const node &child, const lowering_options &opts)
static void dump_node_tree_to_pp (const node &n, text_art::theme *theme, pretty_printer *pp)
std::unique_ptr< text > make_text_node (std::string str)

Enumeration Type Documentation

◆ kind

enum class diagnostics::markup::kind
strong
Enumerator
text 
compound 
math_half_open_interval 
math_negation 
math_product 
math_subtraction 
math_sum 
code_element_expr 
code_field_expr 
code_infix_binary_op 
inline_code 

Function Documentation

◆ child_needs_parens_p()

◆ dump_node_tree_to_pp()

void diagnostics::markup::dump_node_tree_to_pp ( const node & n,
text_art::theme * theme,
pretty_printer * pp )
static

◆ lower_and_append_with_any_parens()

void diagnostics::markup::lower_and_append_with_any_parens ( compound_node & dst_node,
const node & parent,
const node & child,
const lowering_options & opts )
static

◆ make_text_node()

std::unique_ptr< text > diagnostics::markup::make_text_node ( std::string str)
inline
Helpers for making nodes.   

References make_text_node().

Referenced by make_text_node().