Public Member Functions | |
diagnostic_text_format_buffer (diagnostic_output_format &format) | |
void | dump (FILE *out, int indent) const final override |
bool | empty_p () const final override |
void | move_to (diagnostic_per_format_buffer &dest) final override |
void | clear () final override |
void | flush () final override |
void DEBUG_FUNCTION | dump () const |
Private Attributes | |
diagnostic_output_format & | m_format |
output_buffer | m_output_buffer |
Friends | |
class | diagnostic_text_output_format |
Disable warnings about quoting issues in the pp_xxx calls below that (intentionally) don't follow GCC diagnostic conventions.
Concrete buffering implementation subclass for JSON output.
diagnostic_text_format_buffer::diagnostic_text_format_buffer | ( | diagnostic_output_format & | format | ) |
class diagnostic_text_format_buffer : public diagnostic_per_format_buffer.
References diagnostic_text_format_buffer(), m_format, and m_output_buffer.
Referenced by diagnostic_text_format_buffer(), and move_to().
|
finaloverridevirtual |
Implements diagnostic_per_format_buffer.
References empty_p(), gcc_assert, m_format, m_output_buffer, pp_buffer(), and pp_clear_output_area().
Referenced by diagnostic_text_output_format.
|
inlineinherited |
References DEBUG_FUNCTION, and dump().
Referenced by dump().
|
finaloverridevirtual |
Implements diagnostic_per_format_buffer.
References m_output_buffer.
|
finaloverridevirtual |
Implements diagnostic_per_format_buffer.
References m_output_buffer, and output_buffer_last_position_in_text().
|
finaloverridevirtual |
Implements diagnostic_per_format_buffer.
References empty_p(), gcc_assert, m_format, m_output_buffer, pp_buffer(), and pp_really_flush().
Referenced by diagnostic_text_output_format.
|
finaloverridevirtual |
Implements diagnostic_per_format_buffer.
References diagnostic_text_format_buffer(), m_output_buffer, output_buffer_append_r(), and output_buffer_formatted_text().
Referenced by diagnostic_text_output_format.
|
friend |
References clear(), diagnostic_text_output_format, final(), flush(), and move_to().
Referenced by diagnostic_text_output_format.
|
private |
Referenced by clear(), diagnostic_text_format_buffer(), and flush().
|
private |
Referenced by clear(), diagnostic_text_format_buffer(), dump(), empty_p(), flush(), move_to(), and diagnostic_text_output_format::set_buffer().