clang API Documentation

Public Types | Public Member Functions
clang::sema::CapturingScopeInfo::Capture Class Reference

#include <ScopeInfo.h>

List of all members.

Public Types

enum  IsThisCapture { ThisCapture }

Public Member Functions

 Capture (VarDecl *Var, bool block, bool byRef, bool isNested, SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType, Expr *Cpy)
 Capture (IsThisCapture, bool isNested, SourceLocation Loc, QualType CaptureType, Expr *Cpy)
bool isThisCapture () const
bool isVariableCapture () const
bool isCopyCapture () const
bool isReferenceCapture () const
bool isBlockCapture () const
bool isNested ()
VarDeclgetVariable () const
SourceLocation getLocation () const
 Retrieve the location at which this variable was captured.
SourceLocation getEllipsisLoc () const
 Retrieve the source location of the ellipsis, whose presence indicates that the capture is a pack expansion.
QualType getCaptureType () const
 Retrieve the capture type for this capture, which is effectively the type of the non-static data member in the lambda/block structure that would store this capture.
ExprgetCopyExpr () const

Detailed Description

Definition at line 149 of file ScopeInfo.h.


Member Enumeration Documentation

Enumerator:
ThisCapture 

Definition at line 189 of file ScopeInfo.h.


Constructor & Destructor Documentation

clang::sema::CapturingScopeInfo::Capture::Capture ( VarDecl Var,
bool  block,
bool  byRef,
bool  isNested,
SourceLocation  Loc,
SourceLocation  EllipsisLoc,
QualType  CaptureType,
Expr Cpy 
) [inline]

Definition at line 182 of file ScopeInfo.h.

clang::sema::CapturingScopeInfo::Capture::Capture ( IsThisCapture  ,
bool  isNested,
SourceLocation  Loc,
QualType  CaptureType,
Expr Cpy 
) [inline]

Definition at line 190 of file ScopeInfo.h.


Member Function Documentation

QualType clang::sema::CapturingScopeInfo::Capture::getCaptureType ( ) const [inline]

Retrieve the capture type for this capture, which is effectively the type of the non-static data member in the lambda/block structure that would store this capture.

Definition at line 216 of file ScopeInfo.h.

Expr* clang::sema::CapturingScopeInfo::Capture::getCopyExpr ( ) const [inline]

Definition at line 218 of file ScopeInfo.h.

Referenced by clang::Sema::ActOnBlockStmtExpr().

SourceLocation clang::sema::CapturingScopeInfo::Capture::getEllipsisLoc ( ) const [inline]

Retrieve the source location of the ellipsis, whose presence indicates that the capture is a pack expansion.

Definition at line 211 of file ScopeInfo.h.

SourceLocation clang::sema::CapturingScopeInfo::Capture::getLocation ( ) const [inline]

Retrieve the location at which this variable was captured.

Definition at line 207 of file ScopeInfo.h.

VarDecl* clang::sema::CapturingScopeInfo::Capture::getVariable ( ) const [inline]

Definition at line 202 of file ScopeInfo.h.

Referenced by clang::Sema::ActOnBlockStmtExpr().

bool clang::sema::CapturingScopeInfo::Capture::isBlockCapture ( ) const [inline]

Definition at line 199 of file ScopeInfo.h.

Referenced by clang::Sema::ActOnBlockStmtExpr().

bool clang::sema::CapturingScopeInfo::Capture::isCopyCapture ( ) const [inline]

Definition at line 197 of file ScopeInfo.h.

Referenced by clang::Sema::tryCaptureVariable().

bool clang::sema::CapturingScopeInfo::Capture::isNested ( ) [inline]

Definition at line 200 of file ScopeInfo.h.

Referenced by clang::Sema::ActOnBlockStmtExpr().

bool clang::sema::CapturingScopeInfo::Capture::isReferenceCapture ( ) const [inline]

Definition at line 198 of file ScopeInfo.h.

bool clang::sema::CapturingScopeInfo::Capture::isThisCapture ( ) const [inline]

Definition at line 195 of file ScopeInfo.h.

Referenced by clang::Sema::ActOnBlockStmtExpr(), and isVariableCapture().

bool clang::sema::CapturingScopeInfo::Capture::isVariableCapture ( ) const [inline]

Definition at line 196 of file ScopeInfo.h.

References isThisCapture().


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