clang API Documentation
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr.type.conv]). More...
#include <ExprCXX.h>
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 CXXFunctionalCastExpr * | Create (const ASTContext &Context, QualType T, ExprValueKind VK, TypeSourceInfo *Written, CastKind Kind, Expr *Op, const CXXCastPath *Path, SourceLocation LPLoc, SourceLocation RPLoc) |
static CXXFunctionalCastExpr * | CreateEmpty (const ASTContext &Context, unsigned PathSize) |
static bool | classof (const Stmt *T) |
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr.type.conv]).
Example:
x = int(0.5);
static bool clang::CXXFunctionalCastExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::ExplicitCastExpr.
CXXFunctionalCastExpr * CXXFunctionalCastExpr::Create | ( | const ASTContext & | Context, |
QualType | T, | ||
ExprValueKind | VK, | ||
TypeSourceInfo * | Written, | ||
CastKind | Kind, | ||
Expr * | Op, | ||
const CXXCastPath * | Path, | ||
SourceLocation | LPLoc, | ||
SourceLocation | RPLoc | ||
) | [static] |
Definition at line 706 of file ExprCXX.cpp.
References clang::ASTContext::Allocate(), and clang::CastExpr::setCastPath().
Referenced by clang::Sema::BuildCXXFunctionalCastExpr(), and clang::Sema::BuildCXXTypeConstructExpr().
CXXFunctionalCastExpr * CXXFunctionalCastExpr::CreateEmpty | ( | const ASTContext & | Context, |
unsigned | PathSize | ||
) | [static] |
Definition at line 720 of file ExprCXX.cpp.
References clang::ASTContext::Allocate().
Reimplemented from clang::Stmt.
Definition at line 730 of file ExprCXX.cpp.
References clang::Stmt::getLocEnd(), clang::CastExpr::getSubExpr(), and clang::SourceLocation::isValid().
Reimplemented from clang::Stmt.
Definition at line 726 of file ExprCXX.cpp.
References clang::TypeLoc::getLocStart(), clang::ExplicitCastExpr::getTypeInfoAsWritten(), and clang::TypeSourceInfo::getTypeLoc().
Referenced by GetUnreachableLoc().
SourceLocation clang::CXXFunctionalCastExpr::getLParenLoc | ( | ) | const [inline] |
SourceLocation clang::CXXFunctionalCastExpr::getRParenLoc | ( | ) | const [inline] |
void clang::CXXFunctionalCastExpr::setLParenLoc | ( | SourceLocation | L | ) | [inline] |
void clang::CXXFunctionalCastExpr::setRParenLoc | ( | SourceLocation | L | ) | [inline] |