clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
clang::ArrayType Class Reference

#include <Type.h>

Inheritance diagram for clang::ArrayType:
Inheritance graph
[legend]
Collaboration diagram for clang::ArrayType:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

ArrayType - C99 6.7.5.2 - Array Declarators.

Definition at line 2234 of file Type.h.


Member Enumeration Documentation

ArraySizeModifier - Capture whether this is a normal array (e.g. int X[4]) an array with a static size (e.g. int X[static 4]), or an array with a star size (e.g. int X[*]). 'static' is only allowed on function parameters.

Enumerator:
Normal 
Static 
Star 

Definition at line 2240 of file Type.h.


Constructor & Destructor Documentation

clang::ArrayType::ArrayType ( TypeClass  tc,
QualType  et,
QualType  can,
ArraySizeModifier  sm,
unsigned  tq,
bool  ContainsUnexpandedParameterPack 
) [inline, protected]

Definition at line 2253 of file Type.h.


Member Function Documentation

static bool clang::ArrayType::classof ( const Type T) [inline, static]

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().


Friends And Related Function Documentation

friend class ASTContext [friend]

The documentation for this class was generated from the following file: