/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Mangle.h | 30 class BlockDecl; variable 62 llvm::DenseMap<const BlockDecl*, unsigned> GlobalBlockIds; 63 llvm::DenseMap<const BlockDecl*, unsigned> LocalBlockIds; 84 unsigned getBlockId(const BlockDecl *BD, bool Local) { in getBlockId() 85 llvm::DenseMap<const BlockDecl *, unsigned> &BlockIds in getBlockId() 87 std::pair<llvm::DenseMap<const BlockDecl *, unsigned>::iterator, bool> in getBlockId() 148 void mangleGlobalBlock(const BlockDecl *BD, 152 const BlockDecl *BD, raw_ostream &Out); 154 const BlockDecl *BD, raw_ostream &Out); 155 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); 405 void VisitBlockDecl(const BlockDecl *D);
|
H A D | JSONNodeDumper.h | 208 void Visit(const BlockDecl::Capture &C); 282 void VisitBlockDecl(const BlockDecl *D);
|
H A D | ASTNodeTraverser.h | 123 if (!isa<FunctionDecl, ObjCMethodDecl, BlockDecl>(*D)) { 235 void Visit(const BlockDecl::Capture &C) { in Visit() 779 void VisitBlockDecl(const BlockDecl *D) { in VisitBlockDecl()
|
/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() 786 BlockDecl *TheDecl; 796 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
|
/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 | 208 const BlockDecl::Capture *Cap) { in makeIndex() 222 const BlockDecl::Capture *Cap) { in makeConstant() 237 const BlockDecl::Capture *Cap; 277 const BlockDecl *Block; 305 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl() 312 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() 888 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral() 1070 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() 1175 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/AST/ |
H A D | Mangle.cpp | 38 const BlockDecl *BD, in mangleFunctionBlock() 258 void MangleContext::mangleGlobalBlock(const BlockDecl *BD, in mangleGlobalBlock() 276 CXXCtorType CT, const BlockDecl *BD, in mangleCtorBlock() 285 CXXDtorType DT, const BlockDecl *BD, in mangleDtorBlock() 293 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() 302 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock() 304 for (; isa_and_nonnull<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock() 305 (void)getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
|
H A D | Decl.cpp | 307 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext() 1409 if (const auto *BD = dyn_cast<BlockDecl>(OuterD)) { in getLVForLocalDecl() 5211 BlockDecl::BlockDecl(DeclContext *DC, SourceLocation CaretLoc) in BlockDecl() function in BlockDecl 5221 void BlockDecl::setParams(ArrayRef<ParmVarDecl *> NewParamInfo) { in setParams() 5232 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures() 5245 bool BlockDecl::capturesVariable(const VarDecl *variable) const { in capturesVariable() 5254 SourceRange BlockDecl::getSourceRange() const { in getSourceRange() 5408 BlockDecl *BlockDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L) { in Create() 5409 return new (C, DC) BlockDecl(DC, L); in Create() 5412 BlockDecl *BlockDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized() [all …]
|
/freebsd/contrib/llvm-project/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() 319 const LocationContext *ParentLC, const BlockDecl *BD, const void *Data) { in getBlockInvocationContext() 359 } else if (isa<BlockDecl>(D)) { in getFunctionName() 444 const BlockDecl *BD, const void *Data) { in getBlockInvocationContext() 639 static DeclVec* LazyInitializeReferencedDecls(const BlockDecl *BD, in LazyInitializeReferencedDecls() 663 AnalysisDeclContext::getReferencedBlockVars(const BlockDecl *BD) { in getReferencedBlockVars() 665 ReferencedBlockVars = new llvm::DenseMap<const BlockDecl*,void*>(); in getReferencedBlockVars()
|
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() 1057 bool shouldBeCalledOnce(const BlockDecl *Block, unsigned ParamIndex) const { in shouldBeCalledOnce() 1113 if (const BlockDecl *Block = dyn_cast<BlockDecl>(AC.getDecl())) { in isCaptured()
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransBlockObjCVariable.cpp | 77 bool VisitBlockDecl(BlockDecl *block) { in VisitBlockDecl() 118 bool TraverseBlockDecl(BlockDecl *block) { in TraverseBlockDecl()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | AnalyzerStatsChecker.cpp | 100 } else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | MemRegion.h | 634 const BlockDecl *BD; 638 BlockCodeRegion(const BlockDecl *bd, CanQualType lTy, in BlockCodeRegion() 646 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockDecl *BD, 656 const BlockDecl *getDecl() const { in getDecl() 708 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl() 1580 const BlockCodeRegion *getBlockCodeRegion(const BlockDecl *BD,
|
H A D | SValBuilder.h | 37 class BlockDecl; variable 252 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | AnalysisBasedWarnings.cpp | 686 else if (isa<BlockDecl>(D)) { in CheckFallThroughForBody() 1671 void addDelayedWarning(const BlockDecl *Block, in addDelayedWarning() 1676 void flushWarnings(const BlockDecl *Block, Sema &S) { in flushWarnings() 1683 void discardWarnings(const BlockDecl *Block) { in discardWarnings() 1689 llvm::DenseMap<const BlockDecl *, DelayedDiagnostics> DelayedBlockWarnings; 1728 if (const auto *Block = dyn_cast<BlockDecl>(Function)) { in handleNeverCalled() 1747 handleBlockThatIsGuaranteedToBeCalledOnce(const BlockDecl *Block) override { in handleBlockThatIsGuaranteedToBeCalledOnce() 1751 void handleBlockWithNoGuarantees(const BlockDecl *Block) override { in handleBlockWithNoGuarantees() 2485 bool VisitBlockDecl(BlockDecl *Node) { in VisitBlockDecl() 2673 (isa<BlockDecl>(D) in IssueWarnings()
|
H A D | UsedDeclVisitor.h | 114 } else if (auto *CD = dyn_cast<BlockDecl>(D)) { in visitUsedDecl()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | MemRegion.cpp | 206 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getDecl() 367 const BlockDecl *BD, CanQualType, in ProfileRegion() 1015 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getVarRegion() 1070 else if (const auto *BD = dyn_cast<BlockDecl>(STCD)) { in getVarRegion() 1126 const BlockDecl *BD = BC->getDecl(); in getBlockDataRegion() 1197 MemRegionManager::getBlockCodeRegion(const BlockDecl *BD, CanQualType locTy, in getBlockCodeRegion()
|
H A D | CheckerContext.cpp | 44 if (isa<BlockDecl>(D)) in getDeclDescription()
|