| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Mangle.h | 29 class BlockDecl; variable 61 llvm::DenseMap<const BlockDecl*, unsigned> GlobalBlockIds; 62 llvm::DenseMap<const BlockDecl*, unsigned> LocalBlockIds; 82 unsigned getBlockId(const BlockDecl *BD, bool Local) { in getBlockId() 83 llvm::DenseMap<const BlockDecl *, unsigned> &BlockIds in getBlockId() 85 std::pair<llvm::DenseMap<const BlockDecl *, unsigned>::iterator, bool> in getBlockId() 137 void mangleGlobalBlock(const BlockDecl *BD, 141 const BlockDecl *BD, raw_ostream &Out); 143 const BlockDecl *BD, raw_ostream &Out); 144 void mangleBlock(const DeclContext *DC, const BlockDecl *BD,
|
| H A D | MangleNumberingContext.h | 22 class BlockDecl; variable 39 virtual unsigned getManglingNumber(const BlockDecl *BD) = 0;
|
| H A D | TextNodeDumper.h | 188 void Visit(const BlockDecl::Capture &C); 379 void VisitBlockDecl(const BlockDecl *D);
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | AnalysisDeclContext.h | 37 class BlockDecl; variable 92 llvm::DenseMap<const BlockDecl *, void *> *ReferencedBlockVars = nullptr; 174 getReferencedBlockVars(const BlockDecl *BD); 188 const BlockDecl *BD, const void *Data); 356 const BlockDecl *BD; 362 const LocationContext *ParentLC, const BlockDecl *BD, in BlockInvocationContext() 369 const BlockDecl *getBlockDecl() const { return BD; } in getBlockDecl() 376 const LocationContext *ParentLC, const BlockDecl *BD, in Profile() 419 const BlockDecl *BD, const void *Data);
|
| H A D | AnyCall.h | 74 (K == Block && !isa<BlockDecl>(D)))) in AnyCall() 151 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in parameters()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/ |
| H A D | CalledOnceCheck.h | 20 class BlockDecl; variable 99 handleBlockThatIsGuaranteedToBeCalledOnce(const BlockDecl *Block) {} in handleBlockThatIsGuaranteedToBeCalledOnce() 105 virtual void handleBlockWithNoGuarantees(const BlockDecl *Block) {} in handleBlockWithNoGuarantees()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBlocks.h | 208 const BlockDecl::Capture *Cap) { in makeIndex() 222 const BlockDecl::Capture *Cap) { in makeConstant() 237 const BlockDecl::Capture *Cap; 276 const BlockDecl *Block; 310 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl() 317 CGBlockInfo(const BlockDecl *blockDecl, StringRef Name);
|
| H A D | CGBlocks.cpp | 35 CGBlockInfo::CGBlockInfo(const BlockDecl *block, StringRef name) in CGBlockInfo() 74 const BlockDecl::Capture *CI; 81 const BlockDecl::Capture &CI, in BlockCaptureManagedEntity() 328 const BlockDecl::Capture *Capture; // null for 'this' 575 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo() 907 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral() 1089 if (auto *BD = C.dyn_cast<BlockDecl *>()) in EmitBlockLiteral() 1450 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in GenerateBlockFunction() 1721 const BlockDecl::Capture &CI = *Cap.Cap; in getBlockCaptureStr() 1954 const BlockDecl::Capture &CI = *capture.Cap; in GenerateCopyHelperFunction() [all …]
|
| H A D | CodeGenPGO.cpp | 434 void VisitBlockDecl(const BlockDecl *D) { in VisitBlockDecl() 855 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in mapRegionCounters() 856 Walker.TraverseDecl(const_cast<BlockDecl *>(BD)); in mapRegionCounters() 934 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in computeRegionCounts()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Mangle.cpp | 38 const BlockDecl *BD, in mangleFunctionBlock() 254 void MangleContext::mangleGlobalBlock(const BlockDecl *BD, in mangleGlobalBlock() 272 CXXCtorType CT, const BlockDecl *BD, in mangleCtorBlock() 281 CXXDtorType DT, const BlockDecl *BD, in mangleDtorBlock() 289 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() 298 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock() 300 if (isa<BlockDecl>(DC)) in mangleBlock() 301 for (; DC && isa<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock() 302 (void) getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | NoEscapeCheck.cpp | 33 const BlockDecl *EscapingBlockDecl = MatchedEscapingBlock->getBlockDecl(); in check() 34 for (const BlockDecl::Capture &CapturedVar : EscapingBlockDecl->captures()) { in check()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | AnalysisDeclContext.cpp | 118 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) in getBody() 151 if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getSelfDecl() 320 const LocationContext *ParentLC, const BlockDecl *BD, const void *Data) { in getBlockInvocationContext() 360 } else if (isa<BlockDecl>(D)) { in getFunctionName() 445 const BlockDecl *BD, const void *Data) { in getBlockInvocationContext() 640 static DeclVec* LazyInitializeReferencedDecls(const BlockDecl *BD, in LazyInitializeReferencedDecls() 664 AnalysisDeclContext::getReferencedBlockVars(const BlockDecl *BD) { in getReferencedBlockVars() 666 ReferencedBlockVars = new llvm::DenseMap<const BlockDecl*,void*>(); in getReferencedBlockVars()
|
| H A D | CallGraph.cpp | 141 if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) in addNodesForBlocks()
|
| H A D | CalledOnceCheck.cpp | 633 } else if (const auto *Block = dyn_cast<BlockDecl>(AnalyzedDecl)) { in initDataStructures() 645 void findCapturesToTrack(const BlockDecl *Block) { in findCapturesToTrack() 1056 bool shouldBeCalledOnce(const BlockDecl *Block, unsigned ParamIndex) const { in shouldBeCalledOnce() 1112 if (const BlockDecl *Block = dyn_cast<BlockDecl>(AC.getDecl())) { in isCaptured()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransBlockObjCVariable.cpp | 77 bool VisitBlockDecl(BlockDecl *block) { in VisitBlockDecl() 118 bool TraverseBlockDecl(BlockDecl *block) { in TraverseBlockDecl()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 44 class BlockDecl; variable 222 llvm::SmallPtrSet<const BlockDecl *, 1> Blocks; 475 void addBlock(const BlockDecl *BD) { in addBlock() 755 BlockDecl *TheDecl; 765 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | StackAddrEscapeChecker.cpp | 59 bool isSemaphoreCaptured(const BlockDecl &B) const; 91 const BlockDecl *BD = BR->getCodeRegion()->getDecl(); in genName() 126 bool StackAddrEscapeChecker::isSemaphoreCaptured(const BlockDecl &B) const { in isSemaphoreCaptured()
|
| H A D | ReturnUndefChecker.cpp | 63 if (RT.isNull() && isa<BlockDecl>(SFC->getDecl()) && in checkPreStmt()
|
| H A D | AnalyzerStatsChecker.cpp | 99 } else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | pragma-attribute-objc-subject-match-rules.m | 102 // CHECK-BLOCK-LABEL: BlockDecl 106 // CHECK-HAS_TYPE_FUNCTION_TYPE: BlockDecl
|
| H A D | ast-dump-stmt.m | 17 // CHECK-NEXT: BlockDecl
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 247 } else if (isa<BlockDecl>(Parent)) { in VisitParamVarRegion() 248 if (cast<BlockDecl>(Parent)->isConversionFromLambda()) in VisitParamVarRegion()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | MemRegion.h | 630 const BlockDecl *BD; 634 BlockCodeRegion(const BlockDecl *bd, CanQualType lTy, in BlockCodeRegion() 642 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockDecl *BD, 652 const BlockDecl *getDecl() const { in getDecl() 704 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl() 1504 const BlockCodeRegion *getBlockCodeRegion(const BlockDecl *BD,
|
| H A D | SValBuilder.h | 37 class BlockDecl; variable 231 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | UsedDeclVisitor.h | 97 } else if (auto *CD = dyn_cast<BlockDecl>(D)) { in visitUsedDecl()
|