clang API Documentation
#include <Decl.h>
Public Member Functions | |
| Capture (VarDecl *variable, bool byRef, bool nested, Expr *copy) | |
| VarDecl * | getVariable () const |
| The variable being captured. | |
| bool | isByRef () const |
| bool | isNested () const |
| bool | hasCopyExpr () const |
| Expr * | getCopyExpr () const |
| void | setCopyExpr (Expr *e) |
A class which contains all the information about a particular captured value.
| clang::BlockDecl::Capture::Capture | ( | VarDecl * | variable, |
| bool | byRef, | ||
| bool | nested, | ||
| Expr * | copy | ||
| ) | [inline] |
Definition at line 3334 of file Decl.h.
Referenced by clang::CodeGen::CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable().
| Expr* clang::BlockDecl::Capture::getCopyExpr | ( | ) | const [inline] |
| VarDecl* clang::BlockDecl::Capture::getVariable | ( | ) | const [inline] |
The variable being captured.
Definition at line 3340 of file Decl.h.
Referenced by clang::CodeGen::CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable(), and clang::CodeGen::CodeGenFunction::EmitLambdaBlockInvokeBody().
| bool clang::BlockDecl::Capture::hasCopyExpr | ( | ) | const [inline] |
| 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 3344 of file Decl.h.
Referenced by clang::CodeGen::CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable().
| bool clang::BlockDecl::Capture::isNested | ( | ) | const [inline] |
| void clang::BlockDecl::Capture::setCopyExpr | ( | Expr * | e | ) | [inline] |