clang API Documentation

Static Public Member Functions
clang::CXXConstCastExpr Class Reference

A C++ const_cast expression (C++ [expr.const.cast]). More...

#include <ExprCXX.h>

Inheritance diagram for clang::CXXConstCastExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::CXXConstCastExpr:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static CXXConstCastExprCreate (const ASTContext &Context, QualType T, ExprValueKind VK, Expr *Op, TypeSourceInfo *WrittenTy, SourceLocation L, SourceLocation RParenLoc, SourceRange AngleBrackets)
static CXXConstCastExprCreateEmpty (const ASTContext &Context)
static bool classof (const Stmt *T)

Detailed Description

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.

Definition at line 333 of file ExprCXX.h.


Member Function Documentation

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().

Definition at line 701 of file ExprCXX.cpp.

References AttributeLangSupport::C.


The documentation for this class was generated from the following files: