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 |
References m_diag_mgr, m_level, m_logical_loc, m_path, and m_rich_loc.
|
inline |
References m_diag_mgr, m_path, and m_rich_loc.
Referenced by diagnostic_add_execution_path().
|
inline |
References as_location_t(), and m_rich_loc.
Referenced by diagnostic_add_location().
|
inline |
References as_location_t(), m_labels, and m_rich_loc.
Referenced by diagnostic_add_location_with_label().
|
inline |
References m_metadata, and m_rules.
Referenced by diagnostic_add_rule().
|
inline |
References m_level.
Referenced by diagnostic_manager::emit().
|
inline |
References m_logical_loc.
Referenced by diagnostic_manager::emit(), and diagnostic_text_sink::text_starter().
|
inline |
References m_diag_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(), diagnostic_finish_va(), diagnostic_set_location(), and diagnostic_text_sink::text_starter().
|
inline |
References m_metadata.
Referenced by diagnostic_manager::emit().
|
inline |
|
inline |
References m_metadata.
Referenced by diagnostic_set_cwe().
|
inline |
References as_location_t(), and m_rich_loc.
Referenced by diagnostic_set_location().
|
inline |
References m_logical_loc.
Referenced by diagnostic_set_logical_location().
|
inline |
References m_path, m_rich_loc, and path.
Referenced by diagnostic_take_execution_path().
|
private |
Referenced by add_execution_path(), diagnostic(), and get_manager().
|
private |
Referenced by add_location_with_label().
|
private |
Referenced by diagnostic(), and get_level().
|
private |
Referenced by diagnostic(), get_logical_location(), and set_logical_location().
|
private |
Referenced by add_rule(), get_metadata(), and set_cwe().
|
private |
Referenced by add_execution_path(), diagnostic(), and take_execution_path().
|
private |
|
private |
Referenced by add_rule().