Home
last modified time | relevance | path

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

12345

/openbsd/src/gnu/llvm/clang/include/clang/AST/
DMangle.h30 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()
147 void mangleGlobalBlock(const BlockDecl *BD,
151 const BlockDecl *BD, raw_ostream &Out);
153 const BlockDecl *BD, raw_ostream &Out);
154 void mangleBlock(const DeclContext *DC, const BlockDecl *BD,
DMangleNumberingContext.h22 class BlockDecl; variable
39 virtual unsigned getManglingNumber(const BlockDecl *BD) = 0;
DTextNodeDumper.h188 void Visit(const BlockDecl::Capture &C);
382 void VisitBlockDecl(const BlockDecl *D);
/openbsd/src/gnu/llvm/clang/include/clang/Analysis/
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);
DAnyCall.h75 (K == Block && !isa<BlockDecl>(D)))) in AnyCall()
152 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in parameters()
/openbsd/src/gnu/llvm/clang/include/clang/Analysis/Analyses/
DCalledOnceCheck.h20 class BlockDecl; variable
99 handleBlockThatIsGuaranteedToBeCalledOnce(const BlockDecl *Block) {} in handleBlockThatIsGuaranteedToBeCalledOnce()
105 virtual void handleBlockWithNoGuarantees(const BlockDecl *Block) {} in handleBlockWithNoGuarantees()
/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DCGBlocks.h208 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);
DCGBlocks.cpp35 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'
335 const BlockDecl::Capture *capture, llvm::Type *type, in BlockLayoutChunk()
398 computeCopyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T,
402 computeDestroyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T,
406 const BlockDecl::Capture *capture, llvm::Type *type, in addBlockLayout()
552 const BlockDecl::Capture &CI) { in getCaptureFieldType()
573 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo()
[all …]
DCodeGenPGO.cpp435 void VisitBlockDecl(const BlockDecl *D) { in VisitBlockDecl()
858 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in mapRegionCounters()
859 Walker.TraverseDecl(const_cast<BlockDecl *>(BD)); in mapRegionCounters()
937 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in computeRegionCounts()
/openbsd/src/gnu/llvm/clang/lib/AST/
DMangle.cpp38 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()
/openbsd/src/gnu/llvm/clang/lib/Analysis/
DAnalysisDeclContext.cpp118 } 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()
DCallGraph.cpp141 if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) in addNodesForBlocks()
DCalledOnceCheck.cpp633 } 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()
/openbsd/src/gnu/llvm/clang/lib/ARCMigrate/
DTransBlockObjCVariable.cpp77 bool VisitBlockDecl(BlockDecl *block) { in VisitBlockDecl()
118 bool TraverseBlockDecl(BlockDecl *block) { in TraverseBlockDecl()
/openbsd/src/gnu/llvm/clang/include/clang/Sema/
DScopeInfo.h44 class BlockDecl; variable
222 llvm::SmallPtrSet<const BlockDecl *, 1> Blocks;
478 void addBlock(const BlockDecl *BD) { in addBlock()
757 BlockDecl *TheDecl;
767 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
DStackAddrEscapeChecker.cpp59 bool isSemaphoreCaptured(const BlockDecl &B) const;
90 const BlockDecl *BD = BR->getCodeRegion()->getDecl(); in genName()
118 bool StackAddrEscapeChecker::isSemaphoreCaptured(const BlockDecl &B) const { in isSemaphoreCaptured()
DReturnUndefChecker.cpp63 if (RT.isNull() && isa<BlockDecl>(SFC->getDecl()) && in checkPreStmt()
DAnalyzerStatsChecker.cpp100 } else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
/openbsd/src/gnu/llvm/clang/include/clang/StaticAnalyzer/Checkers/
DSValExplainer.h266 } else if (isa<BlockDecl>(Parent)) { in VisitParamVarRegion()
267 if (cast<BlockDecl>(Parent)->isConversionFromLambda()) in VisitParamVarRegion()
/openbsd/src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DMemRegion.h630 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()
1516 const BlockCodeRegion *getBlockCodeRegion(const BlockDecl *BD,
DSValBuilder.h37 class BlockDecl; variable
231 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
/openbsd/src/gnu/llvm/clang/lib/Sema/
DAnalysisBasedWarnings.cpp662 else if (isa<BlockDecl>(D)) { in CheckFallThroughForBody()
1647 void addDelayedWarning(const BlockDecl *Block, in addDelayedWarning()
1652 void flushWarnings(const BlockDecl *Block, Sema &S) { in flushWarnings()
1659 void discardWarnings(const BlockDecl *Block) { in discardWarnings()
1665 llvm::DenseMap<const BlockDecl *, DelayedDiagnostics> DelayedBlockWarnings;
1704 if (const auto *Block = dyn_cast<BlockDecl>(Function)) { in handleNeverCalled()
1723 handleBlockThatIsGuaranteedToBeCalledOnce(const BlockDecl *Block) override { in handleBlockThatIsGuaranteedToBeCalledOnce()
1727 void handleBlockWithNoGuarantees(const BlockDecl *Block) override { in handleBlockWithNoGuarantees()
2391 (isa<BlockDecl>(D) in IssueWarnings()
DUsedDeclVisitor.h114 } else if (auto *CD = dyn_cast<BlockDecl>(D)) { in visitUsedDecl()
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp43 if (isa<BlockDecl>(D)) in getDeclDescription()
DMemRegion.cpp196 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getDecl()
357 const BlockDecl *BD, CanQualType, in ProfileRegion()
977 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getVarRegion()
1032 else if (const auto *BD = dyn_cast<BlockDecl>(STCD)) { in getVarRegion()
1085 const BlockDecl *BD = BC->getDecl(); in getBlockDataRegion()
1163 MemRegionManager::getBlockCodeRegion(const BlockDecl *BD, CanQualType locTy, in getBlockCodeRegion()

12345