14 #ifndef LLVM_CLANG_AST_BASESUBOBJECT_H 15 #define LLVM_CLANG_AST_BASESUBOBJECT_H 19 #include "llvm/ADT/DenseMapInfo.h" 20 #include "llvm/Support/type_traits.h" 41 : Base(Base), BaseOffset(BaseOffset) {}
50 return LHS.Base == RHS.Base && LHS.BaseOffset == RHS.BaseOffset;
72 using PairTy = std::pair<const clang::CXXRecordDecl *, clang::CharUnits>;
86 static const bool value =
true;
91 #endif // LLVM_CLANG_AST_BASESUBOBJECT_H DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
CharUnits getBaseOffset() const
getBaseOffset - Returns the base class offset.
static bool isEqual(const clang::BaseSubobject &LHS, const clang::BaseSubobject &RHS)
CharUnits - This is an opaque type for sizes expressed in character units.
friend bool operator==(const BaseSubobject &LHS, const BaseSubobject &RHS)
static CharUnits fromQuantity(QuantityType Quantity)
fromQuantity - Construct a CharUnits quantity from a raw integer type.
const CXXRecordDecl * getBase() const
getBase - Returns the base class declaration.
static clang::BaseSubobject getTombstoneKey()
BaseSubobject(const CXXRecordDecl *Base, CharUnits BaseOffset)
static unsigned getHashValue(const clang::BaseSubobject &Base)
Dataflow Directional Tag Classes.
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate.h) and friends (in DeclFriend.h).
static clang::BaseSubobject getEmptyKey()
Represents a C++ struct/union/class.