clang: include/clang/AST/TypeOrdering.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef LLVM_CLANG_AST_TYPEORDERING_H
19#define LLVM_CLANG_AST_TYPEORDERING_H
20
23#include
24
26
27
31 }
32};
33
34}
35
36namespace llvm {
37
38 template<> struct DenseMapInfo<clang::QualType> {
40
43 return QualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1));
44 }
45
49 }
50
52 return LHS == RHS;
53 }
54 };
55
56 template<> struct DenseMapInfo<clang::CanQualType> {
59 }
60
63 return CanQualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1));
64 }
65
69 }
70
72 return LHS == RHS;
73 }
74 };
75}
76
77#endif
C Language Family Type Representation.
void * getAsOpaquePtr() const
Retrieve the internal representation of this canonical type.
A (possibly-)qualified type.
void * getAsOpaquePtr() const
The base class of the type hierarchy.
The JSON file list parser is used to communicate input to InstallAPI.
CanQual< Type > CanQualType
Represents a canonical, potentially-qualified type.
Diagnostic wrappers for TextAPI types for error reporting.
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
Function object that provides a total ordering on QualType values.
bool operator()(QualType T1, QualType T2) const
static clang::CanQualType getEmptyKey()
static clang::CanQualType getTombstoneKey()
static unsigned getHashValue(clang::CanQualType Val)
static bool isEqual(clang::CanQualType LHS, clang::CanQualType RHS)
static clang::QualType getEmptyKey()
static clang::QualType getTombstoneKey()
static unsigned getHashValue(clang::QualType Val)
static bool isEqual(clang::QualType LHS, clang::QualType RHS)