Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/tools/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()
119 void mangleGlobalBlock(const BlockDecl *BD,
123 const BlockDecl *BD, raw_ostream &Out);
125 const BlockDecl *BD, raw_ostream &Out);
126 void mangleBlock(const DeclContext *DC, const BlockDecl *BD,
H A DMangleNumberingContext.h23 class BlockDecl; variable
42 virtual unsigned getManglingNumber(const BlockDecl *BD) = 0;
H A DGlobalDecl.h53 GlobalDecl(const BlockDecl *D) { Init(D); } in GlobalDecl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DMangle.cpp35 const BlockDecl *BD, in mangleFunctionBlock()
188 void MangleContext::mangleGlobalBlock(const BlockDecl *BD, in mangleGlobalBlock()
206 CXXCtorType CT, const BlockDecl *BD, in mangleCtorBlock()
215 CXXDtorType DT, const BlockDecl *BD, in mangleDtorBlock()
223 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock()
232 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
234 if (isa<BlockDecl>(DC)) in mangleBlock()
235 for (; DC && isa<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock()
236 (void) getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
H A DDecl.cpp306 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
1253 if (const auto *BD = dyn_cast<BlockDecl>(OuterD)) { in getLVForLocalDecl()
4256 BlockDecl::BlockDecl(DeclContext *DC, SourceLocation CaretLoc) in BlockDecl() function in BlockDecl
4265 void BlockDecl::setParams(ArrayRef<ParmVarDecl *> NewParamInfo) { in setParams()
4276 void BlockDecl::setCaptures(ASTContext &Context, ArrayRef<Capture> Captures, in setCaptures()
4289 bool BlockDecl::capturesVariable(const VarDecl *variable) const { in capturesVariable()
4298 SourceRange BlockDecl::getSourceRange() const { in getSourceRange()
4442 BlockDecl *BlockDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L) { in Create()
4443 return new (C, DC) BlockDecl(DC, L); in Create()
4446 BlockDecl *BlockDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
[all …]
H A DItaniumMangle.cpp57 if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) { in getEffectiveDeclContext()
84 return isa<FunctionDecl>(DC) || isa<ObjCMethodDecl>(DC) || isa<BlockDecl>(DC); in isLocalContainerContext()
487 void mangleBlockForPrefix(const BlockDecl *Block);
488 void mangleUnqualifiedBlock(const BlockDecl *Block);
1547 assert(isa<NamedDecl>(D) || isa<BlockDecl>(D)); in mangleLocalName()
1558 else if (const BlockDecl *BD = dyn_cast<BlockDecl>(DC)) in mangleLocalName()
1598 } else if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) { in mangleLocalName()
1607 } else if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) { in mangleLocalName()
1639 void CXXNameMangler::mangleBlockForPrefix(const BlockDecl *Block) { in mangleBlockForPrefix()
1653 void CXXNameMangler::mangleUnqualifiedBlock(const BlockDecl *Block) { in mangleUnqualifiedBlock()
H A DItaniumCXXABI.cpp127 unsigned getManglingNumber(const BlockDecl *BD) override { in getManglingNumber()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/
H A DAnalysisDeclContext.h35 class BlockDecl; variable
90 llvm::DenseMap<const BlockDecl *,void *> *ReferencedBlockVars = nullptr;
180 getReferencedBlockVars(const BlockDecl *BD);
193 const BlockDecl *BD,
365 const BlockDecl *BD;
371 const LocationContext *parent, const BlockDecl *bd, in BlockInvocationContext()
379 const BlockDecl *getBlockDecl() const { return BD; } in getBlockDecl()
386 const LocationContext *parent, const BlockDecl *bd, in Profile()
418 const BlockDecl *BD,
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp117 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) in getBody()
150 if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getSelfDecl()
318 const BlockDecl *BD, in getBlockInvocationContext()
421 const BlockDecl *BD, in getBlockInvocationContext()
574 static DeclVec* LazyInitializeReferencedDecls(const BlockDecl *BD, in LazyInitializeReferencedDecls()
598 AnalysisDeclContext::getReferencedBlockVars(const BlockDecl *BD) { in getReferencedBlockVars()
600 ReferencedBlockVars = new llvm::DenseMap<const BlockDecl*,void*>(); in getReferencedBlockVars()
H A DCallGraph.cpp111 if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) in addNodesForBlocks()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGBlocks.h247 const BlockDecl *Block;
281 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl()
288 CGBlockInfo(const BlockDecl *blockDecl, StringRef Name);
H A DCGBlocks.cpp36 CGBlockInfo::CGBlockInfo(const BlockDecl *block, StringRef name) in CGBlockInfo()
86 const BlockDecl::Capture *CI;
93 const BlockDecl::Capture &CI, in BlockCaptureManagedEntity()
343 const BlockDecl::Capture *Capture; // null for 'this'
349 const BlockDecl::Capture *capture, in BlockLayoutChunk()
524 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo()
1032 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral()
1529 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in GenerateBlockFunction()
1825 const BlockDecl::Capture &CI = *E.CI; in getBlockCaptureStr()
2059 const BlockDecl::Capture &CI = *CopiedCapture.CI; in GenerateCopyHelperFunction()
[all …]
H A DCodeGenPGO.cpp416 void VisitBlockDecl(const BlockDecl *D) { in VisitBlockDecl()
810 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in mapRegionCounters()
811 Walker.TraverseDecl(const_cast<BlockDecl *>(BD)); in mapRegionCounters()
877 else if (const BlockDecl *BD = dyn_cast_or_null<BlockDecl>(D)) in computeRegionCounts()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransBlockObjCVariable.cpp78 bool VisitBlockDecl(BlockDecl *block) { in VisitBlockDecl()
119 bool TraverseBlockDecl(BlockDecl *block) { in TraverseBlockDecl()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DScopeInfo.h43 class BlockDecl; variable
207 llvm::SmallPtrSet<const BlockDecl *, 1> Blocks;
437 void addBlock(const BlockDecl *BD) { in addBlock()
713 BlockDecl *TheDecl;
723 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
/freebsd-12.1/contrib/llvm/tools/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.cpp64 if (RT.isNull() && isa<BlockDecl>(SFC->getDecl()) && in checkPreStmt()
H A DAnalyzerStatsChecker.cpp101 else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h631 const BlockDecl *BD;
635 BlockCodeRegion(const BlockDecl *bd, CanQualType lTy, in BlockCodeRegion()
643 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockDecl *BD,
652 const BlockDecl *getDecl() const { in getDecl()
700 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl()
1389 const BlockCodeRegion *getBlockCodeRegion(const BlockDecl *BD,
H A DSValBuilder.h37 class BlockDecl; variable
241 DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp240 else if (const auto *BD = dyn_cast<BlockDecl>(D)) in getParameterLocation()
454 if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getDeclaredResultType()
484 if (const auto *BD = dyn_cast<BlockDecl>(D)) in isVariadic()
838 const BlockDecl *D = getDecl(); in parameters()
867 Params = cast<BlockDecl>(CalleeCtx->getDecl())->parameters(); in getInitialStackFrameContents()
H A DCheckerContext.cpp40 if (isa<BlockDecl>(D)) in getDeclDescription()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.h71 clang::BlockDecl *ResolveBlockDIE(const DWARFDIE &die);
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h68 clang::BlockDecl *GetOrCreateBlockDecl(PdbCompilandSymId block_id);
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DJumpDiagnostics.cpp75 void BuildScopeInformation(VarDecl *D, const BlockDecl *BDecl,
238 const BlockDecl *BDecl, in BuildScopeInformation()
518 const BlockDecl *BDecl = EWC->getObject(i); in BuildScopeInformation()

1234