class CStyleCastExpr

Declaration

class CStyleCastExpr : public ExplicitCastExpr,
                       private TrailingObjects { /* full declaration omitted */ };

Description

CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr.cast]), which uses the syntax (Type)expr. For example: @c (int)f.

Declared at: clang/include/clang/AST/Expr.h:3735

Inherits from: ExplicitCastExpr, TrailingObjects

Member Variables

private clang::SourceLocation LPLoc
private clang::SourceLocation RPLoc

Inherited from Stmt:

protected

Method Overview

  • private CStyleCastExpr(clang::QualType exprTy, clang::ExprValueKind vk, clang::CastKind kind, clang::Expr * op, unsigned int PathSize, clang::FPOptionsOverride FPO, clang::TypeSourceInfo * writtenTy, clang::SourceLocation l, clang::SourceLocation r)
  • private CStyleCastExpr(clang::Stmt::EmptyShell Shell, unsigned int PathSize, bool HasFPFeatures)
  • public static clang::CStyleCastExpr * Create(const clang::ASTContext & Context, clang::QualType T, clang::ExprValueKind VK, clang::CastKind K, clang::Expr * Op, const clang::CXXCastPath * BasePath, clang::FPOptionsOverride FPO, clang::TypeSourceInfo * WrittenTy, clang::SourceLocation L, clang::SourceLocation R)
  • public static clang::CStyleCastExpr * CreateEmpty(const clang::ASTContext & Context, unsigned int PathSize, bool HasFPFeatures)
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceLocation getBeginLoc() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::SourceLocation getLParenLoc() const
  • public clang::SourceLocation getRParenLoc() const
  • private unsigned int numTrailingObjects(OverloadToken<clang::CXXBaseSpecifier *>) const
  • public void setLParenLoc(clang::SourceLocation L)
  • public void setRParenLoc(clang::SourceLocation L)

Inherited from ExplicitCastExpr:

Inherited from CastExpr:

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

CStyleCastExpr(clang::QualType exprTy,
               clang::ExprValueKind vk,
               clang::CastKind kind,
               clang::Expr* op,
               unsigned int PathSize,
               clang::FPOptionsOverride FPO,
               clang::TypeSourceInfo* writtenTy,
               clang::SourceLocation l,
               clang::SourceLocation r)

Declared at: clang/include/clang/AST/Expr.h:3742

Parameters

clang::QualType exprTy
clang::ExprValueKind vk
clang::CastKind kind
clang::Expr* op
unsigned int PathSize
clang::FPOptionsOverride FPO
clang::TypeSourceInfo* writtenTy
clang::SourceLocation l
clang::SourceLocation r

CStyleCastExpr(clang::Stmt::EmptyShell Shell,
               unsigned int PathSize,
               bool HasFPFeatures)

Description

Construct an empty C-style explicit cast.

Declared at: clang/include/clang/AST/Expr.h:3753

Parameters

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

static clang::CStyleCastExpr* Create(
    const clang::ASTContext& Context,
    clang::QualType T,
    clang::ExprValueKind VK,
    clang::CastKind K,
    clang::Expr* Op,
    const clang::CXXCastPath* BasePath,
    clang::FPOptionsOverride FPO,
    clang::TypeSourceInfo* WrittenTy,
    clang::SourceLocation L,
    clang::SourceLocation R)

Declared at: clang/include/clang/AST/Expr.h:3763

Parameters

const clang::ASTContext& Context
clang::QualType T
clang::ExprValueKind VK
clang::CastKind K
clang::Expr* Op
const clang::CXXCastPath* BasePath
clang::FPOptionsOverride FPO
clang::TypeSourceInfo* WrittenTy
clang::SourceLocation L
clang::SourceLocation R

static clang::CStyleCastExpr* CreateEmpty(
    const clang::ASTContext& Context,
    unsigned int PathSize,
    bool HasFPFeatures)

Declared at: clang/include/clang/AST/Expr.h:3767

Parameters

const clang::ASTContext& Context
unsigned int PathSize
bool HasFPFeatures

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

Declared at: clang/include/clang/AST/Expr.h:3781

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/Expr.h:3776

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Expr.h:3777

clang::SourceLocation getLParenLoc() const

Declared at: clang/include/clang/AST/Expr.h:3770

clang::SourceLocation getRParenLoc() const

Declared at: clang/include/clang/AST/Expr.h:3773

unsigned int numTrailingObjects(
    OverloadToken<clang::CXXBaseSpecifier*>) const

Declared at: clang/include/clang/AST/Expr.h:3757

Parameters

OverloadToken<clang::CXXBaseSpecifier*>

void setLParenLoc(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Expr.h:3771

Parameters

clang::SourceLocation L

void setRParenLoc(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Expr.h:3774

Parameters

clang::SourceLocation L