GCC Middle and Back End API Reference
|
Public Member Functions | |
diagnostic (diagnostic_manager &diag_mgr, enum diagnostic_level level) | |
diagnostic_manager & | get_manager () const |
enum diagnostic_level | get_level () const |
rich_location * | get_rich_location () |
const diagnostic_metadata * | get_metadata () |
void | set_cwe (unsigned cwe_id) |
void | add_rule (const char *title, const char *url) |
void | set_location (const diagnostic_physical_location *loc) |
void | add_location (const diagnostic_physical_location *loc) |
void | add_location_with_label (const diagnostic_physical_location *loc, const char *text) |
void | set_logical_location (const diagnostic_logical_location *logical_loc) |
const diagnostic_logical_location * | get_logical_location () const |
diagnostic_execution_path * | add_execution_path () |
void | take_execution_path (diagnostic_execution_path *path) |
Private Attributes | |
diagnostic_manager & | m_diag_mgr |
enum diagnostic_level | m_level |
impl_rich_location | m_rich_loc |
const diagnostic_logical_location * | m_logical_loc |
diagnostic_metadata | m_metadata |
std::vector< std::unique_ptr< range_label > > | m_labels |
std::vector< std::unique_ptr< impl_rule > > | m_rules |
std::unique_ptr< diagnostic_execution_path > | m_path |
This has to be a "struct" as it is exposed in the C API.
|
inline |
|
inline |
References make_unique().
Referenced by diagnostic_add_execution_path().
|
inline |
References as_location_t().
Referenced by diagnostic_add_location().
|
inline |
References as_location_t(), and make_unique().
Referenced by diagnostic_add_location_with_label().
|
inline |
References make_unique().
Referenced by diagnostic_add_rule().
|
inline |
Referenced by diagnostic_manager::emit().
|
inline |
|
inline |
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(), diagnostic_finish_va(), diagnostic_set_location(), and diagnostic_text_sink::text_starter().
|
inline |
Referenced by diagnostic_manager::emit().
|
inline |
|
inline |
Referenced by diagnostic_set_cwe().
|
inline |
References as_location_t().
Referenced by diagnostic_set_location().
|
inline |
Referenced by diagnostic_set_logical_location().
|
inline |
Referenced by diagnostic_take_execution_path().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |