GCC Middle and Back End API Reference
pp_formatted_chunks Class Reference

#include <pretty-print-format-impl.h>

Collaboration diagram for pp_formatted_chunks:

Public Member Functions

pp_token_list *const * get_token_lists () const
 
void append_formatted_chunk (obstack &s, const char *content)
 
void dump (FILE *out, int indent) const
 
void DEBUG_FUNCTION dump () const
 
pp_formatted_chunksget_prev () const
 

Private Attributes

pp_formatted_chunksm_prev
 
pp_token_listm_args [PP_NL_ARGMAX *2]
 

Friends

class pretty_printer
 
class pp_markup::context
 
class output_buffer
 

Detailed Description

The pp_formatted_chunks data structure forms a stack of the results from the
first phase of formatting (pp_format) which have not yet been
output (pp_output_formatted_text).  A stack is necessary because
the diagnostic starter may decide to generate its own output by way
of the formatter.   

Member Function Documentation

◆ append_formatted_chunk()

void pp_formatted_chunks::append_formatted_chunk ( obstack & s,
const char * content )
Adds a chunk to the end of formatted output, so that it
will be printed by pp_output_formatted_text.   

References m_args, pp_token_list::make(), and pp_token_list::push_back_text().

◆ dump() [1/2]

void DEBUG_FUNCTION pp_formatted_chunks::dump ( ) const
inline

References dump().

Referenced by dump().

◆ dump() [2/2]

void pp_formatted_chunks::dump ( FILE * out,
int indent ) const

References pp_token_list::dump(), and m_args.

◆ get_prev()

pp_formatted_chunks * pp_formatted_chunks::get_prev ( ) const
inline

References m_prev.

◆ get_token_lists()

pp_token_list *const * pp_formatted_chunks::get_token_lists ( ) const
inline

References m_args.

Friends And Related Symbol Documentation

◆ output_buffer

friend class output_buffer
friend

◆ pp_markup::context

friend class pp_markup::context
friend

◆ pretty_printer

friend class pretty_printer
friend

Field Documentation

◆ m_args

pp_token_list* pp_formatted_chunks::m_args[PP_NL_ARGMAX *2]
private

◆ m_prev


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