Home
last modified time | relevance | path

Searched refs:CapturedDecl (Results 1 – 25 of 37) sorted by relevance

12

/llvm-project-15.0.7/clang/test/AST/
H A Dfinally-msvc.m12 // CHECK-NEXT: CapturedDecl
H A Dast-dump-stmt-json.m710 // CHECK-NEXT: "kind": "CapturedDecl",
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp420 void VisitCapturedDecl(const CapturedDecl *D) { in VisitCapturedDecl()
857 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D)) in mapRegionCounters()
858 Walker.TraverseDecl(const_cast<CapturedDecl *>(CD)); in mapRegionCounters()
936 else if (const CapturedDecl *CD = dyn_cast_or_null<CapturedDecl>(D)) in computeRegionCounts()
937 Walker.VisitCapturedDecl(const_cast<CapturedDecl *>(CD)); in computeRegionCounts()
H A DCGException.cpp469 if (const CapturedDecl* CD = dyn_cast_or_null<CapturedDecl>(D)) { in EmitStartEHSpec()
576 if (const CapturedDecl* CD = dyn_cast_or_null<CapturedDecl>(D)) { in EmitEndEHSpec()
H A DCGDecl.cpp225 if (auto *CD = dyn_cast<CapturedDecl>(DC)) in getStaticDeclName()
302 if (isa<BlockDecl>(DC) || isa<CapturedDecl>(DC)) { in getOrCreateStaticVarDecl()
1127 } else if (isa<CapturedDecl>(DC)) { in createUnnamedGlobalFrom()
H A DCGStmtOpenMP.cpp431 const CapturedDecl *CD = FO.S->getCapturedDecl(); in emitOutlinedFunctionPrologue()
614 const CapturedDecl *CD = S.getCapturedDecl(); in GenerateOpenMPCapturedStmtFunction()
4905 QualType Ty, CapturedDecl *CD, in createImplicitFirstprivateForType()
4975 auto *CD = CapturedDecl::Create( in EmitOMPTargetTaskBasedDirective()
H A DCGStmt.cpp2855 const CapturedDecl *CD = S.getCapturedDecl(); in GenerateCapturedStmtFunction()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DScopeInfo.h45 class CapturedDecl; variable
782 CapturedDecl *TheCapturedDecl;
799 CapturedRegionScopeInfo(DiagnosticsEngine &Diag, Scope *S, CapturedDecl *CD, in CapturedRegionScopeInfo()
/llvm-project-15.0.7/clang/lib/Sema/
H A DUsedDeclVisitor.h93 if (auto *CD = dyn_cast<CapturedDecl>(D)) { in visitUsedDecl()
H A DSemaStmt.cpp4643 Sema::CreateCapturedStmtRecordDecl(CapturedDecl *&CD, SourceLocation Loc, in CreateCapturedStmtRecordDecl()
4662 CD = CapturedDecl::Create(Context, CurContext, NumParams); in CreateCapturedStmtRecordDecl()
4712 CapturedDecl *CD = nullptr; in ActOnCapturedRegionStart()
4716 DeclContext *DC = CapturedDecl::castToDeclContext(CD); in ActOnCapturedRegionStart()
4742 CapturedDecl *CD = nullptr; in ActOnCapturedRegionStart()
4746 DeclContext *DC = CapturedDecl::castToDeclContext(CD); in ActOnCapturedRegionStart()
4826 CapturedDecl *CD = RSI->TheCapturedDecl; in ActOnCapturedRegionEnd()
H A DSemaLambda.cpp325 while (auto *CD = dyn_cast<CapturedDecl>(DC)) in getCurrentMangleNumberContext()
452 while (auto *CD = dyn_cast<CapturedDecl>(DC)) in handleLambdaNumbering()
H A DSema.cpp1424 if (isa<BlockDecl>(DC) || isa<EnumDecl>(DC) || isa<CapturedDecl>(DC) || in getFunctionLevelDeclContext()
2628 void Sema::PushCapturedRegionScope(Scope *S, CapturedDecl *CD, RecordDecl *RD, in PushCapturedRegionScope()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DGlobalDecl.h85 GlobalDecl(const CapturedDecl *D) { Init(D); } in GlobalDecl()
H A DDecl.h4408 class CapturedDecl final
4411 private llvm::TrailingObjects<CapturedDecl, ImplicitParamDecl *> {
4427 explicit CapturedDecl(DeclContext *DC, unsigned NumParams);
4442 static CapturedDecl *Create(ASTContext &C, DeclContext *DC,
4444 static CapturedDecl *CreateDeserialized(ASTContext &C, unsigned ID,
4495 static DeclContext *castToDeclContext(const CapturedDecl *D) { in castToDeclContext()
4496 return static_cast<DeclContext *>(const_cast<CapturedDecl *>(D)); in castToDeclContext()
4498 static CapturedDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
4499 return static_cast<CapturedDecl *>(const_cast<DeclContext *>(DC)); in castFromDeclContext()
H A DStmt.h50 class CapturedDecl; variable
3598 llvm::PointerIntPair<CapturedDecl *, 2, CapturedRegionKind> CapDeclAndKind;
3605 ArrayRef<Expr *> CaptureInits, CapturedDecl *CD, RecordDecl *RD);
3627 CapturedDecl *CD, RecordDecl *RD);
3637 CapturedDecl *getCapturedDecl();
3638 const CapturedDecl *getCapturedDecl() const;
3641 void setCapturedDecl(CapturedDecl *D);
H A DTextNodeDumper.h338 void VisitCapturedDecl(const CapturedDecl *D);
H A DASTNodeTraverser.h482 void VisitCapturedDecl(const CapturedDecl *D) { Visit(D->getBody()); } in VisitCapturedDecl()
H A DRecursiveASTVisitor.h1491 if (isa<BlockDecl>(Child) || isa<CapturedDecl>(Child))
1547 DEF_TRAVERSE_DECL(CapturedDecl, {
/llvm-project-15.0.7/clang/lib/AST/
H A DStmt.cpp1322 CapturedDecl *CD, in CapturedStmt()
1353 CapturedDecl *CD, in Create()
1399 CapturedDecl *CapturedStmt::getCapturedDecl() { in getCapturedDecl()
1403 const CapturedDecl *CapturedStmt::getCapturedDecl() const { in getCapturedDecl()
1408 void CapturedStmt::setCapturedDecl(CapturedDecl *D) { in setCapturedDecl()
H A DDecl.cpp5018 CapturedDecl::CapturedDecl(DeclContext *DC, unsigned NumParams) in CapturedDecl() function in CapturedDecl
5022 CapturedDecl *CapturedDecl::Create(ASTContext &C, DeclContext *DC, in Create()
5025 CapturedDecl(DC, NumParams); in Create()
5028 CapturedDecl *CapturedDecl::CreateDeserialized(ASTContext &C, unsigned ID, in CreateDeserialized()
5031 CapturedDecl(nullptr, NumParams); in CreateDeserialized()
5034 Stmt *CapturedDecl::getBody() const { return BodyAndNothrow.getPointer(); } in getBody()
5035 void CapturedDecl::setBody(Stmt *B) { BodyAndNothrow.setPointer(B); } in setBody()
5037 bool CapturedDecl::isNothrow() const { return BodyAndNothrow.getInt(); } in isNothrow()
5038 void CapturedDecl::setNothrow(bool Nothrow) { BodyAndNothrow.setInt(Nothrow); } in setNothrow()
H A DDeclBase.cpp1051 if (auto *CD = dyn_cast<CapturedDecl>(D)) in getNonClosureContext()
H A DTextNodeDumper.cpp1812 void TextNodeDumper::VisitCapturedDecl(const CapturedDecl *D) { in VisitCapturedDecl()
H A DExpr.cpp834 if (const CapturedDecl *CD = dyn_cast<CapturedDecl>(CurrentDecl)) { in ComputeName()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp408 void VisitCapturedDecl(CapturedDecl *CD);
1676 void ASTDeclReader::VisitCapturedDecl(CapturedDecl *CD) { in VisitCapturedDecl()
3795 D = CapturedDecl::CreateDeserialized(Context, ID, Record.readInt()); in ReadDeclRecord()
H A DASTWriterDecl.cpp131 void VisitCapturedDecl(CapturedDecl *D);
1213 void ASTDeclWriter::VisitCapturedDecl(CapturedDecl *CD) { in VisitCapturedDecl()

12