| GCC Middle and Back End API Reference
    | 

| Data Structures | |
| struct | auto_check_tag_nesting | 
| Public Member Functions | |
| to_text (pretty_printer &pp, colorizer &colorizer) | |
| to_text (pretty_printer &pp, colorizer *colorizer) | |
| ~to_text () | |
| void | emit_text_prefix () | 
| void | push_html_tag (std::string, bool) | 
| void | push_html_tag_with_class (std::string, std::string, bool) | 
| void | pop_html_tag (const char *) | 
| void | add_html_tag_with_class (std::string, std::string, bool) | 
| void | add_space () | 
| void | add_character (cppchar_t ch) | 
| void | add_utf8_byte (char b) | 
| void | add_text (const char *text) | 
| void | print_decoded_char (const char_display_policy &char_policy, cpp_decoded_char cp) | 
| void | colorize_text_ensure_normal () | 
| void | colorize_text_for_range_idx (int range_idx) | 
| void | colorize_text_for_cfg_edge () | 
| void | colorize_text_for_fixit_insert () | 
| void | colorize_text_for_fixit_delete () | 
| void | invoke_start_span_fn (const diagnostic_source_print_policy &source_policy, const diagnostic_location_print_policy &loc_policy, const expanded_location &exploc) | 
| void | add_newline () | 
| Static Public Member Functions | |
| static bool | is_text () | 
| static bool | is_html () | 
| Data Fields | |
| pretty_printer & | m_pp | 
| Private Attributes | |
| colorizer * | m_colorizer | 
| diagnostic_prefixing_rule_t | m_saved_rule | 
| Friends | |
| class | layout_printer< to_text > | 
This code is written generically to write either: - text, to a pretty_printer, potentially with colorization codes, or - html, to an xml::printer, with nested HTML tags. This is handled via a "Sink" template, which is either to_text or to_html.
Writing text output.
| 
 | inline | 
References DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE, m_colorizer, m_pp, m_saved_rule, and pp_prefixing_rule().
Referenced by to_text::auto_check_tag_nesting::auto_check_tag_nesting().
| 
 | inline | 
References DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE, m_colorizer, m_pp, m_saved_rule, and pp_prefixing_rule().
| 
 | inline | 
References m_pp, m_saved_rule, and pp_prefixing_rule().
| 
 | inline | 
References m_pp, and pp_unicode_character().
| 
 | inline | 
| 
 | inline | 
References m_pp, and pp_newline().
| 
 | inline | 
References m_pp, pp_string(), and text.
| 
 | inline | 
References b, m_pp, and pp_character().
| 
 | inline | 
References gcc_assert, and m_colorizer.
| 
 | inline | 
References gcc_assert, and m_colorizer.
| 
 | inline | 
References gcc_assert, and m_colorizer.
| 
 | inline | 
References gcc_assert, and m_colorizer.
| 
 | inline | 
References gcc_assert, and m_colorizer.
| 
 | inline | 
References m_pp, and pp_emit_prefix().
| 
 | inline | 
| 
 | inlinestatic | 
| 
 | inlinestatic | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | friend | 
| 
 | private | 
| pretty_printer& to_text::m_pp | 
Referenced by add_character(), add_newline(), add_space(), add_text(), add_utf8_byte(), emit_text_prefix(), to_text(), to_text(), and ~to_text().
| 
 | private | 
Referenced by to_text(), to_text(), and ~to_text().