clang API Documentation
#include <Type.h>
Public Types | |
enum | ArraySizeModifier { Normal, Static, Star } |
Public Member Functions | |
QualType | getElementType () const |
ArraySizeModifier | getSizeModifier () const |
Qualifiers | getIndexTypeQualifiers () const |
unsigned | getIndexTypeCVRQualifiers () const |
Static Public Member Functions | |
static bool | classof (const Type *T) |
Protected Member Functions | |
ArrayType (TypeClass tc, QualType et, QualType can, ArraySizeModifier sm, unsigned tq, bool ContainsUnexpandedParameterPack) | |
Friends | |
class | ASTContext |
clang::ArrayType::ArrayType | ( | TypeClass | tc, |
QualType | et, | ||
QualType | can, | ||
ArraySizeModifier | sm, | ||
unsigned | tq, | ||
bool | ContainsUnexpandedParameterPack | ||
) | [inline, protected] |
static bool clang::ArrayType::classof | ( | const Type * | T | ) | [inline, static] |
Reimplemented in clang::DependentSizedArrayType, clang::VariableArrayType, clang::IncompleteArrayType, and clang::ConstantArrayType.
Definition at line 2279 of file Type.h.
References clang::Type::getTypeClass().
QualType clang::ArrayType::getElementType | ( | ) | const [inline] |
Definition at line 2268 of file Type.h.
Referenced by appendArrayType(), clang::Sema::BuildBuiltinOffsetOf(), buildSingleCopyAssignRecursively(), CheckConstantExpression(), CheckUnaryTypeTraitTypeCompleteness(), clang::CodeGen::CodeGenTypes::ConvertType(), DeduceTemplateArgumentsByTypeMatch(), EmitAggMemberInitializer(), clang::CodeGen::CodeGenFunction::emitArrayLength(), clang::CodeGen::CodeGenModule::EmitConstantValue(), clang::CodeGen::CodeGenModule::EmitNullConstant(), clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(), FindDesignatorMismatch(), findSubobject(), clang::ASTContext::getArrayDecayedType(), clang::ASTContext::getAsArrayType(), clang::ASTContext::getBaseElementType(), clang::ASTContext::getConstantArrayElementCount(), getConstantArrayInfoInChars(), getCoreType(), clang::ASTContext::getObjCGCAttrKind(), clang::ASTContext::getUnqualifiedArrayType(), clang::ASTContext::getVariableArrayDecayedType(), clang::CodeGen::CodeGenFunction::getVLASize(), hasCompatibleArrayTypes(), IsArrayStructurallyEquivalent(), IsStringInit(), clang::InitListExpr::isStringLiteralInit(), clang::Sema::LookupInlineAsmIdentifier(), clang::ASTContext::mergeTypes(), clang::Sema::MergeVarDeclTypes(), clang::StmtIteratorBase::NextVA(), clang::Sema::ParseObjCStringLiteral(), clang::APValue::printPretty(), clang::Sema::tryCaptureVariable(), TryListConversion(), TryToFixInvalidVariablyModifiedType(), clang::ASTNodeImporter::VisitConstantArrayType(), clang::ASTNodeImporter::VisitIncompleteArrayType(), and clang::ASTNodeImporter::VisitVariableArrayType().
unsigned clang::ArrayType::getIndexTypeCVRQualifiers | ( | ) | const [inline] |
Definition at line 2275 of file Type.h.
Referenced by clang::CodeGen::CodeGenTypes::ConvertType(), clang::ASTContext::getAsArrayType(), clang::ASTContext::getVariableArrayDecayedType(), clang::Sema::ParseObjCStringLiteral(), clang::ASTNodeImporter::VisitConstantArrayType(), clang::ASTNodeImporter::VisitIncompleteArrayType(), and clang::ASTNodeImporter::VisitVariableArrayType().
Qualifiers clang::ArrayType::getIndexTypeQualifiers | ( | ) | const [inline] |
Definition at line 2272 of file Type.h.
References clang::Qualifiers::fromCVRMask().
Referenced by clang::ASTContext::getArrayDecayedType(), and IsArrayStructurallyEquivalent().
ArraySizeModifier clang::ArrayType::getSizeModifier | ( | ) | const [inline] |
Definition at line 2269 of file Type.h.
Referenced by appendArrayType(), clang::Sema::CheckStaticArrayArgument(), clang::ASTContext::getAsArrayType(), clang::ASTContext::getUnqualifiedArrayType(), clang::ASTContext::getVariableArrayDecayedType(), IsArrayStructurallyEquivalent(), clang::Sema::ParseObjCStringLiteral(), clang::ASTNodeImporter::VisitConstantArrayType(), clang::ASTNodeImporter::VisitIncompleteArrayType(), and clang::ASTNodeImporter::VisitVariableArrayType().
friend class ASTContext [friend] |
Reimplemented from clang::Type.
Reimplemented in clang::DependentSizedArrayType, clang::VariableArrayType, clang::IncompleteArrayType, and clang::ConstantArrayType.