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

Public Member Functions

 custom_token_printer (dump_pretty_printer &dump_pp)
 
void print_tokens (pretty_printer *pp, const pp_token_list &tokens) final override
 
void emit_any_pending_textual_chunks ()
 

Data Fields

dump_pretty_printerm_dump_pp
 
optinfom_optinfo
 

Constructor & Destructor Documentation

◆ custom_token_printer()

dump_pretty_printer::custom_token_printer::custom_token_printer ( dump_pretty_printer & dump_pp)
inline

Member Function Documentation

◆ emit_any_pending_textual_chunks()

void dump_pretty_printer::custom_token_printer::emit_any_pending_textual_chunks ( )
Subroutine of dump_pretty_printer::custom_token_printer::print_tokens
for consolidating multiple adjacent pure-text chunks into single
optinfo_items (in phase 3).   

References dump_pretty_printer::emit_item(), gcc_assert, output_buffer::m_formatted_obstack, output_buffer::m_obstack, make_unique(), OPTINFO_ITEM_KIND_TEXT, output_buffer_last_position_in_text(), pretty_printer::pp_buffer, pp_formatted_text(), and UNKNOWN_LOCATION.

Referenced by print_tokens().

◆ print_tokens()

Field Documentation

◆ m_dump_pp

dump_pretty_printer& dump_pretty_printer::custom_token_printer::m_dump_pp

Referenced by print_tokens().

◆ m_optinfo

optinfo* dump_pretty_printer::custom_token_printer::m_optinfo

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