GCC Middle and Back End API Reference
pretty_printer Struct Reference

#include <pretty-print.h>

Collaboration diagram for pretty_printer:

Public Member Functions

 pretty_printer (const char *=NULL, int=0)
virtual ~pretty_printer ()

Data Fields

output_bufferbuffer
const char * prefix
pp_padding padding
int maximum_length
int indent_skip
pp_wrapping_mode_t wrapping
printer_fn format_decoder
bool emitted_prefix
bool need_newline
bool translate_identifiers
bool show_color

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::pretty_printer ( const char *  p = NULL,
int  l = 0 
)
explicit
Construct a PRETTY-PRINTER with PREFIX and of MAXIMUM_LENGTH
   characters per line.   

References DIAGNOSTICS_SHOW_PREFIX_ONCE, and pp_set_prefix().

pretty_printer::~pretty_printer ( )
virtual

Field Documentation

bool pretty_printer::emitted_prefix
printer_fn pretty_printer::format_decoder
int pretty_printer::indent_skip
int pretty_printer::maximum_length
bool pretty_printer::need_newline
pp_padding pretty_printer::padding

Referenced by pp_maybe_space().

bool pretty_printer::show_color
bool pretty_printer::translate_identifiers
pp_wrapping_mode_t pretty_printer::wrapping

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