| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Attr.h | 41 return isFuncOrMethodForAttrSubject(D) || llvm::isa<BlockDecl>(D); in isFunctionOrMethodOrBlockForAttrSubject() 48 return isa<DeclaratorDecl>(D) || isa<BlockDecl>(D) || in hasDeclarator() 58 return isa<ObjCMethodDecl>(D) || isa<BlockDecl>(D); in hasFunctionProto() 67 if (const auto *BD = dyn_cast<BlockDecl>(D)) in getFunctionOrMethodNumParams() 78 if (const auto *BD = dyn_cast<BlockDecl>(D)) in getFunctionOrMethodParam() 86 if (const auto *BD = dyn_cast<BlockDecl>(D)) in getFunctionOrMethodParamType() 115 if (const auto *BD = dyn_cast<BlockDecl>(D)) in isFunctionOrMethodVariadic()
|
| H A D | ScopeInfo.h | 44 class BlockDecl; variable 231 llvm::SmallPtrSet<const BlockDecl *, 1> Blocks; 493 void addBlock(const BlockDecl *BD) { in addBlock() 792 BlockDecl *TheDecl; 802 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Mangle.h | 30 class BlockDecl; variable 66 llvm::DenseMap<const BlockDecl *, unsigned> GlobalBlockIds; 67 llvm::DenseMap<const BlockDecl *, unsigned> LocalBlockIds; 88 unsigned getBlockId(const BlockDecl *BD, bool Local) { in getBlockId() 89 llvm::DenseMap<const BlockDecl *, unsigned> &BlockIds = in getBlockId() 91 std::pair<llvm::DenseMap<const BlockDecl *, unsigned>::iterator, bool> in getBlockId() 152 void mangleGlobalBlock(const BlockDecl *BD, const NamedDecl *ID, 155 const BlockDecl *BD, raw_ostream &Out); 157 const BlockDecl *BD, raw_ostream &Out); 158 void mangleBlock(const DeclContext *DC, const BlockDecl *BD,
|
| H A D | MangleNumberingContext.h | 22 class BlockDecl; variable 42 virtual unsigned getManglingNumber(const BlockDecl *BD) = 0;
|
| H A D | TextNodeDumper.h | 194 void Visit(const BlockDecl::Capture &C); 406 void VisitBlockDecl(const BlockDecl *D);
|
| H A D | JSONNodeDumper.h | 208 void Visit(const BlockDecl::Capture &C); 282 void VisitBlockDecl(const BlockDecl *D);
|
| /freebsd/contrib/llvm-project/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 | 75 (K == Block && !isa<BlockDecl>(D)))) in AnyCall() 152 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in parameters()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBlocks.h | 209 const BlockDecl::Capture *Cap) { in makeIndex() 223 const BlockDecl::Capture *Cap) { in makeConstant() 238 const BlockDecl::Capture *Cap; 278 const BlockDecl *Block; 306 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl() 313 CGBlockInfo(const BlockDecl *blockDecl, StringRef Name);
|
| H A D | CGBlocks.cpp | 35 CGBlockInfo::CGBlockInfo(const BlockDecl *block, StringRef name) in CGBlockInfo() 312 const BlockDecl::Capture *Capture; // null for 'this' 319 const BlockDecl::Capture *capture, llvm::Type *type, in BlockLayoutChunk() 382 computeCopyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, 386 computeDestroyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, 390 const BlockDecl::Capture *capture, llvm::Type *type, in addBlockLayout() 536 const BlockDecl::Capture &CI) { in getCaptureFieldType() 557 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo() 917 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral() 1099 if (auto *BD = C.dyn_cast<BlockDecl *>()) in EmitBlockLiteral() [all …]
|
| H A D | CodeGenPGO.cpp | 651 void VisitBlockDecl(const BlockDecl *D) { in VisitBlockDecl() 1095 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in mapRegionCounters() 1096 Walker.TraverseDecl(const_cast<BlockDecl *>(BD)); in mapRegionCounters() 1173 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in computeRegionCounts()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | AnalysisDeclContext.cpp | 116 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) in getBody() 149 if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getSelfDecl() 317 const LocationContext *ParentLC, const BlockDecl *BD, const void *Data) { in getBlockInvocationContext() 357 } else if (isa<BlockDecl>(D)) { in getFunctionName() 442 const BlockDecl *BD, const void *Data) { in getBlockInvocationContext() 637 static DeclVec* LazyInitializeReferencedDecls(const BlockDecl *BD, in LazyInitializeReferencedDecls() 661 AnalysisDeclContext::getReferencedBlockVars(const BlockDecl *BD) { in getReferencedBlockVars() 663 ReferencedBlockVars = new llvm::DenseMap<const BlockDecl*,void*>(); in getReferencedBlockVars()
|
| H A D | CallGraph.cpp | 140 if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) in addNodesForBlocks()
|
| H A D | CalledOnceCheck.cpp | 631 } else if (const auto *Block = dyn_cast<BlockDecl>(AnalyzedDecl)) { in initDataStructures() 643 void findCapturesToTrack(const BlockDecl *Block) { in findCapturesToTrack() 1055 bool shouldBeCalledOnce(const BlockDecl *Block, unsigned ParamIndex) const { in shouldBeCalledOnce() 1111 if (const BlockDecl *Block = dyn_cast<BlockDecl>(AC.getDecl())) { in isCaptured()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Mangle.cpp | 54 const BlockDecl *BD, in mangleFunctionBlock() 275 void MangleContext::mangleGlobalBlock(const BlockDecl *BD, in mangleGlobalBlock() 293 CXXCtorType CT, const BlockDecl *BD, in mangleCtorBlock() 302 CXXDtorType DT, const BlockDecl *BD, in mangleDtorBlock() 310 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() 319 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock() 321 for (; isa_and_nonnull<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock() 322 (void)getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 277 } else if (isa<BlockDecl>(Parent)) { in VisitParamVarRegion() 278 if (cast<BlockDecl>(Parent)->isConversionFromLambda()) in VisitParamVarRegion()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | StackAddrEscapeChecker.cpp | 58 bool isSemaphoreCaptured(const BlockDecl &B) const; 90 const BlockDecl *BD = BR->getCodeRegion()->getDecl(); in genName() 125 bool StackAddrEscapeChecker::isSemaphoreCaptured(const BlockDecl &B) const { in isSemaphoreCaptured()
|
| H A D | AnalyzerStatsChecker.cpp | 96 } else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | MemRegion.h | 662 const BlockDecl *BD; 666 BlockCodeRegion(const BlockDecl *bd, CanQualType lTy, in BlockCodeRegion() 674 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockDecl *BD, 684 const BlockDecl *getDecl() const { in getDecl() 736 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl() 1608 const BlockCodeRegion *getBlockCodeRegion(const BlockDecl *BD,
|
| H A D | SValBuilder.h | 38 class BlockDecl; variable 239 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | UsedDeclVisitor.h | 114 } else if (auto *CD = dyn_cast<BlockDecl>(D)) { in visitUsedDecl()
|
| H A D | AnalysisBasedWarnings.cpp | 808 else if (isa<BlockDecl>(D)) { in CheckFallThroughForBody() 1794 void addDelayedWarning(const BlockDecl *Block, in addDelayedWarning() 1799 void flushWarnings(const BlockDecl *Block, Sema &S) { in flushWarnings() 1806 void discardWarnings(const BlockDecl *Block) { in discardWarnings() 1812 llvm::DenseMap<const BlockDecl *, DelayedDiagnostics> DelayedBlockWarnings; 1851 if (const auto *Block = dyn_cast<BlockDecl>(Function)) { in handleNeverCalled() 1870 handleBlockThatIsGuaranteedToBeCalledOnce(const BlockDecl *Block) override { in handleBlockThatIsGuaranteedToBeCalledOnce() 1874 void handleBlockWithNoGuarantees(const BlockDecl *Block) override { in handleBlockWithNoGuarantees() 2767 bool VisitBlockDecl(BlockDecl *Node) override { in VisitBlockDecl() 2961 (isa<BlockDecl>(D) ? CheckFallThroughDiagnostics::MakeForBlock() in IssueWarnings()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 44 if (isa<BlockDecl>(D)) in getDeclDescription()
|
| H A D | MemRegion.cpp | 215 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getDecl() 376 const BlockDecl *BD, CanQualType, in ProfileRegion() 1054 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getVarRegion() 1117 else if (const auto *BD = dyn_cast<BlockDecl>(STCD)) { in getVarRegion() 1173 const BlockDecl *BD = BC->getDecl(); in getBlockDataRegion() 1244 MemRegionManager::getBlockCodeRegion(const BlockDecl *BD, CanQualType locTy, in getBlockCodeRegion()
|