clang API Documentation
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
More...
#include <ExprCXX.h>


Static Public Member Functions | |
| static CXXReinterpretCastExpr * | Create (const ASTContext &Context, QualType T, ExprValueKind VK, CastKind Kind, Expr *Op, const CXXCastPath *Path, TypeSourceInfo *WrittenTy, SourceLocation L, SourceLocation RParenLoc, SourceRange AngleBrackets) |
| static CXXReinterpretCastExpr * | CreateEmpty (const ASTContext &Context, unsigned pathSize) |
| static bool | classof (const Stmt *T) |
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
This expression node represents a reinterpret cast, e.g., reinterpret_cast<int>(VoidPtr).
A reinterpret_cast provides a differently-typed view of a value but (in Clang, as in most C++ implementations) performs no actual work at run time.
| static bool clang::CXXReinterpretCastExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::CXXNamedCastExpr.
Definition at line 321 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
| CXXReinterpretCastExpr * CXXReinterpretCastExpr::Create | ( | const ASTContext & | Context, |
| QualType | T, | ||
| ExprValueKind | VK, | ||
| CastKind | Kind, | ||
| Expr * | Op, | ||
| const CXXCastPath * | Path, | ||
| TypeSourceInfo * | WrittenTy, | ||
| SourceLocation | L, | ||
| SourceLocation | RParenLoc, | ||
| SourceRange | AngleBrackets | ||
| ) | [static] |
Definition at line 669 of file ExprCXX.cpp.
References clang::ASTContext::Allocate(), and clang::CastExpr::setCastPath().
Referenced by clang::Sema::BuildCXXNamedCast().
| CXXReinterpretCastExpr * CXXReinterpretCastExpr::CreateEmpty | ( | const ASTContext & | Context, |
| unsigned | pathSize | ||
| ) | [static] |
Definition at line 686 of file ExprCXX.cpp.
References clang::ASTContext::Allocate().