GCC Middle and Back End API Reference
|
#include <context.h>
Public Member Functions | |
location_print_policy (const context &dc) | |
location_print_policy (const text_sink &) | |
bool | show_column_p () const |
const column_policy & | get_column_policy () const |
void | print_text_span_start (const context &dc, pretty_printer &pp, const expanded_location &exploc) |
void | print_html_span_start (const context &dc, xml::printer &xp, const expanded_location &exploc) |
Private Attributes | |
column_policy | m_column_policy |
bool | m_show_column |
A bundle of state for printing locations within diagnostics (e.g. "FILENAME:LINE:COLUMN"), to isolate the interactions between context and the start_span callbacks.
diagnostics::location_print_policy::location_print_policy | ( | const context & | dc | ) |
References m_column_policy, and m_show_column.
diagnostics::location_print_policy::location_print_policy | ( | const text_sink & | text_output | ) |
References m_column_policy, and m_show_column.
|
inline |
References m_column_policy.
Referenced by diagnostics::default_start_span_fn< to_text >(), and diagnostics::to_text::layout_printer< to_text >.
void diagnostics::location_print_policy::print_html_span_start | ( | const context & | dc, |
xml::printer & | xp, | ||
const expanded_location & | exploc ) |
void diagnostics::location_print_policy::print_text_span_start | ( | const context & | dc, |
pretty_printer & | pp, | ||
const expanded_location & | exploc ) |
|
inline |
References m_show_column.
Referenced by diagnostics::default_start_span_fn< to_text >(), and diagnostics::to_text::layout_printer< to_text >.
|
private |
Referenced by get_column_policy(), location_print_policy(), and location_print_policy().
|
private |
Referenced by location_print_policy(), location_print_policy(), and show_column_p().