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

| Public Member Functions | |
| diagnostic_source_print_policy (const diagnostic_context &) | |
| diagnostic_source_print_policy (const diagnostic_context &, const diagnostic_source_printing_options &) | |
| void | print (pretty_printer &pp, const rich_location &richloc, diagnostic_t diagnostic_kind, diagnostic_source_effect_info *effect_info) const | 
| void | print_as_html (xml::printer &xp, const rich_location &richloc, diagnostic_t diagnostic_kind, diagnostic_source_effect_info *effect_info, html_label_writer *label_writer) const | 
| const diagnostic_source_printing_options & | get_options () const | 
| diagnostic_start_span_fn< to_text > | get_text_start_span_fn () const | 
| diagnostic_start_span_fn< to_html > | get_html_start_span_fn () const | 
| file_cache & | get_file_cache () const | 
| enum diagnostics_escape_format | get_escape_format () const | 
| text_art::theme * | get_diagram_theme () const | 
| const diagnostic_column_policy & | get_column_policy () const | 
| const diagnostic_location_print_policy & | get_location_policy () const | 
A bundle of state for printing source within a diagnostic, to isolate the interactions between diagnostic_context and the implementation of diagnostic_show_locus.
| diagnostic_source_print_policy::diagnostic_source_print_policy | ( | const diagnostic_context & | dc | ) | 
| diagnostic_source_print_policy::diagnostic_source_print_policy | ( | const diagnostic_context & | dc, | 
| const diagnostic_source_printing_options & | opts ) | 
| 
 | inline | 
References m_location_policy.
| 
 | inline | 
References m_diagram_theme.
Referenced by diagnostic_source_print_policy(), and diagnostic_source_print_policy().
| 
 | inline | 
References m_escape_format.
Referenced by diagnostic_source_print_policy(), and diagnostic_source_print_policy().
| 
 | inline | 
References m_file_cache.
Referenced by diagnostic_source_print_policy(), and diagnostic_source_print_policy().
| 
 | inline | 
References m_html_start_span_cb.
Referenced by to_html::invoke_start_span_fn(), and diagnostic_location_print_policy::print_html_span_start().
| 
 | inline | 
References m_location_policy.
| 
 | inline | 
References m_options.
Referenced by print_path_as_html().
| 
 | inline | 
References m_text_start_span_cb.
Referenced by to_text::invoke_start_span_fn(), and diagnostic_location_print_policy::print_text_span_start().
| void diagnostic_source_print_policy::print | ( | pretty_printer & | pp, | 
| const rich_location & | richloc, | ||
| diagnostic_t | diagnostic_kind, | ||
| diagnostic_source_effect_info * | effects ) const | 
Print to PP the physical source code corresponding to the location(s) in RICHLOC, with additional annotations, as if for a diagnostic of the given DIAGNOSTIC_KIND. If EFFECTS is non-null, then use and update it.
Referenced by sarif_builder::make_location_object(), and diagnostic_context::maybe_show_locus().
| void diagnostic_source_print_policy::print_as_html | ( | xml::printer & | xp, | 
| const rich_location & | richloc, | ||
| diagnostic_t | diagnostic_kind, | ||
| diagnostic_source_effect_info * | effects, | ||
| html_label_writer * | label_writer ) const | 
As above, but print in HTML form to XP. If non-null, use LABEL_WRITER when writing labelled ranges.
Referenced by diagnostic_context::maybe_show_locus_as_html().
| 
 | private | 
Referenced by diagnostic_source_print_policy(), diagnostic_source_print_policy(), and get_diagram_theme().
| 
 | private | 
Referenced by diagnostic_source_print_policy(), diagnostic_source_print_policy(), and get_escape_format().
| 
 | private | 
Referenced by diagnostic_source_print_policy(), diagnostic_source_print_policy(), and get_file_cache().
| 
 | private | 
Referenced by diagnostic_source_print_policy(), diagnostic_source_print_policy(), and get_html_start_span_fn().
| 
 | private | 
| 
 | private | 
Referenced by diagnostic_source_print_policy(), diagnostic_source_print_policy(), and get_options().
| 
 | private | 
Referenced by diagnostic_source_print_policy(), diagnostic_source_print_policy(), and get_text_start_span_fn().