clang API Documentation
#include <Type.h>
Public Member Functions | |
Expr * | getSizeExpr () 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 |
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.
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().
QualType clang::DependentSizedArrayType::desugar | ( | ) | const [inline] |
SourceRange clang::DependentSizedArrayType::getBracketsRange | ( | ) | const [inline] |
Definition at line 2463 of file Type.h.
Referenced by clang::ASTContext::getVariableArrayDecayedType().
SourceLocation clang::DependentSizedArrayType::getLBracketLoc | ( | ) | const [inline] |
SourceLocation clang::DependentSizedArrayType::getRBracketLoc | ( | ) | const [inline] |
Expr* clang::DependentSizedArrayType::getSizeExpr | ( | ) | const [inline] |
Definition at line 2458 of file Type.h.
Referenced by DeduceTemplateArgumentsByTypeMatch(), clang::ASTContext::getUnqualifiedArrayType(), clang::ASTContext::getVariableArrayDecayedType(), and IsStructurallyEquivalent().
bool clang::DependentSizedArrayType::isSugared | ( | ) | const [inline] |
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().
friend class ASTContext [friend] |
Reimplemented from clang::ArrayType.
friend class StmtIteratorBase [friend] |