/llvm-project/clang/lib/CodeGen/ |
H A D | CGBlocks.h | 305 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl() function 308 assert(BlockExpression->getBlockDecl() == Block); in getBlockExpr()
|
H A D | CGBlocks.cpp | 556 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo() 769 if (!blockExpr->getBlockDecl()->hasCaptures()) in EmitBlockLiteral() 775 CGBlockInfo blockInfo(blockExpr->getBlockDecl(), CurFn->getName()); in EmitBlockLiteral() 792 bool isLambdaConv = blockInfo.getBlockDecl()->isConversionFromLambda(); in EmitBlockLiteral() 887 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral() 1271 CGBlockInfo blockInfo(BE->getBlockDecl(), Name); in GetAddrOfGlobalBlock() 1428 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in GenerateBlockFunction()
|
H A D | CGDecl.cpp | 672 const BlockDecl *block = be->getBlockDecl(); in EmitAutoVarWithLifetime() 1747 const BlockDecl *Block = BE->getBlockDecl(); in isCapturedBy()
|
H A D | CGOpenMPRuntimeGPU.cpp | 384 for (const BlockDecl::Capture &C : E->getBlockDecl()->captures()) { in VisitBlockExpr()
|
H A D | CGClass.cpp | 3000 const BlockDecl *BD = BlockInfo->getBlockDecl(); in EmitForwardingCallToLambda()
|
/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | NoEscapeCheck.cpp | 31 const BlockDecl *EscapingBlockDecl = MatchedEscapingBlock->getBlockDecl(); in check()
|
/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UndefCapturedBlockVarChecker.cpp | 54 if (!BE->getBlockDecl()->hasCaptures()) in checkPostStmt()
|
/llvm-project/clang/lib/Analysis/ |
H A D | CallGraph.cpp | 63 return Block->getBlockDecl(); in getDeclFromCall()
|
H A D | AnalysisDeclContext.cpp | 620 IgnoredContexts.insert(BR->getBlockDecl()); in VisitBlockExpr() 621 Visit(BR->getBlockDecl()->getBody()); in VisitBlockExpr()
|
H A D | CalledOnceCheck.cpp | 1569 Handler.handleBlockThatIsGuaranteedToBeCalledOnce(Block->getBlockDecl()); in VisitBlockExpr() 1571 Handler.handleBlockWithNoGuarantees(Block->getBlockDecl()); in VisitBlockExpr() 1574 for (const auto &Capture : Block->getBlockDecl()->captures()) { in VisitBlockExpr()
|
H A D | LiveVariables.cpp | 409 LV.analysisContext.getReferencedBlockVars(BE->getBlockDecl())) { in VisitDeclStmt()
|
H A D | UninitializedValues.cpp | 702 const BlockDecl *bd = be->getBlockDecl(); in VisitBlockExpr()
|
/llvm-project/clang/include/clang/Analysis/ |
H A D | AnalysisDeclContext.h | 369 const BlockDecl *getBlockDecl() const { return BD; } in getBlockDecl() function
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaObjC.cpp | 895 if (block->getBlockDecl()->capturesVariable(Variable)) in VisitBlockExpr() 896 Visit(block->getBlockDecl()->getBody()); in VisitBlockExpr() 955 if (!block || !block->getBlockDecl()->capturesVariable(owner.Variable)) in findCapturingExpr() 959 visitor.Visit(block->getBlockDecl()->getBody()); in findCapturingExpr()
|
H A D | SemaOpenCL.cpp | 124 BlockDecl *BD = cast<BlockExpr>(BlockArg)->getBlockDecl(); in checkBlockArgs()
|
H A D | CheckExprLifetime.cpp | 1082 if (cast<BlockExpr>(Init)->getBlockDecl()->hasCaptures()) { in checkExprLifetimeImpl()
|
/llvm-project/clang/include/clang/AST/ |
H A D | ASTNodeTraverser.h | 862 void VisitBlockExpr(const BlockExpr *Node) { Visit(Node->getBlockDecl()); } in VisitTypeTraitExpr()
|
H A D | Expr.h | 6426 const BlockDecl *getBlockDecl() const { return TheBlock; } 6427 BlockDecl *getBlockDecl() { return TheBlock; } in classof() 6348 const BlockDecl *getBlockDecl() const { return TheBlock; } getBlockDecl() function 6349 BlockDecl *getBlockDecl() { return TheBlock; } getBlockDecl() function
|
/llvm-project/clang/lib/AST/ |
H A D | ComputeDependence.cpp | 258 if (E->getBlockDecl()->isDependentContext()) in computeDependence()
|
H A D | StmtProfile.cpp | 1636 VisitDecl(S->getBlockDecl()); in VisitRequiresExpr()
|
H A D | StmtPrinter.cpp | 2847 BlockDecl *BD = Node->getBlockDecl();
|
/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineC.cpp | 198 const BlockDecl *BD = BE->getBlockDecl(); in VisitBlockExpr()
|
/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteObjC.cpp | 3259 BlockDecl *BD = CE->getBlockDecl(); in SynthesizeBlockFunc() 3660 InnerContexts.insert(cast<DeclContext>(CBE->getBlockDecl())); in GetBlockDeclRefExprs() 4334 const BlockDecl *block = Exp->getBlockDecl(); in CollectBlockDeclRefInfo() 4568 InnerContexts.insert(BE->getBlockDecl()); in RewriteFunctionBodyOrGlobalInitializer()
|
H A D | RewriteModernObjC.cpp | 4050 BlockDecl *BD = CE->getBlockDecl(); in SynthesizeBlockFunc() 4463 InnerContexts.insert(cast<DeclContext>(CBE->getBlockDecl())); in GetBlockDeclRefExprs() 5171 const BlockDecl *block = Exp->getBlockDecl(); in CollectBlockDeclRefInfo() 5429 InnerContexts.insert(BE->getBlockDecl()); in RewriteFunctionBodyOrGlobalInitializer()
|
/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
H A D | RetainCountChecker.cpp | 152 if (!BE->getBlockDecl()->hasCaptures()) in checkPostStmt()
|