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>
119 return m_ptr == other.m_ptr;
125 return m_ptr != other.m_ptr;
131 return m_ptr < other.m_ptr;
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:1063
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
Definition genrecog.cc:1011
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
@ comment
Definition logical-location.h:50
@ property
Definition logical-location.h:58
@ declaration
Definition logical-location.h:53
@ text
Definition logical-location.h:49
@ value
Definition logical-location.h:59
@ module_
Definition logical-location.h:39
@ return_type
Definition logical-location.h:42
@ processing_instruction
Definition logical-location.h:51
@ dtd
Definition logical-location.h:52
@ element
Definition logical-location.h:47
@ namespace_
Definition logical-location.h:40
@ object
Definition logical-location.h:56
@ member
Definition logical-location.h:38
@ unknown
Definition logical-location.h:34
@ attribute
Definition logical-location.h:48
@ array
Definition logical-location.h:57
Definition function.h:249
Definition gengtype.h:252
Definition var-tracking.cc:367
#define bool
Definition system.h:886