GCC Middle and Back End API Reference
diagnostic_execution_path Struct Reference
Inheritance diagram for diagnostic_execution_path:
Collaboration diagram for diagnostic_execution_path:

Public Member Functions

 diagnostic_execution_path ()
 
diagnostic_event_id_t add_event_va (const diagnostic_physical_location *physical_loc, const diagnostic_logical_location *logical_loc, unsigned stack_depth, const char *gmsgid, va_list *args)
 
unsigned num_events () const final override
 
const diagnostic_eventget_event (int idx) const final override
 
unsigned num_threads () const final override
 
const diagnostic_threadget_thread (diagnostic_thread_id_t) const final override
 
bool same_function_p (int event_idx_a, int event_idx_b) const final override
 
bool interprocedural_p () const
 
bool multithreaded_p () const
 

Private Member Functions

bool get_first_event_in_a_function (unsigned *out_idx) const
 

Private Attributes

libgdiagnostics_path_thread m_thread
 
std::vector< std::unique_ptr< libgdiagnostics_path_event > > m_events
 

Detailed Description

This has to be a "struct" as it is exposed in the C API.   

Constructor & Destructor Documentation

◆ diagnostic_execution_path()

diagnostic_execution_path::diagnostic_execution_path ( )
inline

Member Function Documentation

◆ add_event_va()

diagnostic_event_id_t diagnostic_execution_path::add_event_va ( const diagnostic_physical_location * physical_loc,
const diagnostic_logical_location * logical_loc,
unsigned stack_depth,
const char * gmsgid,
va_list * args )
inline

References make_unique().

◆ get_event()

const diagnostic_event & diagnostic_execution_path::get_event ( int idx) const
inlinefinaloverridevirtual

Implements diagnostic_path.

◆ get_first_event_in_a_function()

bool diagnostic_path::get_first_event_in_a_function ( unsigned * out_idx) const
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.

◆ get_thread()

const diagnostic_thread & diagnostic_execution_path::get_thread ( diagnostic_thread_id_t ) const
inlinefinaloverridevirtual

Implements diagnostic_path.

◆ interprocedural_p()

bool diagnostic_path::interprocedural_p ( ) const
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.

◆ multithreaded_p()

bool diagnostic_path::multithreaded_p ( ) const
inherited

◆ num_events()

unsigned diagnostic_execution_path::num_events ( ) const
inlinefinaloverridevirtual

Implements diagnostic_path.

◆ num_threads()

unsigned diagnostic_execution_path::num_threads ( ) const
inlinefinaloverridevirtual

Implements diagnostic_path.

◆ same_function_p()

bool diagnostic_execution_path::same_function_p ( int event_idx_a,
int event_idx_b ) const
inlinefinaloverridevirtual

Implements diagnostic_path.

Field Documentation

◆ m_events

std::vector<std::unique_ptr<libgdiagnostics_path_event> > diagnostic_execution_path::m_events
private

◆ m_thread

libgdiagnostics_path_thread diagnostic_execution_path::m_thread
private

The documentation for this struct was generated from the following file: