clang API Documentation
This file provides some common utility functions for processing Lambdas. More...
Go to the source code of this file.
Namespaces | |
namespace | clang |
Functions | |
Optional< unsigned > | clang::getStackIndexOfNearestEnclosingCaptureCapableLambda (ArrayRef< const sema::FunctionScopeInfo * > FunctionScopes, VarDecl *VarToCapture, Sema &S) |
Examines the FunctionScopeInfo stack to determine the nearest enclosing lambda (to the current lambda) that is 'capture-capable' for the variable referenced in the current lambda (i.e. VarToCapture ). If successful, returns the index into Sema's FunctionScopeInfo stack of the capture-capable lambda's LambdaScopeInfo. See Implementation for more detailed comments. |
This file provides some common utility functions for processing Lambdas.
Definition in file SemaLambda.h.