clang API Documentation
#include <Expr.h>
Public Member Functions | |
BlockExpr (BlockDecl *BD, QualType ty) | |
BlockExpr (EmptyShell Empty) | |
Build an empty block expression. | |
const BlockDecl * | getBlockDecl () const |
BlockDecl * | getBlockDecl () |
void | setBlockDecl (BlockDecl *BD) |
SourceLocation | getCaretLocation () const |
const Stmt * | getBody () const |
Stmt * | getBody () |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
const FunctionProtoType * | getFunctionType () const |
getFunctionType - Return the underlying function type for this block. | |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
Protected Attributes | |
BlockDecl * | TheBlock |
BlockExpr - Adaptor class for mixing a BlockDecl with expressions. ^{ statement-body } or ^(int arg1, float arg2){ statement-body }
clang::BlockExpr::BlockExpr | ( | BlockDecl * | BD, |
QualType | ty | ||
) | [inline] |
clang::BlockExpr::BlockExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
child_range clang::BlockExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
static bool clang::BlockExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 4556 of file Expr.h.
References clang::Stmt::getStmtClass().
const BlockDecl* clang::BlockExpr::getBlockDecl | ( | ) | const [inline] |
Definition at line 4541 of file Expr.h.
References TheBlock.
Referenced by clang::Sema::ActOnBlockStmtExpr(), clang::CodeGen::CodeGenFunction::EmitBlockLiteral(), findCapturingExpr(), clang::CodeGen::CodeGenModule::GetAddrOfGlobalBlock(), clang::CodeGen::CGBlockInfo::getBlockExpr(), clang::ASTContext::getObjCEncodingForBlock(), and clang::ento::ExprEngine::VisitBlockExpr().
BlockDecl* clang::BlockExpr::getBlockDecl | ( | ) | [inline] |
const Stmt * BlockExpr::getBody | ( | ) | const |
Definition at line 1983 of file Expr.cpp.
References clang::BlockDecl::getBody(), and TheBlock.
Referenced by clang::CodeGen::CodeGenFunction::GenerateBlockFunction(), and getLocEnd().
Stmt * BlockExpr::getBody | ( | ) |
Definition at line 1986 of file Expr.cpp.
References clang::BlockDecl::getBody(), and TheBlock.
SourceLocation BlockExpr::getCaretLocation | ( | ) | const |
Definition at line 1980 of file Expr.cpp.
References clang::BlockDecl::getCaretLocation(), and TheBlock.
Referenced by getLocStart().
const FunctionProtoType * BlockExpr::getFunctionType | ( | ) | const |
getFunctionType - Return the underlying function type for this block.
Definition at line 1974 of file Expr.cpp.
References clang::Type::castAs(), and clang::Expr::getType().
Referenced by clang::CodeGen::CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable(), and clang::CodeGen::CodeGenFunction::GenerateBlockFunction().
SourceLocation clang::BlockExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 4551 of file Expr.h.
References getBody(), and clang::Stmt::getLocEnd().
SourceLocation clang::BlockExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 4550 of file Expr.h.
References getCaretLocation().
Referenced by DiagnoseUninitializedUse().
void clang::BlockExpr::setBlockDecl | ( | BlockDecl * | BD | ) | [inline] |
BlockDecl* clang::BlockExpr::TheBlock [protected] |
Definition at line 4529 of file Expr.h.
Referenced by getBlockDecl(), getBody(), getCaretLocation(), and setBlockDecl().