Home | History | Annotate | Download | only in Sema

Lines Matching defs:Closure

897   // we use the DeclContext to get a hold of the closure-class and query it for
927 [](CXXRecordDecl *Closure, bool &IsByCopy, bool &IsConst) {
930 for (auto &&C : Closure->captures()) {
934 if (Closure->getLambdaCallOperator()->isConst())
944 CXXRecordDecl *Closure = cast<CXXRecordDecl>(CurDC->getParent());
945 while (Closure &&
946 IsThisCaptured(Closure, IsByCopyCapture, IsConstCapture)) {
953 Closure = isLambdaCallOperator(Closure->getParent())
954 ? cast<CXXRecordDecl>(Closure->getParent()->getParent())
979 // the closure type, checking whether that is itself a lambda, and if so,
1043 // of the closure-type's corresponding data member and any use of 'this'.
1087 // by the capturing-entity/closure (lambda/block/etc) at
1091 // closure that is a lambda, using the explicit notation:
1096 // For a closure 'L' (at MaxFunctionScopesIndex in the FunctionScopes
1101 // -- there is no enclosing closure
1102 // -- or, there is some enclosing closure 'E' that has already captured the
1103 // *enclosing object*, and every intervening closure (if any) between 'E'
1105 // -- or, every enclosing closure can implicitly capture the
1134 // This closure can capture 'this'; continue looking upwards.
1148 // If we got here, then the closure at MaxFunctionScopesIndex on the
1152 // In the loop below, respect the ByCopy flag only for the closure requesting
1154 // all enclosing closure's upto NumCapturingClosures (since they must be