clang API Documentation
#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. | |
| SourceRange | getSourceRange () const |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
| static bool | classof (const CXXNamedCastExpr *) |
Protected Member Functions | |
| CXXNamedCastExpr (StmtClass SC, QualType ty, ExprValueKind VK, CastKind kind, Expr *op, unsigned PathSize, TypeSourceInfo *writtenTy, SourceLocation l, SourceLocation RParenLoc) | |
| CXXNamedCastExpr (StmtClass SC, EmptyShell Shell, unsigned PathSize) | |
Friends | |
| class | ASTStmtReader |
CXXNamedCastExpr - Abstract class common to all of the C++ "named" casts, static_cast, dynamic_cast, reinterpret_cast, or const_cast.
This abstract class is inherited by all of the classes representing "named" casts, e.g., CXXStaticCastExpr, CXXDynamicCastExpr, CXXReinterpretCastExpr, and CXXConstCastExpr.
| clang::CXXNamedCastExpr::CXXNamedCastExpr | ( | StmtClass | SC, |
| QualType | ty, | ||
| ExprValueKind | VK, | ||
| CastKind | kind, | ||
| Expr * | op, | ||
| unsigned | PathSize, | ||
| TypeSourceInfo * | writtenTy, | ||
| SourceLocation | l, | ||
| SourceLocation | RParenLoc | ||
| ) | [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 189 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
| static bool clang::CXXNamedCastExpr::classof | ( | const CXXNamedCastExpr * | ) | [inline, static] |
| 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 476 of file ExprCXX.cpp.
References clang::Stmt::getStmtClass().
| SourceLocation clang::CXXNamedCastExpr::getOperatorLoc | ( | ) | const [inline] |
Retrieve the location of the cast operator keyword, e.g., "static_cast".
Definition at line 181 of file ExprCXX.h.
Referenced by clang::TreeTransform< Derived >::TransformCXXNamedCastExpr().
| SourceLocation clang::CXXNamedCastExpr::getRParenLoc | ( | ) | const [inline] |
| SourceRange clang::CXXNamedCastExpr::getSourceRange | ( | ) | const [inline] |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.
Reimplemented from clang::Stmt.
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.