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 | |
simple_diagnostic_thread | m_thread |
auto_delete_vec< checker_event > | m_events |
hash_map< const exploded_node *, diagnostic_event_id_t > | m_setjmp_event_ids |
logger * | m_logger |
Subclass of diagnostic_path for analyzer diagnostics.
|
inline |
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 ) |
bool ana::checker_path::cfg_edge_pair_at_p | ( | unsigned | idx | ) | const |
void ana::checker_path::debug | ( | ) | const |
|
inline |
References m_events.
|
inline |
|
private |
void ana::checker_path::dump | ( | pretty_printer * | pp | ) | const |
void ana::checker_path::fixup_locations | ( | pending_diagnostic * | pd | ) |
|
inline |
References m_events.
|
inlinefinaloverridevirtual |
Implements diagnostic_path.
References m_events.
|
privateinherited |
class diagnostic_path.
Subroutine of diagnostic_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 i.
|
inline |
References m_setjmp_event_ids.
|
inlinefinaloverridevirtual |
Implements diagnostic_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 diagnostic_event::get_stack_depth(), and i.
void ana::checker_path::maybe_log | ( | logger * | logger, |
const char * | desc ) const |
|
inherited |
|
inlinefinaloverridevirtual |
Implements diagnostic_path.
References m_events.
|
inlinefinaloverridevirtual |
Implements diagnostic_path.
|
inline |
References FOR_EACH_VEC_ELT, i, m_events, and ana::checker_event::prepare_for_emission().
|
inline |
References m_setjmp_event_ids.
|
inline |
References m_events.
|
finaloverridevirtual |
Implements diagnostic_path.
|
private |
Referenced by delete_event(), delete_events(), get_checker_event(), get_event(), num_events(), prepare_for_emission(), and replace_event().
|
private |
Referenced by get_logger().
|
private |
Referenced by get_setjmp_event(), and record_setjmp_event().
|
private |
Referenced by get_thread().