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

Data Structures

struct  auto_check_tag_nesting

Public Member Functions

 to_html (xml::printer &xp, const rich_location *richloc, html_label_writer *html_label_writer)
void emit_text_prefix ()
void push_html_tag (std::string name, bool preserve_whitespace)
void push_html_tag_with_class (std::string name, std::string class_, bool preserve_whitespace)
void pop_html_tag (const char *expected_name)
void add_html_tag_with_class (std::string name, std::string class_, bool preserve_whitespace)
void add_raw_html (const char *src)
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_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)
const location_range * get_location_range_by_idx (int range_idx)
const char * get_highlight_color_for_range_idx (int range_idx)

Static Public Member Functions

static bool is_text ()
static bool is_html ()

Data Fields

xml::printerm_xp
const rich_location * m_richloc

Private Attributes

html_label_writerm_html_label_writer
pretty_printer m_scratch_pp

Friends

class layout_printer< to_html >

Detailed Description

Writing HTML output.

Constructor & Destructor Documentation

◆ to_html()

to_html::to_html ( xml::printer & xp,
const rich_location * richloc,
html_label_writer * html_label_writer )
inline

Member Function Documentation

◆ add_character()

void to_html::add_character ( cppchar_t ch)
inline

◆ add_html_tag_with_class()

void to_html::add_html_tag_with_class ( std::string name,
std::string class_,
bool preserve_whitespace )
inline

References element, and m_xp.

◆ add_raw_html()

void to_html::add_raw_html ( const char * src)
inline

References m_xp.

◆ add_space()

void to_html::add_space ( )
inline

References m_xp.

◆ add_text()

void to_html::add_text ( const char * text)
inline

References m_xp, and text.

◆ add_utf8_byte()

void to_html::add_utf8_byte ( char b)
inline

References b, and m_xp.

◆ colorize_text_ensure_normal()

void to_html::colorize_text_ensure_normal ( )
inline

◆ colorize_text_for_cfg_edge()

void to_html::colorize_text_for_cfg_edge ( )
inline

◆ colorize_text_for_fixit_delete()

void to_html::colorize_text_for_fixit_delete ( )
inline

◆ colorize_text_for_fixit_insert()

void to_html::colorize_text_for_fixit_insert ( )
inline

◆ emit_text_prefix()

void to_html::emit_text_prefix ( )
inline

◆ get_highlight_color_for_range_idx()

const char * to_html::get_highlight_color_for_range_idx ( int range_idx)
inline

◆ get_location_range_by_idx()

const location_range * to_html::get_location_range_by_idx ( int range_idx)
inline

References m_richloc.

Referenced by get_highlight_color_for_range_idx().

◆ invoke_start_span_fn()

void to_html::invoke_start_span_fn ( const diagnostic_source_print_policy & source_policy,
const diagnostic_location_print_policy & loc_policy,
const expanded_location & exploc )
inline

◆ is_html()

bool to_html::is_html ( )
inlinestatic

◆ is_text()

bool to_html::is_text ( )
inlinestatic

◆ pop_html_tag()

void to_html::pop_html_tag ( const char * expected_name)
inline

References m_xp.

◆ print_decoded_char()

void to_html::print_decoded_char ( const char_display_policy & char_policy,
cpp_decoded_char cp )
inline

◆ push_html_tag()

void to_html::push_html_tag ( std::string name,
bool preserve_whitespace )
inline

References m_xp.

◆ push_html_tag_with_class()

void to_html::push_html_tag_with_class ( std::string name,
std::string class_,
bool preserve_whitespace )
inline

References m_xp.

◆ layout_printer< to_html >

friend class layout_printer< to_html >
friend

Field Documentation

◆ m_html_label_writer

html_label_writer* to_html::m_html_label_writer
private

Referenced by to_html().

◆ m_richloc

const rich_location* to_html::m_richloc

◆ m_scratch_pp

pretty_printer to_html::m_scratch_pp
private

Referenced by add_character().

◆ m_xp


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