GCC Middle and Back End API Reference
|
Public Types | |
enum class | verb { unknown , acquire , release , enter , exit , call , return_ , branch , danger } |
enum class | noun { unknown , taint , sensitive , function , lock , memory , resource } |
enum class | property { unknown , true_ , false_ } |
Public Member Functions | |
libgdiagnostics_path_event (const diagnostic_physical_location *physical_loc, const diagnostic_logical_location *logical_loc, unsigned stack_depth, std::unique_ptr< diagnostic_graph > state_graph, std::unique_ptr< diagnostic_message_buffer > msg_buf) | |
location_t | get_location () const final override |
int | get_stack_depth () const final override |
void | print_desc (pretty_printer &pp) const final override |
diagnostics::logical_locations::key | get_logical_location () const final override |
meaning | get_meaning () const final override |
bool | connect_to_next_event_p () const final override |
diagnostics::paths::thread_id_t | get_thread_id () const final override |
std::unique_ptr< diagnostics::digraphs::digraph > | maybe_make_diagnostic_state_graph (bool) const final override |
virtual void | maybe_add_sarif_properties (sarif_builder &, sarif_object &) const |
label_text | get_desc (pretty_printer &ref_pp) const |
Static Private Member Functions | |
static label_text | make_desc (const char *gmsgid, va_list *args, bool colorize) |
Private Attributes | |
const diagnostic_physical_location * | m_physical_loc |
const diagnostic_logical_location * | m_logical_loc |
unsigned | m_stack_depth |
std::unique_ptr< diagnostic_graph > | m_state_graph |
std::unique_ptr< diagnostic_message_buffer > | m_msg_buf |
|
stronginherited |
|
stronginherited |
|
stronginherited |
|
inline |
References gcc_assert, m_logical_loc, m_msg_buf, m_physical_loc, m_stack_depth, and m_state_graph.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::event.
References final().
|
inherited |
Generate a label_text containing the description of this event (for debugging/logging purposes).
References pretty_printer::clone(), pp_formatted_text(), pp_show_color(), and print_desc().
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::event.
References as_location_t(), final(), and m_physical_loc.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::event.
References final(), impl_logical_location_manager::key_from_ptr(), and m_logical_loc.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::event.
References final().
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::event.
References final(), and m_stack_depth.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::event.
References final().
|
inlinestaticprivate |
|
inlinevirtualinherited |
Reimplemented in ana::checker_event, and ana::superedge_event.
Referenced by diagnostics::sarif_builder::populate_thread_flow_location_object().
|
inlinefinaloverridevirtual |
Reimplemented from diagnostics::paths::event.
References m_state_graph.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::event.
References m_msg_buf, and pp_printf().
|
private |
Referenced by get_logical_location(), and libgdiagnostics_path_event().
|
private |
Referenced by libgdiagnostics_path_event(), and print_desc().
|
private |
Referenced by get_location(), and libgdiagnostics_path_event().
|
private |
Referenced by get_stack_depth(), and libgdiagnostics_path_event().
|
private |
Referenced by libgdiagnostics_path_event(), and maybe_make_diagnostic_state_graph().