clang API Documentation
#include <Type.h>
AttributedType - An attributed type is a type to which a type attribute has been applied. The "modified type" is the fully-sugared type to which the attributed type was applied; generally it is not canonically equivalent to the attributed type. The "equivalent type" is the minimally-desugared type which the type is canonically equivalent to.
For example, in the following attributed type: int32_t __attribute__((vector_size(16)))
static bool clang::AttributedType::classof | ( | const Type * | T | ) | [inline, static] |
Definition at line 3490 of file Type.h.
References clang::Type::getTypeClass().
QualType clang::AttributedType::desugar | ( | ) | const [inline] |
Kind clang::AttributedType::getAttrKind | ( | ) | const [inline] |
Definition at line 3465 of file Type.h.
Referenced by handleFunctionTypeAttr(), handleMSPointerTypeQualifierAttr(), isCallingConv(), and isMSTypeSpec().
QualType clang::AttributedType::getEquivalentType | ( | ) | const [inline] |
Definition at line 3470 of file Type.h.
Referenced by handleMSPointerTypeQualifierAttr().
QualType clang::AttributedType::getModifiedType | ( | ) | const [inline] |
Definition at line 3469 of file Type.h.
Referenced by clang::Sema::getCallingConvAttributedType().
bool AttributedType::isCallingConv | ( | ) | const |
Definition at line 1911 of file Type.cpp.
References attr_address_space, attr_cdecl, attr_fastcall, attr_inteloclbicc, attr_ms_abi, attr_neon_polyvector_type, attr_neon_vector_type, attr_noreturn, attr_objc_gc, attr_objc_ownership, attr_pascal, attr_pcs, attr_pcs_vfp, attr_pnaclcall, attr_ptr32, attr_ptr64, attr_regparm, attr_sptr, attr_stdcall, attr_sysv_abi, attr_thiscall, attr_uptr, attr_vector_size, attr_vectorcall, and getAttrKind().
Referenced by clang::Sema::getCallingConvAttributedType().
bool AttributedType::isMSTypeSpec | ( | ) | const |
Definition at line 1899 of file Type.cpp.
References attr_ptr32, attr_ptr64, attr_sptr, attr_uptr, and getAttrKind().
bool clang::AttributedType::isSugared | ( | ) | const [inline] |
void clang::AttributedType::Profile | ( | llvm::FoldingSetNodeID & | ID | ) | [inline] |
Definition at line 3479 of file Type.h.
Referenced by clang::ASTContext::getAttributedType().
static void clang::AttributedType::Profile | ( | llvm::FoldingSetNodeID & | ID, |
Kind | attrKind, | ||
QualType | modified, | ||
QualType | equivalent | ||
) | [inline, static] |
Definition at line 3483 of file Type.h.
References clang::QualType::getAsOpaquePtr().
friend class ASTContext [friend] |
Reimplemented from clang::Type.