21#ifndef GCC_LOGICAL_LOCATION_H
22#define GCC_LOGICAL_LOCATION_H
24#include "label-text.h"
110 return m_ptr !=
nullptr;
113 template <
typename T>
Definition logical-location.h:99
key()
Definition logical-location.h:101
static key from_ptr(const void *ptr)
Definition logical-location.h:103
T cast_to() const
Definition logical-location.h:114
const void * m_ptr
Definition logical-location.h:137
bool operator!=(const key &other) const
Definition logical-location.h:123
key(const void *ptr)
Definition logical-location.h:135
bool operator==(const key &other) const
Definition logical-location.h:117
bool operator<(const key &other) const
Definition logical-location.h:129
Definition logical-location.h:91
virtual const char * get_name_with_scope(key k) const =0
virtual const char * get_short_name(key k) const =0
virtual key get_parent(key k) const =0
virtual label_text get_name_for_path_output(key k) const =0
bool function_p(key k) const
Definition diagnostic.cc:1053
virtual enum logical_location_kind get_kind(key k) const =0
virtual const char * get_internal_name(key k) const =0
virtual ~logical_location_manager()
Definition logical-location.h:140
static struct token T
Definition gengtype-parse.cc:45
logical_location_manager::key logical_location
Definition logical-location.h:173
logical_location_kind
Definition logical-location.h:33
@ LOGICAL_LOCATION_KIND_ELEMENT
Definition logical-location.h:47
@ LOGICAL_LOCATION_KIND_VARIABLE
Definition logical-location.h:44
@ LOGICAL_LOCATION_KIND_UNKNOWN
Definition logical-location.h:34
@ LOGICAL_LOCATION_KIND_MEMBER
Definition logical-location.h:38
@ LOGICAL_LOCATION_KIND_OBJECT
Definition logical-location.h:56
@ LOGICAL_LOCATION_KIND_COMMENT
Definition logical-location.h:50
@ LOGICAL_LOCATION_KIND_MODULE
Definition logical-location.h:39
@ LOGICAL_LOCATION_KIND_DECLARATION
Definition logical-location.h:53
@ LOGICAL_LOCATION_KIND_PROCESSING_INSTRUCTION
Definition logical-location.h:51
@ LOGICAL_LOCATION_KIND_ATTRIBUTE
Definition logical-location.h:48
@ LOGICAL_LOCATION_KIND_NAMESPACE
Definition logical-location.h:40
@ LOGICAL_LOCATION_KIND_VALUE
Definition logical-location.h:59
@ LOGICAL_LOCATION_KIND_ARRAY
Definition logical-location.h:57
@ LOGICAL_LOCATION_KIND_RETURN_TYPE
Definition logical-location.h:42
@ LOGICAL_LOCATION_KIND_PROPERTY
Definition logical-location.h:58
@ LOGICAL_LOCATION_KIND_FUNCTION
Definition logical-location.h:37
@ LOGICAL_LOCATION_KIND_TYPE
Definition logical-location.h:41
@ LOGICAL_LOCATION_KIND_TEXT
Definition logical-location.h:49
@ LOGICAL_LOCATION_KIND_PARAMETER
Definition logical-location.h:43
@ LOGICAL_LOCATION_KIND_DTD
Definition logical-location.h:52
#define bool
Definition system.h:886