GCC Middle and Back End API Reference
|
Private Types | |
typedef std::map< diagnostic_logical_location, std::unique_ptr< diagnostic_logical_location > > | logical_locs_map_t |
Private Member Functions | |
void | ensure_linemap_for_file_and_line (const diagnostic_file *file, diagnostic_line_num_t linenum) |
const diagnostic_physical_location * | new_location (location_t loc) |
Private Attributes | |
diagnostic_context | m_dc |
line_maps | m_line_table |
impl_client_version_info | m_client_version_info |
std::vector< std::unique_ptr< sink > > | m_sinks |
hash_map< nofree_string_hash, diagnostic_file * > | m_str_to_file_map |
hash_map< int_hash< location_t, UNKNOWN_LOCATION, location_t(-1)>, diagnostic_physical_location * > | m_location_t_map |
logical_locs_map_t | m_logical_locs |
const diagnostic * | m_current_diag |
const diagnostic_logical_location * | m_prev_diag_logical_loc |
std::unique_ptr< edit_context > | m_edit_context |
This has to be a "struct" as it is exposed in the C API.
|
private |
|
inline |
|
inline |
References diagnostic_finish(), free(), and i.
|
inline |
Referenced by diagnostic_manager_add_sarif_sink(), and diagnostic_manager_add_text_sink().
|
inline |
References gcc_assert, and diagnostic_physical_location::m_mgr.
Referenced by diagnostic_add_fix_it_hint_delete(), diagnostic_add_fix_it_hint_insert_after(), diagnostic_add_fix_it_hint_insert_before(), diagnostic_add_fix_it_hint_replace(), diagnostic_add_location(), diagnostic_add_location_with_label(), and diagnostic_set_location().
|
inline |
Referenced by diagnostic_manager_begin_group().
void diagnostic_manager::emit | ( | diagnostic & | diag, |
const char * | msgid, | ||
va_list * | args ) |
References diagnostic_context::begin_group(), diagnostic_report_diagnostic(), diagnostic_set_info(), diagnostic_t_from_diagnostic_level(), diagnostic_context::end_group(), GCC_DIAGNOSTIC_POP, GCC_DIAGNOSTIC_PUSH_IGNORED, diagnostic::get_level(), diagnostic::get_logical_location(), diagnostic::get_metadata(), diagnostic::get_rich_location(), m_current_diag, m_dc, m_edit_context, m_prev_diag_logical_loc, diagnostic_info::metadata, set_line_table_global(), and diagnostic_info::x_data.
Referenced by diagnostic_finish_va().
|
inline |
Referenced by diagnostic_manager_end_group().
|
inlineprivate |
References diagnostic_file::get_name(), map, and UNKNOWN_LOCATION.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by sarif_sink::sarif_sink().
|
inline |
Referenced by diagnostic_text_sink::text_starter().
|
inline |
References gcc_assert.
Referenced by impl_diagnostic_client_data_hooks::maybe_get_sarif_source_language().
diagnostic_execution_path * diagnostic_manager::new_execution_path | ( | ) |
Referenced by diagnostic_manager_new_execution_path().
|
inline |
References diagnostic_file::get_name().
Referenced by diagnostic_manager_new_file().
|
inlineprivate |
References UNKNOWN_LOCATION.
|
inline |
Referenced by diagnostic_manager_new_location_from_file_and_line().
|
inline |
Referenced by diagnostic_manager_new_location_from_file_line_column().
|
inline |
References as_location_t().
Referenced by diagnostic_manager_new_location_from_range().
|
inline |
References make_unique().
Referenced by diagnostic_manager_new_logical_location().
|
inline |
void diagnostic_manager::write_patch | ( | FILE * | dst_stream | ) |
struct diagnostic_manager.
References m_edit_context, pp_flush(), and pretty_printer::set_output_stream().
Referenced by diagnostic_manager_write_patch().
|
private |
|
private |
Referenced by emit().
|
private |
Referenced by emit().
|
private |
Referenced by emit(), and write_patch().
|
private |
|
private |
|
private |
|
private |
Referenced by emit().
|
private |
|
private |