GCC Middle and Back End API Reference
|
#include <checker-path.h>
Private Member Functions | |
DISABLE_COPY_AND_ASSIGN (checker_path) | |
bool | get_first_event_in_a_function (unsigned *out_idx) const |
Private Attributes | |
const extrinsic_state & | m_ext_state |
simple_diagnostic_thread | m_thread |
auto_delete_vec< checker_event > | m_events |
hash_map< const exploded_node *, diagnostics::paths::event_id_t > | m_setjmp_event_ids |
logger * | m_logger |
const logical_locations::manager & | m_logical_loc_mgr |
Subclass of diagnostic path for analyzer diagnostics.
|
inline |
References m_ext_state, m_logger, m_thread, and diagnostics::paths::path::path().
Referenced by DISABLE_COPY_AND_ASSIGN().
void ana::checker_path::add_event | ( | std::unique_ptr< checker_event > | event | ) |
void ana::checker_path::add_region_creation_events | ( | pending_diagnostic * | pd, |
const region * | reg, | ||
const region_model * | model, | ||
const event_loc_info & | loc_info, | ||
bool | debug ) |
References debug().
bool ana::checker_path::cfg_edge_pair_at_p | ( | unsigned | idx | ) | const |
void ana::checker_path::debug | ( | ) | const |
Referenced by add_region_creation_events().
|
inline |
References m_events.
|
inline |
|
private |
References checker_path().
void ana::checker_path::dump | ( | pretty_printer * | pp | ) | const |
void ana::checker_path::fixup_locations | ( | pending_diagnostic * | pd | ) |
|
inline |
References m_events.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::path.
References m_events.
|
inline |
References m_ext_state.
|
privateinherited |
class diagnostics::paths::path.
Subroutine of path::interprocedural_p. Look for the first event in this path that is within a function i.e. has a non-null logical location for which function_p is true. If found, write its index to *OUT_IDX and return true. Otherwise return false.
References get_event(), diagnostics::paths::event::get_logical_location(), i, m_logical_loc_mgr, and num_events().
Referenced by interprocedural_p().
|
inlineinherited |
References m_logical_loc_mgr.
Referenced by diagnostics::text_sink::print_path().
|
inline |
References m_setjmp_event_ids.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::path.
References m_thread.
void ana::checker_path::inject_any_inlined_call_events | ( | logger * | logger | ) |
|
inherited |
Return true if the events in this path involve more than one function, or false if it is purely intraprocedural.
References get_event(), get_first_event_in_a_function(), diagnostics::paths::event::get_stack_depth(), i, num_events(), and same_function_p().
void ana::checker_path::maybe_log | ( | logger * | logger, |
const char * | desc ) const |
|
inherited |
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::path.
|
inlinefinaloverridevirtual |
Implements diagnostics::paths::path.
References final().
|
inline |
References FOR_EACH_VEC_ELT, i, and m_events.
|
inline |
References m_setjmp_event_ids.
|
inline |
References m_events.
|
finaloverridevirtual |
Implements diagnostics::paths::path.
|
private |
Referenced by delete_event(), delete_events(), get_checker_event(), get_event(), num_events(), prepare_for_emission(), and replace_event().
|
private |
Referenced by checker_path(), and get_ext_state().
|
private |
Referenced by checker_path(), and get_logger().
|
privateinherited |
Referenced by get_first_event_in_a_function(), get_logical_location_manager(), and path().
|
private |
Referenced by get_setjmp_event(), and record_setjmp_event().
|
private |
Referenced by checker_path(), and get_thread().