clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::DependentSizedArrayType Class Reference

#include <Type.h>

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

List of all members.

Public Member Functions

ExprgetSizeExpr () const
SourceRange getBracketsRange () const
SourceLocation getLBracketLoc () const
SourceLocation getRBracketLoc () const
bool isSugared () const
QualType desugar () const
void Profile (llvm::FoldingSetNodeID &ID)

Static Public Member Functions

static bool classof (const Type *T)
static void Profile (llvm::FoldingSetNodeID &ID, const ASTContext &Context, QualType ET, ArraySizeModifier SizeMod, unsigned TypeQuals, Expr *E)

Friends

class ASTContext
class StmtIteratorBase

Detailed Description

DependentSizedArrayType - This type represents an array type in C++ whose size is a value-dependent expression. For example:

 template<typename T, int Size>
 class array {
   T data[Size];
 };

For these types, we won't actually know what the array bound is until template instantiation occurs, at which point this will become either a ConstantArrayType or a VariableArrayType.

Definition at line 2438 of file Type.h.


Member Function Documentation

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

Reimplemented from clang::ArrayType.

Definition at line 2470 of file Type.h.

References clang::Type::getTypeClass().

Definition at line 2468 of file Type.h.

Definition at line 2463 of file Type.h.

Referenced by clang::ASTContext::getVariableArrayDecayedType().

Definition at line 2464 of file Type.h.

Definition at line 2465 of file Type.h.

Definition at line 2467 of file Type.h.

void clang::DependentSizedArrayType::Profile ( llvm::FoldingSetNodeID &  ID) [inline]

Definition at line 2477 of file Type.h.

References getElementType().

Referenced by clang::ASTContext::getDependentSizedArrayType().

void DependentSizedArrayType::Profile ( llvm::FoldingSetNodeID &  ID,
const ASTContext Context,
QualType  ET,
ArraySizeModifier  SizeMod,
unsigned  TypeQuals,
Expr E 
) [static]

Definition at line 135 of file Type.cpp.

References clang::QualType::getAsOpaquePtr(), and clang::Stmt::Profile().


Friends And Related Function Documentation

friend class ASTContext [friend]

Reimplemented from clang::ArrayType.

Definition at line 2455 of file Type.h.

friend class StmtIteratorBase [friend]

Definition at line 2474 of file Type.h.


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