GCC Middle and Back End API Reference
|
#include <pretty-print.h>
Public Member Functions | |
output_buffer () | |
output_buffer (const output_buffer &)=delete | |
output_buffer (output_buffer &&)=delete | |
~output_buffer () | |
output_buffer & | operator= (const output_buffer &)=delete |
output_buffer & | operator= (output_buffer &&)=delete |
pp_formatted_chunks * | push_formatted_chunks () |
void | pop_formatted_chunks () |
void | dump (FILE *out, int indent) const |
void DEBUG_FUNCTION | dump () const |
Data Fields | |
struct obstack | m_formatted_obstack |
struct obstack | m_chunk_obstack |
struct obstack * | m_obstack |
pp_formatted_chunks * | m_cur_formatted_chunks |
FILE * | m_stream |
int | m_line_length |
char | m_digit_buffer [128] |
bool | m_flush_p |
The output buffer datatype. This is best seen as an abstract datatype whose fields should not be accessed directly by clients.
output_buffer::output_buffer | ( | ) |
References m_chunk_obstack, and m_formatted_obstack.
|
delete |
|
delete |
output_buffer::~output_buffer | ( | ) |
References m_chunk_obstack, m_formatted_obstack, and NULL.
Referenced by pretty_printer::~pretty_printer().
|
inline |
void output_buffer::dump | ( | FILE * | out, |
int | indent ) const |
Dump state of this output_buffer to OUT, for debugging.
References m_chunk_obstack, m_cur_formatted_chunks, m_formatted_obstack, pp_formatted_chunks::m_prev, and print_hexdump().
Referenced by diagnostic_text_format_buffer::dump(), and pretty_printer::dump().
|
delete |
|
delete |
void output_buffer::pop_formatted_chunks | ( | ) |
Deallocate the current pp_formatted_chunks structure and everything after it (i.e. the associated series of formatted strings, pp_token_lists, and pp_tokens).
References gcc_assert, m_chunk_obstack, m_cur_formatted_chunks, and pp_formatted_chunks::m_prev.
pp_formatted_chunks * output_buffer::push_formatted_chunks | ( | ) |
Allocate a new pp_formatted_chunks from chunk_obstack and push it onto this buffer's stack. This represents the result of phases 1 and 2 of formatting.
References m_chunk_obstack, m_cur_formatted_chunks, and pp_formatted_chunks::m_prev.
Referenced by pretty_printer::format().
struct obstack output_buffer::m_chunk_obstack |
Referenced by dump(), pretty_printer::format(), output_buffer(), pop_formatted_chunks(), push_formatted_chunks(), and ~output_buffer().
pp_formatted_chunks* output_buffer::m_cur_formatted_chunks |
Referenced by dump(), pop_formatted_chunks(), and push_formatted_chunks().
char output_buffer::m_digit_buffer[128] |
bool output_buffer::m_flush_p |
struct obstack output_buffer::m_formatted_obstack |
int output_buffer::m_line_length |
struct obstack* output_buffer::m_obstack |
FILE* output_buffer::m_stream |