clang API Documentation
#include <ScopeInfo.h>
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 | isVLATypeCapture () const |
bool | isNested () const |
VarDecl * | getVariable () 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. | |
Expr * | getInitExpr () const |
Definition at line 355 of file ScopeInfo.h.
Definition at line 402 of file ScopeInfo.h.
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 394 of file ScopeInfo.h.
clang::sema::CapturingScopeInfo::Capture::Capture | ( | IsThisCapture | , |
bool | IsNested, | ||
SourceLocation | Loc, | ||
QualType | CaptureType, | ||
Expr * | Cpy | ||
) | [inline] |
Definition at line 403 of file ScopeInfo.h.
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 445 of file ScopeInfo.h.
Referenced by isVariableAlreadyCapturedInScopeInfo().
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 440 of file ScopeInfo.h.
Expr* clang::sema::CapturingScopeInfo::Capture::getInitExpr | ( | ) | const [inline] |
Definition at line 447 of file ScopeInfo.h.
References isVLATypeCapture().
Referenced by clang::Sema::ActOnBlockStmtExpr().
SourceLocation clang::sema::CapturingScopeInfo::Capture::getLocation | ( | ) | const [inline] |
Retrieve the location at which this variable was captured.
Definition at line 436 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnStartOfLambdaDefinition().
VarDecl* clang::sema::CapturingScopeInfo::Capture::getVariable | ( | ) | const [inline] |
Definition at line 431 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnBlockStmtExpr(), and isVLATypeCapture().
bool clang::sema::CapturingScopeInfo::Capture::isBlockCapture | ( | ) | const [inline] |
Definition at line 422 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnBlockStmtExpr().
bool clang::sema::CapturingScopeInfo::Capture::isCopyCapture | ( | ) | const [inline] |
Definition at line 415 of file ScopeInfo.h.
References isVLATypeCapture().
Referenced by isVariableAlreadyCapturedInScopeInfo().
bool clang::sema::CapturingScopeInfo::Capture::isNested | ( | ) | const [inline] |
Definition at line 429 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnBlockStmtExpr().
bool clang::sema::CapturingScopeInfo::Capture::isReferenceCapture | ( | ) | const [inline] |
Definition at line 419 of file ScopeInfo.h.
bool clang::sema::CapturingScopeInfo::Capture::isThisCapture | ( | ) | const [inline] |
Definition at line 409 of file ScopeInfo.h.
Referenced by clang::Sema::ActOnBlockStmtExpr().
bool clang::sema::CapturingScopeInfo::Capture::isVariableCapture | ( | ) | const [inline] |
Definition at line 412 of file ScopeInfo.h.
References isVLATypeCapture().
bool clang::sema::CapturingScopeInfo::Capture::isVLATypeCapture | ( | ) | const [inline] |
Definition at line 425 of file ScopeInfo.h.
References getVariable().
Referenced by getInitExpr(), isCopyCapture(), and isVariableCapture().