GCC Middle and Back End API Reference
|
#include <pretty-print-format-impl.h>
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_info * | m_prev |
pp_token_list * | m_args [PP_NL_ARGMAX *2] |
Friends | |
class | pretty_printer |
class | pp_markup::context |
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.
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().
|
inline |
void chunk_info::dump | ( | FILE * | out | ) | const |
References pp_token_list::dump(), and m_args.
|
inline |
References m_args.
|
private |
|
private |
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.
|
friend |
|
friend |
|
private |
Referenced by append_formatted_chunk(), dump(), pretty_printer::format(), and get_token_lists().
|
private |
Referenced by pretty_printer::format(), and pop_from_output_buffer().