class CXXReinterpretCastExpr

Declaration

class CXXReinterpretCastExpr : public CXXNamedCastExpr,
                               private TrailingObjects { /* full declaration omitted */ };

Description

A C++ @c reinterpret_cast expression (C++ [expr.reinterpret.cast]). This expression node represents a reinterpret cast, e.g.,@c 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.

Declared at: clang/include/clang/AST/ExprCXX.h:521

Inherits from: CXXNamedCastExpr, TrailingObjects

Member Variables

Inherited from Stmt:

protected

Method Overview

  • private CXXReinterpretCastExpr(clang::QualType ty, clang::ExprValueKind vk, clang::CastKind kind, clang::Expr * op, unsigned int pathSize, clang::TypeSourceInfo * writtenTy, clang::SourceLocation l, clang::SourceLocation RParenLoc, clang::SourceRange AngleBrackets)
  • private CXXReinterpretCastExpr(clang::Stmt::EmptyShell Empty, unsigned int pathSize)
  • public static clang::CXXReinterpretCastExpr * Create(const clang::ASTContext & Context, clang::QualType T, clang::ExprValueKind VK, clang::CastKind Kind, clang::Expr * Op, const clang::CXXCastPath * Path, clang::TypeSourceInfo * WrittenTy, clang::SourceLocation L, clang::SourceLocation RParenLoc, clang::SourceRange AngleBrackets)
  • public static clang::CXXReinterpretCastExpr * CreateEmpty(const clang::ASTContext & Context, unsigned int pathSize)
  • public static bool classof(const clang::Stmt * T)

Inherited from CXXNamedCastExpr:

Inherited from ExplicitCastExpr:

Inherited from CastExpr:

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

CXXReinterpretCastExpr(
    clang::QualType ty,
    clang::ExprValueKind vk,
    clang::CastKind kind,
    clang::Expr* op,
    unsigned int pathSize,
    clang::TypeSourceInfo* writtenTy,
    clang::SourceLocation l,
    clang::SourceLocation RParenLoc,
    clang::SourceRange AngleBrackets)

Declared at: clang/include/clang/AST/ExprCXX.h:525

Parameters

clang::QualType ty
clang::ExprValueKind vk
clang::CastKind kind
clang::Expr* op
unsigned int pathSize
clang::TypeSourceInfo* writtenTy
clang::SourceLocation l
clang::SourceLocation RParenLoc
clang::SourceRange AngleBrackets

CXXReinterpretCastExpr(
    clang::Stmt::EmptyShell Empty,
    unsigned int pathSize)

Declared at: clang/include/clang/AST/ExprCXX.h:533

Parameters

clang::Stmt::EmptyShell Empty
unsigned int pathSize

static clang::CXXReinterpretCastExpr* Create(
    const clang::ASTContext& Context,
    clang::QualType T,
    clang::ExprValueKind VK,
    clang::CastKind Kind,
    clang::Expr* Op,
    const clang::CXXCastPath* Path,
    clang::TypeSourceInfo* WrittenTy,
    clang::SourceLocation L,
    clang::SourceLocation RParenLoc,
    clang::SourceRange AngleBrackets)

Declared at: clang/include/clang/AST/ExprCXX.h:541

Parameters

const clang::ASTContext& Context
clang::QualType T
clang::ExprValueKind VK
clang::CastKind Kind
clang::Expr* Op
const clang::CXXCastPath* Path
clang::TypeSourceInfo* WrittenTy
clang::SourceLocation L
clang::SourceLocation RParenLoc
clang::SourceRange AngleBrackets

static clang::CXXReinterpretCastExpr* CreateEmpty(
    const clang::ASTContext& Context,
    unsigned int pathSize)

Declared at: clang/include/clang/AST/ExprCXX.h:547

Parameters

const clang::ASTContext& Context
unsigned int pathSize

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/ExprCXX.h:550

Parameters

const clang::Stmt* T