Lines Matching defs:Captures
13069 // Warn about retain cycles where a block captures the LHS, but
13461 // In OpenCL captures for blocks called as lambda functions
15521 SmallVector<BlockDecl::Capture, 4> Captures;
15522 for (Capture &Cap : BSI->Captures) {
15583 Captures.push_back(NewCap);
15585 BD->setCaptures(Context, Captures, BSI->CXXThisCaptureIndex != 0);
15593 // If the block isn't obviously global, i.e. it captures anything at
15602 for (const auto &CI : Result->getBlockDecl()->captures()) {
17246 // Similarly to mutable captures in lambda, all the OpenMP captures by copy
17515 // Make sure that by-copy captures are of a complete and non-abstract type.
17603 // Only try to offer default capture if there are no captures excluding this
17604 // and init captures.
17609 if (llvm::any_of(LSI->Captures, [](Capture &C) {
17627 // We can't use default capture by copy if any captures already specified
17629 if (CanDefaultCopyCapture && llvm::none_of(LSI->Captures, [](Capture &C) {
17639 // We can't use default capture by reference if any captures already specified
17641 if (llvm::none_of(LSI->Captures, [](Capture &C) {
17794 // When we detect target captures we are looking from inside the
17826 // capture a variable that an inner lambda explicitly captures, we
17847 // requirements, and adding captures if requested.
18484 // Add it to the list of potential captures that will be analyzed