Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A 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()
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 DMangleNumberingContext.h22 class BlockDecl; variable
42 virtual unsigned getManglingNumber(const BlockDecl *BD) = 0;
H A DTextNodeDumper.h194 void Visit(const BlockDecl::Capture &C);
405 void VisitBlockDecl(const BlockDecl *D);
H A DJSONNodeDumper.h208 void Visit(const BlockDecl::Capture &C);
282 void VisitBlockDecl(const BlockDecl *D);
H A DASTNodeTraverser.h123 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 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()
786 BlockDecl *TheDecl;
796 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
/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.h208 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 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()
888 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral()
1070 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()
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 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/AST/
H A DMangle.cpp38 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 DDecl.cpp307 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 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()
H A DCalledOnceCheck.cpp633 } 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 DTransBlockObjCVariable.cpp77 bool VisitBlockDecl(BlockDecl *block) { in VisitBlockDecl()
118 bool TraverseBlockDecl(BlockDecl *block) { in TraverseBlockDecl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DAnalyzerStatsChecker.cpp100 } else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h634 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 DSValBuilder.h37 class BlockDecl; variable
252 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp686 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 DUsedDeclVisitor.h114 } else if (auto *CD = dyn_cast<BlockDecl>(D)) { in visitUsedDecl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp206 } 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 DCheckerContext.cpp44 if (isa<BlockDecl>(D)) in getDeclDescription()

1234