clang API Documentation

Static Public Member Functions
clang::CXXReinterpretCastExpr Class Reference

A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]). More...

#include <ExprCXX.h>

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

List of all members.

Static Public Member Functions

static CXXReinterpretCastExprCreate (const ASTContext &Context, QualType T, ExprValueKind VK, CastKind Kind, Expr *Op, const CXXCastPath *Path, TypeSourceInfo *WrittenTy, SourceLocation L, SourceLocation RParenLoc, SourceRange AngleBrackets)
static CXXReinterpretCastExprCreateEmpty (const ASTContext &Context, unsigned pathSize)
static bool classof (const Stmt *T)

Detailed Description

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.

Definition at line 299 of file ExprCXX.h.


Member Function Documentation

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]
CXXReinterpretCastExpr * CXXReinterpretCastExpr::CreateEmpty ( const ASTContext Context,
unsigned  pathSize 
) [static]

Definition at line 686 of file ExprCXX.cpp.

References clang::ASTContext::Allocate().


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