21#ifndef GCC_DIAGNOSTIC_PATH_H
22#define GCC_DIAGNOSTIC_PATH_H
103 enum class property {
…};
177 virtual std::unique_ptr<xml::document>
192 virtual label_text
get_name (
bool can_colorize)
const = 0;
211 int event_idx_b)
const = 0;
Definition diagnostic-path.h:74
noun
Definition diagnostic-path.h:93
@ taint
Definition diagnostic-path.h:96
@ sensitive
Definition diagnostic-path.h:97
@ resource
Definition diagnostic-path.h:101
@ function
Definition diagnostic-path.h:98
@ memory
Definition diagnostic-path.h:100
@ lock
Definition diagnostic-path.h:99
virtual logical_location get_logical_location() const =0
virtual ~diagnostic_event()
Definition diagnostic-path.h:145
virtual void print_desc(pretty_printer &pp) const =0
verb
Definition diagnostic-path.h:79
@ release
Definition diagnostic-path.h:83
@ call
Definition diagnostic-path.h:86
@ acquire
Definition diagnostic-path.h:82
@ branch
Definition diagnostic-path.h:88
@ unknown
Definition diagnostic-path.h:80
@ danger
Definition diagnostic-path.h:90
@ return_
Definition diagnostic-path.h:87
@ enter
Definition diagnostic-path.h:84
@ exit
Definition diagnostic-path.h:85
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:151
virtual std::unique_ptr< xml::document > maybe_make_xml_state(bool debug) const
Definition diagnostic-path.cc:162
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:104
@ true_
Definition diagnostic-path.h:107
@ false_
Definition diagnostic-path.h:108
virtual void maybe_add_sarif_properties(sarif_builder &, sarif_object &) const
Definition diagnostic-path.h:170
Definition diagnostic-path.h:198
const logical_location_manager & m_logical_loc_mgr
Definition diagnostic-path.h:230
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:200
diagnostic_path(const logical_location_manager &logical_loc_mgr)
Definition diagnostic-path.h:222
bool interprocedural_p() const
Definition diagnostic-path.cc:197
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:216
bool get_first_event_in_a_function(unsigned *out_idx) const
Definition diagnostic-path.cc:177
virtual bool same_function_p(int event_idx_a, int event_idx_b) const =0
Definition diagnostic-path.h:189
virtual ~diagnostic_thread()
Definition diagnostic-path.h:191
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:748
Definition diagnostic-format-sarif.h:134
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:28
Definition diagnostic-path.h:118
static const char * maybe_get_noun_str(enum noun)
Definition diagnostic-path.cc:105
meaning()
Definition diagnostic-path.h:119
static const char * maybe_get_property_str(enum property)
Definition diagnostic-path.cc:132
meaning(enum verb verb, enum property property)
Definition diagnostic-path.h:129
enum verb m_verb
Definition diagnostic-path.h:140
void dump_to_pp(pretty_printer *pp) const
Definition diagnostic-path.cc:44
enum property m_property
Definition diagnostic-path.h:142
enum noun m_noun
Definition diagnostic-path.h:141
static const char * maybe_get_verb_str(enum verb)
Definition diagnostic-path.cc:74
meaning(enum verb verb, enum noun noun)
Definition diagnostic-path.h:125