21#ifndef GCC_DIAGNOSTICS_LOGICAL_LOCATIONS_H
22#define GCC_DIAGNOSTICS_LOGICAL_LOCATIONS_H
24#include "label-text.h"
112 return m_ptr !=
nullptr;
115 template <
typename T>
121 return m_ptr == other.m_ptr;
127 return m_ptr != other.m_ptr;
133 return m_ptr < other.m_ptr;
Definition logical-locations.h:101
T cast_to() const
Definition logical-locations.h:116
bool operator==(const key &other) const
Definition logical-locations.h:119
bool operator!=(const key &other) const
Definition logical-locations.h:125
key()
Definition logical-locations.h:103
const void * m_ptr
Definition logical-locations.h:139
static key from_ptr(const void *ptr)
Definition logical-locations.h:105
key(const void *ptr)
Definition logical-locations.h:137
bool operator<(const key &other) const
Definition logical-locations.h:131
Definition logical-locations.h:147
virtual label_text get_name_for_path_output(key k) const =0
virtual const char * get_short_name(key k) const =0
virtual const char * get_internal_name(key k) const =0
virtual const char * get_name_with_scope(key k) const =0
bool function_p(key k) const
Definition diagnostics/context.cc:1081
virtual enum kind get_kind(key k) const =0
virtual ~manager()
Definition logical-locations.h:149
virtual key get_parent(key k) const =0
static struct token T
Definition gengtype-parse.cc:45
Definition diagnostics/context.h:41
kind
Definition logical-locations.h:36
@ parameter
Definition logical-locations.h:46
@ comment
Definition logical-locations.h:53
@ property
Definition logical-locations.h:61
@ declaration
Definition logical-locations.h:56
@ text
Definition logical-locations.h:52
@ value
Definition logical-locations.h:62
@ module_
Definition logical-locations.h:42
@ return_type
Definition logical-locations.h:45
@ processing_instruction
Definition logical-locations.h:54
@ type
Definition logical-locations.h:44
@ dtd
Definition logical-locations.h:55
@ element
Definition logical-locations.h:50
@ namespace_
Definition logical-locations.h:43
@ object
Definition logical-locations.h:59
@ member
Definition logical-locations.h:41
@ unknown
Definition logical-locations.h:37
@ function
Definition logical-locations.h:40
@ attribute
Definition logical-locations.h:51
@ variable
Definition logical-locations.h:47
@ array
Definition logical-locations.h:60
Definition coretypes.h:167
#define bool
Definition system.h:886