clang API Documentation
Abstract class common to all of the C++ "named"/"keyword" casts. More...
#include <ExprCXX.h>
Public Member Functions | |
const char * | getCastName () const |
SourceLocation | getOperatorLoc () const |
Retrieve the location of the cast operator keyword, e.g., static_cast . | |
SourceLocation | getRParenLoc () const |
Retrieve the location of the closing parenthesis. | |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
SourceRange | getAngleBrackets () const LLVM_READONLY |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
Protected Member Functions | |
CXXNamedCastExpr (StmtClass SC, QualType ty, ExprValueKind VK, CastKind kind, Expr *op, unsigned PathSize, TypeSourceInfo *writtenTy, SourceLocation l, SourceLocation RParenLoc, SourceRange AngleBrackets) | |
CXXNamedCastExpr (StmtClass SC, EmptyShell Shell, unsigned PathSize) | |
Friends | |
class | ASTStmtReader |
Abstract class common to all of the C++ "named"/"keyword" casts.
This abstract class is inherited by all of the classes representing "named" casts: CXXStaticCastExpr for static_cast
, CXXDynamicCastExpr for dynamic_cast
, CXXReinterpretCastExpr for reinterpret_cast, and CXXConstCastExpr for const_cast
.
clang::CXXNamedCastExpr::CXXNamedCastExpr | ( | StmtClass | SC, |
QualType | ty, | ||
ExprValueKind | VK, | ||
CastKind | kind, | ||
Expr * | op, | ||
unsigned | PathSize, | ||
TypeSourceInfo * | writtenTy, | ||
SourceLocation | l, | ||
SourceLocation | RParenLoc, | ||
SourceRange | AngleBrackets | ||
) | [inline, protected] |
clang::CXXNamedCastExpr::CXXNamedCastExpr | ( | StmtClass | SC, |
EmptyShell | Shell, | ||
unsigned | PathSize | ||
) | [inline, explicit, protected] |
static bool clang::CXXNamedCastExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::ExplicitCastExpr.
Reimplemented in clang::CXXConstCastExpr, clang::CXXReinterpretCastExpr, clang::CXXDynamicCastExpr, and clang::CXXStaticCastExpr.
Definition at line 214 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
SourceRange clang::CXXNamedCastExpr::getAngleBrackets | ( | ) | const [inline] |
Definition at line 212 of file ExprCXX.h.
Referenced by clang::TreeTransform< Derived >::TransformCXXNamedCastExpr().
const char * CXXNamedCastExpr::getCastName | ( | ) | const |
getCastName - Get the name of the C++ cast being used, e.g., "static_cast", "dynamic_cast", "reinterpret_cast", or "const_cast". The returned pointer must not be freed.
Definition at line 575 of file ExprCXX.cpp.
References clang::Stmt::getStmtClass().
SourceLocation clang::CXXNamedCastExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::CXXNamedCastExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::CXXNamedCastExpr::getOperatorLoc | ( | ) | const [inline] |
Retrieve the location of the cast operator keyword, e.g., static_cast
.
Definition at line 205 of file ExprCXX.h.
Referenced by clang::TreeTransform< Derived >::TransformCXXNamedCastExpr().
SourceLocation clang::CXXNamedCastExpr::getRParenLoc | ( | ) | const [inline] |
Retrieve the location of the closing parenthesis.
Definition at line 208 of file ExprCXX.h.
Referenced by clang::TreeTransform< Derived >::TransformCXXNamedCastExpr().
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.