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 |
const diagnostic_source_printing_options & | get_options () const |
diagnostic_start_span_fn | get_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 |
Private Attributes | |
const diagnostic_source_printing_options & | m_options |
class diagnostic_location_print_policy | m_location_policy |
diagnostic_start_span_fn | m_start_span_cb |
file_cache & | m_file_cache |
text_art::theme * | m_diagram_theme |
enum diagnostics_escape_format | m_escape_format |
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_location_policy.
|
inline |
References m_options.
|
inline |
References m_start_span_cb.
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().
|
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 |
|
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_start_span_fn().