clang API Documentation
#include <Type.h>
Public Member Functions | |
QualType | getPointeeType () const |
bool | isMemberFunctionPointer () const |
bool | isMemberDataPointer () const |
const Type * | getClass () const |
CXXRecordDecl * | getMostRecentCXXRecordDecl () const |
bool | isSugared () const |
QualType | desugar () const |
void | Profile (llvm::FoldingSetNodeID &ID) |
Static Public Member Functions | |
static void | Profile (llvm::FoldingSetNodeID &ID, QualType Pointee, const Type *Class) |
static bool | classof (const Type *T) |
Friends | |
class | ASTContext |
MemberPointerType - C++ 8.3.3 - Pointers to members
static bool clang::MemberPointerType::classof | ( | const Type * | T | ) | [inline, static] |
Definition at line 2227 of file Type.h.
References clang::Type::getTypeClass().
QualType clang::MemberPointerType::desugar | ( | ) | const [inline] |
const Type* clang::MemberPointerType::getClass | ( | ) | const [inline] |
Definition at line 2212 of file Type.h.
Referenced by addAssociatedClassesAndNamespaces(), clang::Sema::CheckMemberPointerConversion(), clang::Sema::CheckPointerToMemberOperands(), CompareDerivedToBaseConversions(), computeCachedProperties(), computeLinkageInfo(), DeduceTemplateArgumentsByTypeMatch(), clang::CodeGen::CodeGenFunction::EmitCXXMemberPointerCallExpr(), clang::CodeGen::CGCXXABI::EmitLoadOfMemberFunctionPointer(), clang::Sema::FindCompositePointerType(), getMostRecentCXXRecordDecl(), clang::Sema::HandleFunctionTypeMismatch(), clang::Sema::IsMemberPointerConversion(), IsStructurallyEquivalent(), MarkUsedTemplateParameters(), TryStaticMemberPointerUpcast(), clang::ASTContext::UnwrapSimilarPointerTypes(), and clang::ASTNodeImporter::VisitMemberPointerType().
Definition at line 2461 of file Type.cpp.
References clang::Type::getAsCXXRecordDecl(), getClass(), and clang::CXXRecordDecl::getMostRecentDecl().
Referenced by getInheritanceFromMemptr(), and getMSMemberPointerSlots().
QualType clang::MemberPointerType::getPointeeType | ( | ) | const [inline] |
getPointeeType - If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee.
Reimplemented from clang::Type.
Definition at line 2198 of file Type.h.
Referenced by addAssociatedClassesAndNamespaces(), clang::Sema::CheckPointerToMemberOperands(), computeCachedProperties(), computeLinkageInfo(), DeduceTemplateArgumentsByTypeMatch(), clang::CodeGen::CodeGenFunction::EmitCXXMemberPointerCallExpr(), clang::CodeGen::CGCXXABI::EmitLoadOfMemberFunctionPointer(), clang::CodeGen::CGCXXABI::EmitMemberDataPointerAddress(), clang::CodeGen::CodeGenModule::EmitNullConstant(), clang::Sema::FindCompositePointerType(), clang::Sema::HandleFunctionTypeMismatch(), clang::Sema::IsMemberPointerConversion(), IsStructurallyEquivalent(), MarkUsedTemplateParameters(), TryReinterpretCast(), TryStaticMemberPointerUpcast(), UnwrapDissimilarPointerTypes(), clang::ASTContext::UnwrapSimilarPointerTypes(), and clang::ASTNodeImporter::VisitMemberPointerType().
bool clang::MemberPointerType::isMemberDataPointer | ( | ) | const [inline] |
bool clang::MemberPointerType::isMemberFunctionPointer | ( | ) | const [inline] |
Returns true if the member type (i.e. the pointee type) is a function type rather than a data-member type.
Definition at line 2202 of file Type.h.
Referenced by getMSMemberPointerSlots().
bool clang::MemberPointerType::isSugared | ( | ) | const [inline] |
void clang::MemberPointerType::Profile | ( | llvm::FoldingSetNodeID & | ID | ) | [inline] |
Definition at line 2218 of file Type.h.
Referenced by clang::ASTContext::getMemberPointerType().
static void clang::MemberPointerType::Profile | ( | llvm::FoldingSetNodeID & | ID, |
QualType | Pointee, | ||
const Type * | Class | ||
) | [inline, static] |
Definition at line 2221 of file Type.h.
References clang::QualType::getAsOpaquePtr().
friend class ASTContext [friend] |
Reimplemented from clang::Type.