21#ifndef GCC_DIAGNOSTIC_PATH_H
22#define GCC_DIAGNOSTIC_PATH_H
185 virtual label_text
get_name (
bool can_colorize)
const = 0;
204 int event_idx_b)
const = 0;
Definition diagnostic-path.h:72
noun
Definition diagnostic-path.h:91
@ NOUN_resource
Definition diagnostic-path.h:99
@ NOUN_taint
Definition diagnostic-path.h:94
@ NOUN_function
Definition diagnostic-path.h:96
@ NOUN_lock
Definition diagnostic-path.h:97
@ NOUN_unknown
Definition diagnostic-path.h:92
@ NOUN_memory
Definition diagnostic-path.h:98
@ NOUN_sensitive
Definition diagnostic-path.h:95
virtual logical_location get_logical_location() const =0
virtual ~diagnostic_event()
Definition diagnostic-path.h:143
virtual void print_desc(pretty_printer &pp) const =0
verb
Definition diagnostic-path.h:77
@ VERB_danger
Definition diagnostic-path.h:88
@ VERB_return
Definition diagnostic-path.h:85
@ VERB_branch
Definition diagnostic-path.h:86
@ VERB_acquire
Definition diagnostic-path.h:80
@ VERB_call
Definition diagnostic-path.h:84
@ VERB_enter
Definition diagnostic-path.h:82
@ VERB_release
Definition diagnostic-path.h:81
@ VERB_unknown
Definition diagnostic-path.h:78
@ VERB_exit
Definition diagnostic-path.h:83
virtual int get_stack_depth() const =0
virtual location_t get_location() const =0
label_text get_desc(pretty_printer &ref_pp) const
Definition diagnostic-path.cc:161
virtual bool connect_to_next_event_p() const =0
virtual meaning get_meaning() const =0
virtual diagnostic_thread_id_t get_thread_id() const =0
property
Definition diagnostic-path.h:102
@ PROPERTY_unknown
Definition diagnostic-path.h:103
@ PROPERTY_false
Definition diagnostic-path.h:106
@ PROPERTY_true
Definition diagnostic-path.h:105
virtual void maybe_add_sarif_properties(sarif_builder &, sarif_object &) const
Definition diagnostic-path.h:168
Definition diagnostic-path.h:191
const logical_location_manager & m_logical_loc_mgr
Definition diagnostic-path.h:223
virtual const diagnostic_event & get_event(int idx) const =0
bool multithreaded_p() const
virtual unsigned num_events() const =0
virtual unsigned num_threads() const =0
virtual ~diagnostic_path()
Definition diagnostic-path.h:193
diagnostic_path(const logical_location_manager &logical_loc_mgr)
Definition diagnostic-path.h:215
bool interprocedural_p() const
Definition diagnostic-path.cc:198
virtual const diagnostic_thread & get_thread(diagnostic_thread_id_t) const =0
const logical_location_manager & get_logical_location_manager() const
Definition diagnostic-path.h:209
bool get_first_event_in_a_function(unsigned *out_idx) const
Definition diagnostic-path.cc:178
virtual bool same_function_p(int event_idx_a, int event_idx_b) const =0
Definition diagnostic-path.h:182
virtual ~diagnostic_thread()
Definition diagnostic-path.h:184
virtual label_text get_name(bool can_colorize) const =0
Definition logical-location.h:91
Definition pretty-print.h:241
Definition diagnostic-format-sarif.cc:747
Definition diagnostic-format-sarif.h:137
bool debug
Definition collect-utils.cc:34
static struct path_prefix cpath path
Definition collect2.cc:514
int diagnostic_thread_id_t
Definition diagnostic-event-id.h:70
logical_location_manager::key logical_location
Definition logical-location.h:173
Definition diagnostic-path.h:116
static const char * maybe_get_noun_str(enum noun)
Definition diagnostic-path.cc:115
meaning()
Definition diagnostic-path.h:117
static const char * maybe_get_property_str(enum property)
Definition diagnostic-path.cc:142
meaning(enum verb verb, enum property property)
Definition diagnostic-path.h:127
enum verb m_verb
Definition diagnostic-path.h:138
void dump_to_pp(pretty_printer *pp) const
Definition diagnostic-path.cc:54
enum property m_property
Definition diagnostic-path.h:140
enum noun m_noun
Definition diagnostic-path.h:139
static const char * maybe_get_verb_str(enum verb)
Definition diagnostic-path.cc:84
meaning(enum verb verb, enum noun noun)
Definition diagnostic-path.h:123