class BlockExpr

Declaration

class BlockExpr : public Expr { /* full declaration omitted */ };

Description

BlockExpr - Adaptor class for mixing a BlockDecl with expressions. ^{ statement-body } or ^(int arg1, float arg2){ statement-body }

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

Inherits from: Expr

Member Variables

protected clang::BlockDecl* TheBlock

Inherited from Stmt:

protected

Method Overview

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

BlockExpr(clang::BlockDecl* BD,
          clang::QualType ty)

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

Parameters

clang::BlockDecl* BD
clang::QualType ty

BlockExpr(clang::Stmt::EmptyShell Empty)

Description

Build an empty block expression.

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

Parameters

clang::Stmt::EmptyShell Empty

clang::Stmt::child_range children()

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

clang::Stmt::const_child_range children() const

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

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

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

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

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

const clang::BlockDecl* getBlockDecl() const

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

clang::BlockDecl* getBlockDecl()

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

const clang::Stmt* getBody() const

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

clang::Stmt* getBody()

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

clang::SourceLocation getCaretLocation() const

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

clang::SourceLocation getEndLoc() const

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

const clang::FunctionProtoType* getFunctionType()
    const

Description

getFunctionType - Return the underlying function type for this block.

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

void setBlockDecl(clang::BlockDecl* BD)

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

Parameters

clang::BlockDecl* BD