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


Static Public Member Functions | |
| static CXXConstCastExpr * | Create (const ASTContext &Context, QualType T, ExprValueKind VK, Expr *Op, TypeSourceInfo *WrittenTy, SourceLocation L, SourceLocation RParenLoc, SourceRange AngleBrackets) |
| static CXXConstCastExpr * | CreateEmpty (const ASTContext &Context) |
| static bool | classof (const Stmt *T) |
A C++ const_cast expression (C++ [expr.const.cast]).
This expression node represents a const cast, e.g., const_cast<char*>(PtrToConstChar).
A const_cast can remove type qualifiers but does not change the underlying value.
| static bool clang::CXXConstCastExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::CXXNamedCastExpr.
Definition at line 351 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
| CXXConstCastExpr * CXXConstCastExpr::Create | ( | const ASTContext & | Context, |
| QualType | T, | ||
| ExprValueKind | VK, | ||
| Expr * | Op, | ||
| TypeSourceInfo * | WrittenTy, | ||
| SourceLocation | L, | ||
| SourceLocation | RParenLoc, | ||
| SourceRange | AngleBrackets | ||
| ) | [static] |
Definition at line 692 of file ExprCXX.cpp.
References AttributeLangSupport::C.
Referenced by clang::Sema::BuildCXXNamedCast().
| CXXConstCastExpr * CXXConstCastExpr::CreateEmpty | ( | const ASTContext & | Context | ) | [static] |
Definition at line 701 of file ExprCXX.cpp.
References AttributeLangSupport::C.