GCC Middle and Back End API Reference
diagnostics::location_print_policy Class Reference

#include <context.h>

Collaboration diagram for diagnostics::location_print_policy:

Public Member Functions

 location_print_policy (const context &dc)
 location_print_policy (const text_sink &)
bool show_column_p () const
const column_policyget_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

Detailed Description

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.   

Constructor & Destructor Documentation

◆ location_print_policy() [1/2]

diagnostics::location_print_policy::location_print_policy ( const context & dc)

References m_column_policy, and m_show_column.

◆ location_print_policy() [2/2]

diagnostics::location_print_policy::location_print_policy ( const text_sink & text_output)

References m_column_policy, and m_show_column.

Member Function Documentation

◆ get_column_policy()

const column_policy & diagnostics::location_print_policy::get_column_policy ( ) const
inline

◆ print_html_span_start()

void diagnostics::location_print_policy::print_html_span_start ( const context & dc,
xml::printer & xp,
const expanded_location & exploc )

◆ print_text_span_start()

void diagnostics::location_print_policy::print_text_span_start ( const context & dc,
pretty_printer & pp,
const expanded_location & exploc )

◆ show_column_p()

bool diagnostics::location_print_policy::show_column_p ( ) const
inline

Field Documentation

◆ m_column_policy

column_policy diagnostics::location_print_policy::m_column_policy
private

◆ m_show_column

bool diagnostics::location_print_policy::m_show_column
private

The documentation for this class was generated from the following files: