Searched refs:Captures (Results 1 - 25 of 27) sorted by path

12

/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h4097 const Capture *Captures = nullptr;
4164 ArrayRef<Capture> captures() const { return {Captures, NumCaptures}; }
4200 void setCaptures(ASTContext &Context, ArrayRef<Capture> Captures,
H A DDeclCXX.h405 Capture *Captures = nullptr; member in struct:clang::CXXRecordDecl::LambdaDefinitionData
1005 /// \param Captures Will be populated with the mapping from captured
1013 void getCaptureFields(llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
1024 return isLambda() ? getLambdaData().Captures : nullptr;
H A DExprCXX.h1853 SourceLocation CaptureDefaultLoc, ArrayRef<LambdaCapture> Captures,
1879 ArrayRef<LambdaCapture> Captures, bool ExplicitParams,
H A DStmt.h3463 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures,
3484 ArrayRef<Capture> Captures,
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h224 /// Captures information about "declaration specifiers".
812 /// Captures information about "declaration specifiers" specific to
2661 SmallVector<LambdaCapture, 4> Captures;
2675 Captures.push_back(LambdaCapture(Kind, Loc, Id, EllipsisLoc, InitKind, Init,
H A DScopeInfo.h643 /// CaptureMap - A map of captured variables to (index+1) into Captures.
650 /// Captures - The captures.
651 SmallVector<Capture, 4> Captures; member in class:clang::sema::CapturingScopeInfo
664 Captures.push_back(Capture(Var, isBlock, isByref, isNested, Loc,
666 CaptureMap[Var] = Captures.size();
671 Captures.push_back(Capture(Capture::VLACapture, VLAType,
684 return Captures[CXXThisCaptureIndex - 1];
699 return Captures[CaptureMap[Var] - 1];
706 return Captures[Known->second - 1];
809 /// The number of captures in the \c Captures lis
[all...]
H A DSema.h6165 ArrayRef<LambdaIntroducer::LambdaCapture> Captures,
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp4557 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, argument
4560 this->NumCaptures = Captures.size();
4562 if (Captures.empty()) {
4563 this->Captures = nullptr;
4567 this->Captures = Captures.copy(Context).data();
H A DDeclCXX.cpp1455 llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
1457 Captures.clear();
1462 for (const LambdaCapture *C = Lambda.Captures, *CEnd = C + Lambda.NumCaptures;
1467 Captures[C->getCapturedVar()] = *Field;
H A DExprCXX.cpp1175 ArrayRef<LambdaCapture> Captures, bool ExplicitParams,
1183 NumCaptures(Captures.size()), CaptureDefault(CaptureDefault),
1186 assert(CaptureInits.size() == Captures.size() && "Wrong number of arguments");
1196 Data.Captures =
1198 LambdaCapture *ToCapture = Data.Captures;
1199 for (unsigned I = 0, N = Captures.size(); I != N; ++I) {
1200 if (Captures[I].isExplicit())
1203 *ToCapture++ = Captures[I];
1218 SourceLocation CaptureDefaultLoc, ArrayRef<LambdaCapture> Captures,
1225 unsigned Size = totalSizeToAlloc<Stmt *>(Captures
1172 LambdaExpr(QualType T, SourceRange IntroducerRange, LambdaCaptureDefault CaptureDefault, SourceLocation CaptureDefaultLoc, ArrayRef<LambdaCapture> Captures, bool ExplicitParams, bool ExplicitResultType, ArrayRef<Expr *> CaptureInits, SourceLocation ClosingBrace, bool ContainsUnexpandedParameterPack) argument
1215 Create( const ASTContext &Context, CXXRecordDecl *Class, SourceRange IntroducerRange, LambdaCaptureDefault CaptureDefault, SourceLocation CaptureDefaultLoc, ArrayRef<LambdaCapture> Captures, bool ExplicitParams, bool ExplicitResultType, ArrayRef<Expr *> CaptureInits, SourceLocation ClosingBrace, bool ContainsUnexpandedParameterPack) argument
[all...]
H A DStmt.cpp1219 ArrayRef<Capture> Captures,
1223 : Stmt(CapturedStmtClass), NumCaptures(Captures.size()),
1239 std::copy(Captures.begin(), Captures.end(), Buffer);
1250 ArrayRef<Capture> Captures,
1263 assert(CaptureInits.size() == Captures.size() && "wrong number of arguments");
1265 unsigned Size = sizeof(CapturedStmt) + sizeof(Stmt *) * (Captures.size() + 1);
1266 if (!Captures.empty()) {
1269 Size += sizeof(Capture) * Captures.size();
1273 return new (Mem) CapturedStmt(S, Kind, Captures, CaptureInit
1218 CapturedStmt(Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures, ArrayRef<Expr *> CaptureInits, CapturedDecl *CD, RecordDecl *RD) argument
1248 Create(const ASTContext &Context, Stmt *S, CapturedRegionKind Kind, ArrayRef<Capture> Captures, ArrayRef<Expr *> CaptureInits, CapturedDecl *CD, RecordDecl *RD) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBlocks.cpp362 info.Captures.insert({Capture->getVariable(), C});
594 info.Captures[variable] = CGBlockInfo::Capture::makeConstant(constant);
1905 const SmallVectorImpl<BlockCaptureManagedEntity> &Captures,
1919 for (const BlockCaptureManagedEntity &E : Captures) {
1904 getCopyDestroyHelperFuncName( const SmallVectorImpl<BlockCaptureManagedEntity> &Captures, CharUnits BlockAlignment, CaptureStrKind StrKind, CodeGenModule &CGM) argument
H A DCGBlocks.h242 llvm::DenseMap<const VarDecl*, Capture> Captures; member in class:clang::CodeGen::CGBlockInfo
275 it = Captures.find(var);
276 assert(it != Captures.end() && "no entry for variable!");
H A DCGException.cpp1658 llvm::SmallSetVector<const VarDecl *, 4> Captures; member in struct:__anon351::CaptureFinder
1665 return !Captures.empty() || SEHCodeSlot.isValid();
1679 Captures.insert(ParentThis);
1685 Captures.insert(D);
1689 Captures.insert(ParentThis);
1798 for (const VarDecl *VD : Finder.Captures) {
H A DCGOpenMPRuntime.cpp8165 llvm::DenseMap<const VarDecl *, FieldDecl *> Captures; local
8167 RD->getCaptureFields(Captures, ThisCapture);
8188 auto It = Captures.find(VD);
8189 assert(It != Captures.end() && "Found lambda capture without field.");
H A DCGOpenMPRuntimeNVPTX.cpp4885 llvm::DenseMap<const VarDecl *, FieldDecl *> Captures;
4887 RD->getCaptureFields(Captures, ThisCapture);
4900 auto It = Captures.find(VD);
4901 assert(It != Captures.end() && "Found lambda capture without field.");
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DScopeInfo.cpp226 for (auto &Cap : Captures)
H A DSemaCodeComplete.cpp5756 for (const auto &C : Intro.Captures) {
H A DSemaDecl.cpp7283 for (const Capture &Capture : LSI->Captures) {
H A DSemaExpr.cpp14463 SmallVector<BlockDecl::Capture, 4> Captures; local
14464 for (Capture &Cap : BSI->Captures) {
14525 Captures.push_back(NewCap);
14527 BD->setCaptures(Context, Captures, BSI->CXXThisCaptureIndex != 0);
H A DSemaExprCXX.cpp1188 CSI->Captures[CSI->CXXThisCaptureIndex - 1].markUsed(BuildAndDiagnose);
H A DSemaLambda.cpp539 ArrayRef<LambdaIntroducer::LambdaCapture> Captures,
551 for (const auto &Capture : Captures) {
1031 for (auto C = Intro.Captures.begin(), E = Intro.Captures.end(); C != E;
1072 if (!LSI->Captures.empty())
1073 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange;
1224 if (!LSI->Captures.empty())
1225 LSI->ExplicitCaptureRanges[LSI->Captures.size() - 1] = C->ExplicitRange;
1232 addLambdaParameters(Intro.Captures, Method, CurScope);
1655 SmallVector<LambdaCapture, 4> Captures; local
538 addLambdaParameters( ArrayRef<LambdaIntroducer::LambdaCapture> Captures, CXXMethodDecl *CallOperator, Scope *CurScope) argument
[all...]
H A DSemaOpenMP.cpp3820 llvm::DenseMap<const VarDecl *, FieldDecl *> Captures;
3822 RD->getCaptureFields(Captures, ThisCapture);
5744 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
5748 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
5751 buildCounterVar(llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
5764 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures,
5769 Scope *S, llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) const;
6302 llvm::MapVector<const Expr *, DeclRefExpr *> &Captures) {
6309 auto I = Captures.find(Capture);
6310 if (I != Captures
[all...]
H A DSemaStmt.cpp4298 SmallVectorImpl<CapturedStmt::Capture> &Captures,
4300 for (const sema::Capture &Cap : RSI->Captures) {
4316 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(),
4319 Captures.push_back(
4327 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(),
4450 SmallVector<CapturedStmt::Capture, 4> Captures; local
4452 if (buildCapturedStmtCaptureList(*this, RSI, Captures, CaptureInits))
4460 Captures, CaptureInits, CD, RD);
4297 buildCapturedStmtCaptureList(Sema &S, CapturedRegionScopeInfo *RSI, SmallVectorImpl<CapturedStmt::Capture> &Captures, SmallVectorImpl<Expr *> &CaptureInits) argument
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp1710 Lambda.Captures = (Capture *)Reader.getContext().Allocate(
1712 Capture *ToCapture = Lambda.Captures;

Completed in 653 milliseconds

12