clang  3.9.0
Public Member Functions | List of all members
clang::BlockDecl::Capture Class Reference

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

#include <Decl.h>

Public Member Functions

 Capture (VarDecl *variable, bool byRef, bool nested, Expr *copy)
 
VarDeclgetVariable () const
 The variable being captured. More...
 
bool isByRef () const
 Whether this is a "by ref" capture, i.e. More...
 
bool isNested () const
 Whether this is a nested capture, i.e. More...
 
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 3460 of file Decl.h.

Constructor & Destructor Documentation

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

Member Function Documentation

Expr* clang::BlockDecl::Capture::getCopyExpr ( ) const
inline

Definition at line 3492 of file Decl.h.

VarDecl* clang::BlockDecl::Capture::getVariable ( ) const
inline

The variable being captured.

Definition at line 3481 of file Decl.h.

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

bool clang::BlockDecl::Capture::hasCopyExpr ( ) const
inline

Definition at line 3491 of file Decl.h.

bool clang::BlockDecl::Capture::isByRef ( ) const
inline

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

a capture of a __block variable.

Definition at line 3485 of file Decl.h.

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

bool clang::BlockDecl::Capture::isNested ( ) const
inline

Whether this is a nested capture, i.e.

the variable captured is not from outside the immediately enclosing function/block.

Definition at line 3489 of file Decl.h.

void clang::BlockDecl::Capture::setCopyExpr ( Expr e)
inline

Definition at line 3493 of file Decl.h.


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