clang API Documentation
#include <Expr.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 CStyleCastExpr * | Create (const ASTContext &Context, QualType T, ExprValueKind VK, CastKind K, Expr *Op, const CXXCastPath *BasePath, TypeSourceInfo *WrittenTy, SourceLocation L, SourceLocation R) |
| static CStyleCastExpr * | CreateEmpty (const ASTContext &Context, unsigned PathSize) |
| static bool | classof (const Stmt *T) |
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.
| 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] |
Definition at line 1745 of file Expr.cpp.
References clang::ASTContext::Allocate(), and clang::CastExpr::setCastPath().
Referenced by clang::Sema::BuildCStyleCastExpr(), clang::Sema::BuildExpressionFromIntegralTemplateArgument(), and clang::ASTNodeImporter::VisitCStyleCastExpr().
| CStyleCastExpr * CStyleCastExpr::CreateEmpty | ( | const ASTContext & | Context, |
| unsigned | PathSize | ||
| ) | [static] |
Definition at line 1759 of file Expr.cpp.
References clang::ASTContext::Allocate().
| SourceLocation clang::CStyleCastExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 2890 of file Expr.h.
References clang::Stmt::getLocEnd(), and clang::CastExpr::getSubExpr().
| SourceLocation clang::CStyleCastExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| SourceLocation clang::CStyleCastExpr::getLParenLoc | ( | ) | const [inline] |
Definition at line 2883 of file Expr.h.
Referenced by GetUnreachableLoc(), clang::Expr::isUnusedResultAWarning(), and clang::ASTNodeImporter::VisitCStyleCastExpr().
| SourceLocation clang::CStyleCastExpr::getRParenLoc | ( | ) | const [inline] |
Definition at line 2886 of file Expr.h.
Referenced by clang::ASTNodeImporter::VisitCStyleCastExpr().
| void clang::CStyleCastExpr::setLParenLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::CStyleCastExpr::setRParenLoc | ( | SourceLocation | L | ) | [inline] |