class CXXNamedCastExpr

Declaration

class CXXNamedCastExpr : public ExplicitCastExpr { /* full declaration omitted */ };

Description

Abstract class common to all of the C++ "named"/"keyword" casts. This abstract class is inherited by all of the classes representing "named" casts: CXXStaticCastExpr for \c static_cast, CXXDynamicCastExpr for \c dynamic_cast, CXXReinterpretCastExpr for reinterpret_cast, CXXConstCastExpr for \c const_cast and CXXAddrspaceCastExpr for addrspace_cast (in OpenCL).

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

Inherits from: ExplicitCastExpr

Member Variables

private clang::SourceLocation Loc
private clang::SourceLocation RParenLoc
private clang::SourceRange AngleBrackets

Inherited from Stmt:

protected

Method Overview

  • protected CXXNamedCastExpr(clang::Stmt::StmtClass SC, clang::QualType ty, clang::ExprValueKind VK, clang::CastKind kind, clang::Expr * op, unsigned int PathSize, bool HasFPFeatures, clang::TypeSourceInfo * writtenTy, clang::SourceLocation l, clang::SourceLocation RParenLoc, clang::SourceRange AngleBrackets)
  • protected CXXNamedCastExpr(clang::Stmt::StmtClass SC, clang::Stmt::EmptyShell Shell, unsigned int PathSize, bool HasFPFeatures)
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceRange getAngleBrackets() const
  • public clang::SourceLocation getBeginLoc() const
  • public const char * getCastName() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::SourceLocation getOperatorLoc() const
  • public clang::SourceLocation getRParenLoc() const

Inherited from ExplicitCastExpr:

Inherited from CastExpr:

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

CXXNamedCastExpr(clang::Stmt::StmtClass SC,
                 clang::QualType ty,
                 clang::ExprValueKind VK,
                 clang::CastKind kind,
                 clang::Expr* op,
                 unsigned int PathSize,
                 bool HasFPFeatures,
                 clang::TypeSourceInfo* writtenTy,
                 clang::SourceLocation l,
                 clang::SourceLocation RParenLoc,
                 clang::SourceRange AngleBrackets)

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

Parameters

clang::Stmt::StmtClass SC
clang::QualType ty
clang::ExprValueKind VK
clang::CastKind kind
clang::Expr* op
unsigned int PathSize
bool HasFPFeatures
clang::TypeSourceInfo* writtenTy
clang::SourceLocation l
clang::SourceLocation RParenLoc
clang::SourceRange AngleBrackets

CXXNamedCastExpr(clang::Stmt::StmtClass SC,
                 clang::Stmt::EmptyShell Shell,
                 unsigned int PathSize,
                 bool HasFPFeatures)

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

Parameters

clang::Stmt::StmtClass SC
clang::Stmt::EmptyShell Shell
unsigned int PathSize
bool HasFPFeatures

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

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

Parameters

const clang::Stmt* T

clang::SourceRange getAngleBrackets() const

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

clang::SourceLocation getBeginLoc() const

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

const char* getCastName() const

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

clang::SourceLocation getEndLoc() const

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

clang::SourceLocation getOperatorLoc() const

Description

Retrieve the location of the cast operator keyword, e.g.,\c static_cast.

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

clang::SourceLocation getRParenLoc() const

Description

Retrieve the location of the closing parenthesis.

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