clang API Documentation

Public Member Functions
clang::BlockDecl::Capture Class Reference

#include <Decl.h>

List of all members.

Public Member Functions

 Capture (VarDecl *variable, bool byRef, bool nested, Expr *copy)
VarDeclgetVariable () const
 The variable being captured.
bool isByRef () const
bool isNested () const
bool hasCopyExpr () const
ExprgetCopyExpr () const
void setCopyExpr (Expr *e)

Detailed Description

A class which contains all the information about a particular captured value.

Definition at line 3319 of file Decl.h.


Constructor & Destructor Documentation

clang::BlockDecl::Capture::Capture ( VarDecl variable,
bool  byRef,
bool  nested,
Expr copy 
) [inline]

Member Function Documentation

Definition at line 3351 of file Decl.h.

Definition at line 3350 of file Decl.h.

Whether this is a "by ref" capture, i.e. a capture of a __block variable.

Definition at line 3344 of file Decl.h.

Referenced by clang::CodeGen::CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable().

Whether this is a nested capture, i.e. the variable captured is not from outside the immediately enclosing function/block.

Definition at line 3348 of file Decl.h.

Definition at line 3352 of file Decl.h.


The documentation for this class was generated from the following file: