Home
last modified time | relevance | path

Searched refs:BlockDecl (Results 1 – 25 of 107) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DAttr.h41 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 DScopeInfo.h44 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 DMangle.h30 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 DMangleNumberingContext.h22 class BlockDecl; variable
42 virtual unsigned getManglingNumber(const BlockDecl *BD) = 0;
H A DTextNodeDumper.h194 void Visit(const BlockDecl::Capture &C);
406 void VisitBlockDecl(const BlockDecl *D);
H A DJSONNodeDumper.h208 void Visit(const BlockDecl::Capture &C);
282 void VisitBlockDecl(const BlockDecl *D);
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DAnalysisDeclContext.h37 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 DAnyCall.h75 (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 DCGBlocks.h209 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 DCGBlocks.cpp35 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 DCodeGenPGO.cpp651 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 DCalledOnceCheck.h20 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 DAnalysisDeclContext.cpp116 } 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 DCallGraph.cpp140 if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) in addNodesForBlocks()
H A DCalledOnceCheck.cpp631 } 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 DMangle.cpp54 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 DSValExplainer.h277 } 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 DStackAddrEscapeChecker.cpp58 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 DAnalyzerStatsChecker.cpp96 } else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h662 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 DSValBuilder.h38 class BlockDecl; variable
239 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DUsedDeclVisitor.h114 } else if (auto *CD = dyn_cast<BlockDecl>(D)) { in visitUsedDecl()
H A DAnalysisBasedWarnings.cpp808 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 DCheckerContext.cpp44 if (isa<BlockDecl>(D)) in getDeclDescription()
H A DMemRegion.cpp215 } 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()

12345