◆ 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 |
◆ flush_to_file()
void json_output_format::flush_to_file |
( |
FILE * | outf | ) |
|
|
inlineprotectedinherited |
◆ get_context()
◆ get_diagram_theme()
text_art::theme * diagnostic_output_format::get_diagram_theme |
( |
| ) |
const |
|
inlineinherited |
◆ get_printer()
References diagnostic_output_format::m_context, and diagnostic_context::m_printer.
Referenced by diagnostic_text_output_format::append_note(), diagnostic_text_output_format::build_prefix(), default_diagnostic_text_finalizer(), default_diagnostic_text_starter(), default_tree_diagnostic_text_starter(), diagnostic_text_output_format::file_name_as_prefix(), diagnostic_text_output_format::get_location_text(), lhd_print_error_function(), diagnostic_text_output_format::on_diagram(), diagnostic_text_output_format::on_report_diagnostic(), json_output_format::on_report_diagnostic(), diagnostic_text_output_format::print_any_cwe(), diagnostic_text_output_format::print_any_rules(), diagnostic_text_output_format::print_option_information(), diagnostic_text_output_format::report_current_module(), and diagnostic_text_output_format::~diagnostic_text_output_format().
◆ machine_readable_stderr_p()
bool json_file_output_format::machine_readable_stderr_p |
( |
| ) |
const |
|
inlinefinaloverridevirtual |
◆ 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 json::array::append(), free(), gcc_assert, get_diagnostic_kind_text(), diagnostic_output_format::get_printer(), diagnostic_context::get_urlifier(), i, json_from_fixit_hint(), json_from_location_range(), json_from_metadata(), diagnostic_info::kind, diagnostic_context::m_column_origin, diagnostic_output_format::m_context, json_output_format::m_cur_children_array, json_output_format::m_cur_group, json_output_format::m_toplevel_array, make_json_for_path(), diagnostic_context::make_option_name(), diagnostic_context::make_option_url(), make_unique(), diagnostic_info::metadata, diagnostic_info::option_id, pp_clear_output_area(), pp_formatted_text(), pp_output_formatted_text(), diagnostic_info::richloc, json::object::set(), json::object::set_bool(), json::object::set_integer(), and json::object::set_string().
◆ m_base_file_name
char* json_file_output_format::m_base_file_name |
|
private |
◆ m_context
◆ m_cur_children_array
◆ m_cur_group
◆ m_formatted
bool json_output_format::m_formatted |
|
privateinherited |
◆ 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: