GCC Middle and Back End API Reference
pretty_printer Class Reference

#include <pretty-print.h>

Inheritance diagram for pretty_printer:
Collaboration diagram for pretty_printer:

Public Member Functions

 pretty_printer (int=0)
 
 pretty_printer (const pretty_printer &other)
 
virtual ~pretty_printer ()
 
virtual pretty_printerclone () const
 

Data Fields

output_bufferbuffer
 
charprefix
 
pp_padding padding
 
int maximum_length
 
int indent_skip
 
pp_wrapping_mode_t wrapping
 
printer_fn format_decoder
 
format_postprocessorm_format_postprocessor
 
bool emitted_prefix
 
bool need_newline
 
bool translate_identifiers
 
bool show_color
 
diagnostic_url_format url_format
 
bool m_skipping_null_url
 

Detailed Description

The data structure that contains the bare minimum required to do
proper pretty-printing.  Clients may derived from this structure
and add additional fields they need.   

Constructor & Destructor Documentation

◆ pretty_printer() [1/2]

pretty_printer::pretty_printer ( int maximum_length = 0)
explicit
Construct a PRETTY-PRINTER of MAXIMUM_LENGTH characters per line.   

References DIAGNOSTICS_SHOW_PREFIX_ONCE, maximum_length, NULL, pp_line_cutoff, pp_prefixing_rule, and pp_set_prefix().

Referenced by clone().

◆ pretty_printer() [2/2]

pretty_printer::pretty_printer ( const pretty_printer & other)
explicit

◆ ~pretty_printer()

pretty_printer::~pretty_printer ( )
virtual

Member Function Documentation

◆ clone()

pretty_printer * pretty_printer::clone ( ) const
virtual
Base class implementation of pretty_printer::clone vfunc.   

References pretty_printer().

Referenced by attr_access::array_as_string().

Field Documentation

◆ buffer

◆ emitted_prefix

bool pretty_printer::emitted_prefix

◆ format_decoder

printer_fn pretty_printer::format_decoder

◆ indent_skip

int pretty_printer::indent_skip

◆ m_format_postprocessor

format_postprocessor* pretty_printer::m_format_postprocessor

◆ m_skipping_null_url

bool pretty_printer::m_skipping_null_url

Referenced by pp_begin_url(), and pp_end_url().

◆ maximum_length

◆ need_newline

bool pretty_printer::need_newline

◆ padding

pp_padding pretty_printer::padding

Referenced by pp_maybe_space().

◆ prefix

◆ show_color

bool pretty_printer::show_color

◆ translate_identifiers

bool pretty_printer::translate_identifiers

◆ url_format

◆ wrapping

pp_wrapping_mode_t pretty_printer::wrapping

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