clang API Documentation

Public Member Functions | Static Public Member Functions
clang::CStyleCastExpr Class Reference

#include <Expr.h>

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

List of all members.

Public Member Functions

SourceLocation getLParenLoc () const
void setLParenLoc (SourceLocation L)
SourceLocation getRParenLoc () const
void setRParenLoc (SourceLocation L)
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY

Static Public Member Functions

static CStyleCastExprCreate (const ASTContext &Context, QualType T, ExprValueKind VK, CastKind K, Expr *Op, const CXXCastPath *BasePath, TypeSourceInfo *WrittenTy, SourceLocation L, SourceLocation R)
static CStyleCastExprCreateEmpty (const ASTContext &Context, unsigned PathSize)
static bool classof (const Stmt *T)

Detailed Description

CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr.cast]), which uses the syntax (Type)expr. For example: (int)f.

Definition at line 2859 of file Expr.h.


Member Function Documentation

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

Reimplemented from clang::ExplicitCastExpr.

Definition at line 2894 of file Expr.h.

References clang::Stmt::getStmtClass().

CStyleCastExpr * CStyleCastExpr::Create ( const ASTContext Context,
QualType  T,
ExprValueKind  VK,
CastKind  K,
Expr Op,
const CXXCastPath BasePath,
TypeSourceInfo WrittenTy,
SourceLocation  L,
SourceLocation  R 
) [static]
CStyleCastExpr * CStyleCastExpr::CreateEmpty ( const ASTContext Context,
unsigned  PathSize 
) [static]

Definition at line 1759 of file Expr.cpp.

References clang::ASTContext::Allocate().

Reimplemented from clang::Stmt.

Definition at line 2890 of file Expr.h.

References clang::Stmt::getLocEnd(), and clang::CastExpr::getSubExpr().

Reimplemented from clang::Stmt.

Definition at line 2889 of file Expr.h.

Definition at line 2886 of file Expr.h.

Referenced by clang::ASTNodeImporter::VisitCStyleCastExpr().

Definition at line 2884 of file Expr.h.

Definition at line 2887 of file Expr.h.


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