GCC Middle and Back End API Reference
|
#include <logical-location.h>
Public Member Functions | |
virtual | ~logical_location () |
virtual const char * | get_short_name () const =0 |
virtual const char * | get_name_with_scope () const =0 |
virtual const char * | get_internal_name () const =0 |
virtual enum logical_location_kind | get_kind () const =0 |
virtual label_text | get_name_for_path_output () const =0 |
bool | function_p () const |
Abstract base class for passing around logical locations in the diagnostics subsystem, such as: - "within function 'foo'", or - "within method 'bar'", but *without* requiring knowledge of trees (see tree-logical-location.h for concrete subclasses relating to trees, and selftest-logical-location.h for a concrete subclass for selftests).
|
inlinevirtual |
bool logical_location::function_p | ( | ) | const |
class logical_location.
Return true iff this is a function or method.
References gcc_unreachable, get_kind(), LOGICAL_LOCATION_KIND_FUNCTION, LOGICAL_LOCATION_KIND_MEMBER, LOGICAL_LOCATION_KIND_MODULE, LOGICAL_LOCATION_KIND_NAMESPACE, LOGICAL_LOCATION_KIND_PARAMETER, LOGICAL_LOCATION_KIND_RETURN_TYPE, LOGICAL_LOCATION_KIND_TYPE, LOGICAL_LOCATION_KIND_UNKNOWN, and LOGICAL_LOCATION_KIND_VARIABLE.
|
pure virtual |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by make_sarif_logical_location_object().
|
pure virtual |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by function_p(), and make_sarif_logical_location_object().
|
pure virtual |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
|
pure virtual |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by make_sarif_logical_location_object().
|
pure virtual |
Implemented in current_fndecl_logical_location, diagnostic_logical_location, and tree_logical_location.
Referenced by make_sarif_logical_location_object().