GCC Middle and Back End API Reference
chunk_info Class Reference

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

Collaboration diagram for chunk_info:

Public Member Functions

pp_token_list *const * get_token_lists () const
 
void append_formatted_chunk (obstack &s, const char *content)
 
void pop_from_output_buffer (output_buffer &buf)
 
void dump (FILE *out) const
 
void DEBUG_FUNCTION dump () const
 

Private Member Functions

void on_begin_quote (const output_buffer &buf, unsigned chunk_idx, const urlifier *urlifier)
 
void on_end_quote (pretty_printer *pp, output_buffer &buf, unsigned chunk_idx, const urlifier *urlifier)
 

Private Attributes

chunk_infom_prev
 
pp_token_listm_args [PP_NL_ARGMAX *2]
 

Friends

class pretty_printer
 
class pp_markup::context
 

Detailed Description

The chunk_info 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 chunk_info::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 chunk_info::dump ( ) const
inline

References dump().

Referenced by dump().

◆ dump() [2/2]

void chunk_info::dump ( FILE * out) const

References pp_token_list::dump(), and m_args.

◆ get_token_lists()

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

References m_args.

◆ on_begin_quote()

void chunk_info::on_begin_quote ( const output_buffer & buf,
unsigned chunk_idx,
const urlifier * urlifier )
private

◆ on_end_quote()

void chunk_info::on_end_quote ( pretty_printer * pp,
output_buffer & buf,
unsigned chunk_idx,
const urlifier * urlifier )
private

◆ pop_from_output_buffer()

void chunk_info::pop_from_output_buffer ( output_buffer & buf)
Deallocate the current chunk structure and everything after it (i.e. the
associated series of formatted strings).   

References output_buffer::chunk_obstack, output_buffer::cur_chunk_array, and m_prev.

Friends And Related Symbol Documentation

◆ pp_markup::context

friend class pp_markup::context
friend

◆ pretty_printer

friend class pretty_printer
friend

Field Documentation

◆ m_args

◆ m_prev

chunk_info* chunk_info::m_prev
private

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