◆ json_file_output_format()
json_file_output_format::json_file_output_format |
( |
diagnostic_context & | context, |
|
|
bool | formatted, |
|
|
const char * | base_file_name ) |
|
inline |
◆ ~json_file_output_format()
json_file_output_format::~json_file_output_format |
( |
| ) |
|
|
inline |
◆ after_diagnostic()
|
inlinefinaloverridevirtualinherited |
◆ dump() [1/2]
◆ dump() [2/2]
void json_output_format::dump |
( |
FILE * | out, |
|
|
int | indent ) const |
|
inlineoverridevirtualinherited |
◆ flush_to_file()
void json_output_format::flush_to_file |
( |
FILE * | outf | ) |
|
|
inlineprotectedinherited |
◆ follows_reference_printer_p()
bool json_output_format::follows_reference_printer_p |
( |
| ) |
const |
|
inlinefinaloverridevirtualinherited |
◆ get_context()
◆ get_diagram_theme()
text_art::theme * diagnostic_output_format::get_diagram_theme |
( |
| ) |
const |
|
inlineinherited |
◆ get_printer()
◆ machine_readable_stderr_p()
bool json_file_output_format::machine_readable_stderr_p |
( |
| ) |
const |
|
inlinefinaloverridevirtual |
◆ make_per_format_buffer()
|
inlinefinaloverridevirtualinherited |
◆ on_begin_group()
void json_output_format::on_begin_group |
( |
| ) |
|
|
inlinefinaloverridevirtualinherited |
◆ on_diagram()
|
inlinefinaloverridevirtualinherited |
◆ on_end_group()
void json_output_format::on_end_group |
( |
| ) |
|
|
inlinefinaloverridevirtualinherited |
◆ on_report_diagnostic()
|
finaloverridevirtualinherited |
Implementation of "on_report_diagnostic" vfunc for JSON output.
Generate a JSON object for DIAGNOSTIC, and store for output
within current diagnostic group.
Implements diagnostic_output_format.
References free(), gcc_assert, get_diagnostic_kind_text(), i, json_from_fixit_hint(), json_from_location_range(), json_from_metadata(), make_json_for_path(), make_unique(), pp_clear_output_area(), pp_formatted_text(), pp_output_formatted_text(), json::object::set(), json::object::set_bool(), json::object::set_integer(), and json::object::set_string().
◆ on_report_verbatim()
void diagnostic_output_format::on_report_verbatim |
( |
text_info & | | ) |
|
|
virtualinherited |
◆ set_buffer()
|
inlinefinaloverridevirtualinherited |
◆ update_printer()
void json_output_format::update_printer |
( |
| ) |
|
|
inlinefinaloverridevirtualinherited |
◆ m_base_file_name
char* json_file_output_format::m_base_file_name |
|
private |
◆ m_buffer
◆ m_context
◆ m_cur_children_array
◆ m_cur_group
◆ m_formatted
bool json_output_format::m_formatted |
|
privateinherited |
◆ m_printer
◆ m_toplevel_array
std::unique_ptr<json::array> json_output_format::m_toplevel_array |
|
privateinherited |
The documentation for this class was generated from the following file: