Home
last modified time | relevance | path

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

1234

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DMangle.h29 class BlockDecl; variable
58 llvm::DenseMap<const BlockDecl*, unsigned> GlobalBlockIds;
59 llvm::DenseMap<const BlockDecl*, unsigned> LocalBlockIds;
78 unsigned getBlockId(const BlockDecl *BD, bool Local) { in getBlockId()
79 llvm::DenseMap<const BlockDecl *, unsigned> &BlockIds in getBlockId()
81 std::pair<llvm::DenseMap<const BlockDecl *, unsigned>::iterator, bool> in getBlockId()
136 void mangleGlobalBlock(const BlockDecl *BD,
140 const BlockDecl *BD, raw_ostream &Out);
142 const BlockDecl *BD, raw_ostream &Out);
143 void mangleBlock(const DeclContext *DC, const BlockDecl *BD,
H A DMangleNumberingContext.h22 class BlockDecl; variable
41 virtual unsigned getManglingNumber(const BlockDecl *BD) = 0;
H A DTextNodeDumper.h187 void Visit(const BlockDecl::Capture &C);
369 void VisitBlockDecl(const BlockDecl *D);
/netbsd-src/external/apache2/llvm/dist/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);
350 const BlockDecl *BD;
356 const LocationContext *ParentLC, const BlockDecl *BD, in BlockInvocationContext()
363 const BlockDecl *getBlockDecl() const { return BD; } in getBlockDecl()
370 const LocationContext *ParentLC, const BlockDecl *BD, in Profile()
413 const BlockDecl *BD, const void *Data);
H A DAnyCall.h74 (K == Block && !isa<BlockDecl>(D)))) in AnyCall()
151 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in parameters()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/
H A DCalledOnceCheck.h20 class BlockDecl; variable
100 handleBlockThatIsGuaranteedToBeCalledOnce(const BlockDecl *Block) {} in handleBlockThatIsGuaranteedToBeCalledOnce()
106 virtual void handleBlockWithNoGuarantees(const BlockDecl *Block) {} in handleBlockWithNoGuarantees()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DMangle.cpp38 const BlockDecl *BD, in mangleFunctionBlock()
250 void MangleContext::mangleGlobalBlock(const BlockDecl *BD, in mangleGlobalBlock()
268 CXXCtorType CT, const BlockDecl *BD, in mangleCtorBlock()
277 CXXDtorType DT, const BlockDecl *BD, in mangleDtorBlock()
285 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock()
294 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
296 if (isa<BlockDecl>(DC)) in mangleBlock()
297 for (; DC && isa<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock()
298 (void) getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
H A DDecl.cpp306 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
1308 if (const auto *BD = dyn_cast<BlockDecl>(OuterD)) { in getLVForLocalDecl()
4681 BlockDecl::BlockDecl(DeclContext *DC, SourceLocation CaretLoc) in BlockDecl() function in BlockDecl
4691 void BlockDecl::setParams(ArrayRef<ParmVarDecl *> NewParamInfo) { in setParams()
4702 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures()
4715 bool BlockDecl::capturesVariable(const VarDecl *variable) const { in capturesVariable()
4724 SourceRange BlockDecl::getSourceRange() const { in getSourceRange()
4867 BlockDecl *BlockDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L) { in Create()
4868 return new (C, DC) BlockDecl(DC, L); in Create()
4871 BlockDecl *BlockDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp118 } 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()
392 const BlockDecl *BD, const void *Data) { in getBlockInvocationContext()
587 static DeclVec* LazyInitializeReferencedDecls(const BlockDecl *BD, in LazyInitializeReferencedDecls()
611 AnalysisDeclContext::getReferencedBlockVars(const BlockDecl *BD) { in getReferencedBlockVars()
613 ReferencedBlockVars = new llvm::DenseMap<const BlockDecl*,void*>(); in getReferencedBlockVars()
H A DCallGraph.cpp141 if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) in addNodesForBlocks()
H A 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGBlocks.h246 const BlockDecl *Block;
276 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl()
283 CGBlockInfo(const BlockDecl *blockDecl, StringRef Name);
H A DCGBlocks.cpp35 CGBlockInfo::CGBlockInfo(const BlockDecl *block, StringRef name) in CGBlockInfo()
85 const BlockDecl::Capture *CI;
92 const BlockDecl::Capture &CI, in BlockCaptureManagedEntity()
344 const BlockDecl::Capture *Capture; // null for 'this'
350 const BlockDecl::Capture *capture, in BlockLayoutChunk()
504 const BlockDecl::Capture &CI) { in getCaptureFieldType()
525 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo()
900 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral()
1082 if (auto *BD = C.dyn_cast<BlockDecl *>()) in EmitBlockLiteral()
1447 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in GenerateBlockFunction()
[all …]
H A DCodeGenPGO.cpp434 void VisitBlockDecl(const BlockDecl *D) { in VisitBlockDecl()
847 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in mapRegionCounters()
848 Walker.TraverseDecl(const_cast<BlockDecl *>(BD)); in mapRegionCounters()
926 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in computeRegionCounts()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DTransBlockObjCVariable.cpp77 bool VisitBlockDecl(BlockDecl *block) { in VisitBlockDecl()
118 bool TraverseBlockDecl(BlockDecl *block) { in TraverseBlockDecl()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DScopeInfo.h44 class BlockDecl; variable
217 llvm::SmallPtrSet<const BlockDecl *, 1> Blocks;
463 void addBlock(const BlockDecl *BD) { in addBlock()
743 BlockDecl *TheDecl;
753 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DStackAddrEscapeChecker.cpp59 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 DReturnUndefChecker.cpp63 if (RT.isNull() && isa<BlockDecl>(SFC->getDecl()) && in checkPreStmt()
H A DAnalyzerStatsChecker.cpp100 else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h243 } else if (isa<BlockDecl>(Parent)) { in VisitParamVarRegion()
244 if (cast<BlockDecl>(Parent)->isConversionFromLambda()) in VisitParamVarRegion()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h621 const BlockDecl *BD;
625 BlockCodeRegion(const BlockDecl *bd, CanQualType lTy, in BlockCodeRegion()
633 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockDecl *BD,
642 const BlockDecl *getDecl() const { in getDecl()
690 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl()
1462 const BlockCodeRegion *getBlockCodeRegion(const BlockDecl *BD,
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp659 else if (isa<BlockDecl>(D)) { in CheckFallThroughForBody()
1652 void addDelayedWarning(const BlockDecl *Block, in addDelayedWarning()
1657 void flushWarnings(const BlockDecl *Block, Sema &S) { in flushWarnings()
1664 void discardWarnings(const BlockDecl *Block) { in discardWarnings()
1670 llvm::DenseMap<const BlockDecl *, DelayedDiagnostics> DelayedBlockWarnings;
1709 if (const auto *Block = dyn_cast<BlockDecl>(Function)) { in handleNeverCalled()
1728 handleBlockThatIsGuaranteedToBeCalledOnce(const BlockDecl *Block) override { in handleBlockThatIsGuaranteedToBeCalledOnce()
1732 void handleBlockWithNoGuarantees(const BlockDecl *Block) override { in handleBlockWithNoGuarantees()
2333 (isa<BlockDecl>(D) in IssueWarnings()
H A DUsedDeclVisitor.h96 } else if (auto *CD = dyn_cast<BlockDecl>(D)) { in visitUsedDecl()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp193 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getDecl()
354 const BlockDecl *BD, CanQualType, in ProfileRegion()
933 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getVarRegion()
999 else if (const auto *BD = dyn_cast<BlockDecl>(STCD)) { in getVarRegion()
1050 const BlockDecl *BD = BC->getDecl(); in getBlockDataRegion()
1124 MemRegionManager::getBlockCodeRegion(const BlockDecl *BD, CanQualType locTy, in getBlockCodeRegion()
H A DCheckerContext.cpp39 if (isa<BlockDecl>(D)) in getDeclDescription()

1234