GCC Middle and Back End API Reference
|
Public Member Functions | |
diagnostic_text_sink (diagnostic_manager &mgr, FILE *dst_stream, enum diagnostic_colorize colorize) | |
diagnostic_source_printing_options & | get_source_printing_options () |
void | set_colorize (enum diagnostic_colorize colorize) |
Static Public Member Functions | |
static void | text_starter (diagnostic_text_output_format &text_output, const diagnostic_info *diagnostic) |
Protected Attributes | |
diagnostic_manager & | m_mgr |
Private Attributes | |
diagnostic_text_output_format * | m_inner_sink |
diagnostic_source_printing_options | m_source_printing |
This has to be a "struct" as it is exposed in the C API.
diagnostic_text_sink::diagnostic_text_sink | ( | diagnostic_manager & | mgr, |
FILE * | dst_stream, | ||
enum diagnostic_colorize | colorize ) |
struct diagnostic_text_sink : public sink.
References diagnostic_context::add_sink(), diagnostic_manager::get_dc(), m_inner_sink, m_source_printing, make_unique(), and set_colorize().
|
inline |
References m_source_printing.
Referenced by diagnostic_text_sink_set_labelled_source_colorization_enabled(), and diagnostic_text_sink_set_source_printing_enabled().
void diagnostic_text_sink::set_colorize | ( | enum diagnostic_colorize | colorize | ) |
References DIAGNOSTIC_COLORIZE_IF_TTY, DIAGNOSTIC_COLORIZE_NO, DIAGNOSTIC_COLORIZE_YES, gcc_unreachable, diagnostic_manager::get_dc(), diagnostic_output_format::get_printer(), diagnostic_context::get_reference_printer(), m_inner_sink, sink::m_mgr, and pp_show_color().
Referenced by diagnostic_text_sink(), and diagnostic_text_sink_set_colorize().
|
static |
References _, diagnostic_text_output_format::build_prefix(), gcc_assert, diagnostic_logical_location::get_kind(), diagnostic::get_logical_location(), diagnostic::get_manager(), diagnostic_logical_location::get_name_with_scope(), diagnostic_manager::get_prev_diag_logical_loc(), diagnostic_output_format::get_printer(), LOGICAL_LOCATION_KIND_FUNCTION, pp_character(), pp_newline(), pp_printf(), pp_set_prefix(), and diagnostic_info::x_data.
Referenced by diagnostic_manager::diagnostic_manager().
|
private |
Referenced by diagnostic_text_sink(), and set_colorize().
|
protectedinherited |
Referenced by set_colorize().
|
private |
Referenced by diagnostic_text_sink(), and get_source_printing_options().