Home
last modified time | relevance | path

Searched refs:getBlockDecl (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DNoEscapeCheck.cpp33 const BlockDecl *EscapingBlockDecl = MatchedEscapingBlock->getBlockDecl(); in check()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBlocks.h310 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl() function
313 assert(BlockExpression->getBlockDecl() == Block); in getBlockExpr()
H A DCGBlocks.cpp575 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo()
788 if (!blockExpr->getBlockDecl()->hasCaptures()) in EmitBlockLiteral()
794 CGBlockInfo blockInfo(blockExpr->getBlockDecl(), CurFn->getName()); in EmitBlockLiteral()
813 bool isLambdaConv = blockInfo.getBlockDecl()->isConversionFromLambda(); in EmitBlockLiteral()
907 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral()
1297 CGBlockInfo blockInfo(BE->getBlockDecl(), Name); in GetAddrOfGlobalBlock()
1450 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in GenerateBlockFunction()
H A DCGDecl.cpp674 const BlockDecl *block = be->getBlockDecl(); in isAccessedBy()
1661 const BlockDecl *Block = BE->getBlockDecl(); in isCapturedBy()
H A DCGClass.cpp2937 const BlockDecl *BD = BlockInfo->getBlockDecl(); in EmitLambdaBlockInvokeBody()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DUndefCapturedBlockVarChecker.cpp53 if (!BE->getBlockDecl()->hasCaptures()) in checkPostStmt()
H A DMallocChecker.cpp2970 if (!BE->getBlockDecl()->hasCaptures()) in checkPostStmt()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCallGraph.cpp63 return Block->getBlockDecl(); in getDeclFromCall()
H A DAnalysisDeclContext.cpp621 IgnoredContexts.insert(BR->getBlockDecl()); in VisitBlockExpr()
622 Visit(BR->getBlockDecl()->getBody()); in VisitBlockExpr()
H A DCalledOnceCheck.cpp1568 Handler.handleBlockThatIsGuaranteedToBeCalledOnce(Block->getBlockDecl()); in VisitBlockExpr()
1570 Handler.handleBlockWithNoGuarantees(Block->getBlockDecl()); in VisitBlockExpr()
1573 for (const auto &Capture : Block->getBlockDecl()->captures()) { in VisitBlockExpr()
H A DLiveVariables.cpp372 LV.analysisContext.getReferencedBlockVars(BE->getBlockDecl())) { in VisitBlockExpr()
H A DUninitializedValues.cpp709 const BlockDecl *bd = be->getBlockDecl(); in VisitBlockExpr()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DAnalysisDeclContext.h369 const BlockDecl *getBlockDecl() const { return BD; } in getBlockDecl() function
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTNodeTraverser.h707 void VisitBlockExpr(const BlockExpr *Node) { Visit(Node->getBlockDecl()); } in VisitBlockExpr()
H A DExpr.h5982 const BlockDecl *getBlockDecl() const { return TheBlock; } in getBlockDecl() function
5983 BlockDecl *getBlockDecl() { return TheBlock; } in getBlockDecl() function
H A DRecursiveASTVisitor.h2713 TRY_TO(TraverseDecl(S->getBlockDecl()));
/llvm-project-15.0.7/clang/lib/AST/
H A DComputeDependence.cpp257 if (E->getBlockDecl()->isDependentContext()) in computeDependence()
H A DStmtProfile.cpp1539 VisitDecl(S->getBlockDecl()); in VisitBlockExpr()
H A DStmtPrinter.cpp2665 BlockDecl *BD = Node->getBlockDecl(); in VisitBlockExpr()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp200 const BlockDecl *BD = BE->getBlockDecl(); in VisitBlockExpr()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp3261 BlockDecl *BD = CE->getBlockDecl(); in SynthesizeBlockFunc()
3668 InnerContexts.insert(cast<DeclContext>(CBE->getBlockDecl())); in GetInnerBlockDeclRefExprs()
4351 const BlockDecl *block = Exp->getBlockDecl(); in SynthBlockInitExpr()
4589 InnerContexts.insert(BE->getBlockDecl()); in RewriteFunctionBodyOrGlobalInitializer()
H A DRewriteModernObjC.cpp4052 BlockDecl *BD = CE->getBlockDecl(); in SynthesizeBlockFunc()
4482 InnerContexts.insert(cast<DeclContext>(CBE->getBlockDecl())); in GetInnerBlockDeclRefExprs()
5198 const BlockDecl *block = Exp->getBlockDecl(); in SynthBlockInitExpr()
5466 InnerContexts.insert(BE->getBlockDecl()); in RewriteFunctionBodyOrGlobalInitializer()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.cpp151 if (!BE->getBlockDecl()->hasCaptures()) in checkPostStmt()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp1353 BlockDecl *BD = cast<BlockExpr>(BlockArg)->getBlockDecl(); in checkOpenCLBlockArgs()
16302 if (block->getBlockDecl()->capturesVariable(Variable)) in VisitBlockExpr()
16303 Visit(block->getBlockDecl()->getBody()); in VisitBlockExpr()
16361 if (!block || !block->getBlockDecl()->capturesVariable(owner.Variable)) in findCapturingExpr()
16365 visitor.Visit(block->getBlockDecl()->getBody()); in findCapturingExpr()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterStmt.cpp1221 Record.AddDeclRef(E->getBlockDecl()); in VisitBlockExpr()

12