GCC Middle and Back End API Reference
diagnostic_json_format_buffer Class Reference
Inheritance diagram for diagnostic_json_format_buffer:
Collaboration diagram for diagnostic_json_format_buffer:

Public Member Functions

 diagnostic_json_format_buffer (json_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

json_output_formatm_format
 
std::vector< std::unique_ptr< json::object > > m_results
 

Friends

class json_output_format
 

Detailed Description

Concrete buffering implementation subclass for JSON output.   

Constructor & Destructor Documentation

◆ diagnostic_json_format_buffer()

diagnostic_json_format_buffer::diagnostic_json_format_buffer ( json_output_format & format)
inline

Member Function Documentation

◆ clear()

void diagnostic_json_format_buffer::clear ( )
finaloverridevirtual

Implements diagnostic_per_format_buffer.

References m_results.

◆ dump() [1/2]

void diagnostic_json_format_buffer::dump ( FILE * out,
int indent ) const
finaloverridevirtual
class diagnostic_json_format_buffer : public diagnostic_per_format_buffer.   

Implements diagnostic_per_format_buffer.

References m_results.

◆ dump() [2/2]

void DEBUG_FUNCTION diagnostic_per_format_buffer::dump ( ) const
inlineinherited

◆ empty_p()

bool diagnostic_json_format_buffer::empty_p ( ) const
finaloverridevirtual

Implements diagnostic_per_format_buffer.

References m_results.

◆ flush()

void diagnostic_json_format_buffer::flush ( )
finaloverridevirtual

◆ move_to()

void diagnostic_json_format_buffer::move_to ( diagnostic_per_format_buffer & dest)
finaloverridevirtual

Implements diagnostic_per_format_buffer.

References m_results.

Friends And Related Symbol Documentation

◆ json_output_format

friend class json_output_format
friend

Field Documentation

◆ m_format

json_output_format& diagnostic_json_format_buffer::m_format
private

Referenced by flush().

◆ m_results

std::vector<std::unique_ptr<json::object> > diagnostic_json_format_buffer::m_results
private

Referenced by clear(), dump(), empty_p(), flush(), and move_to().


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