14 #ifndef LLVM_CLANG_AST_BASESUBOBJECT_H 15 #define LLVM_CLANG_AST_BASESUBOBJECT_H 18 #include "llvm/ADT/DenseMapInfo.h" 19 #include "llvm/Support/type_traits.h" 40 : Base(Base), BaseOffset(BaseOffset) {}
49 return LHS.Base == RHS.Base && LHS.BaseOffset == RHS.BaseOffset;
71 using PairTy = std::pair<const clang::CXXRecordDecl *, clang::CharUnits>;
85 static const bool value =
true;
90 #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.
static clang::BaseSubobject getEmptyKey()
Represents a C++ struct/union/class.