clang API Documentation

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

An Embarcadero array type trait, as used in the implementation of __array_rank and __array_extent. More...

#include <ExprCXX.h>

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

List of all members.

Public Member Functions

 ArrayTypeTraitExpr (SourceLocation loc, ArrayTypeTrait att, TypeSourceInfo *queried, uint64_t value, Expr *dimension, SourceLocation rparen, QualType ty)
 ArrayTypeTraitExpr (EmptyShell Empty)
virtual ~ArrayTypeTraitExpr ()
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
ArrayTypeTrait getTrait () const
QualType getQueriedType () const
TypeSourceInfogetQueriedTypeSourceInfo () const
uint64_t getValue () const
ExprgetDimensionExpression () const
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)

Friends

class ASTStmtReader

Detailed Description

An Embarcadero array type trait, as used in the implementation of __array_rank and __array_extent.

Example:

   __array_rank(int[10][20]) == 2
   __array_extent(int, 1)    == 20

Definition at line 2169 of file ExprCXX.h.


Constructor & Destructor Documentation

clang::ArrayTypeTraitExpr::ArrayTypeTraitExpr ( SourceLocation  loc,
ArrayTypeTrait  att,
TypeSourceInfo queried,
uint64_t  value,
Expr dimension,
SourceLocation  rparen,
QualType  ty 
) [inline]

Definition at line 2191 of file ExprCXX.h.

Definition at line 2203 of file ExprCXX.h.

virtual clang::ArrayTypeTraitExpr::~ArrayTypeTraitExpr ( ) [inline, virtual]

Definition at line 2207 of file ExprCXX.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 2227 of file ExprCXX.h.

static bool clang::ArrayTypeTraitExpr::classof ( const Stmt T) [inline, static]

Reimplemented from clang::Expr.

Definition at line 2222 of file ExprCXX.h.

References clang::Stmt::getStmtClass().

Definition at line 2220 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 2210 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 2209 of file ExprCXX.h.

Definition at line 2214 of file ExprCXX.h.

References clang::TypeSourceInfo::getType().

Definition at line 2216 of file ExprCXX.h.

Definition at line 2212 of file ExprCXX.h.

uint64_t clang::ArrayTypeTraitExpr::getValue ( ) const [inline]

Definition at line 2218 of file ExprCXX.h.

References clang::Expr::isTypeDependent().


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 2229 of file ExprCXX.h.


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