Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DMangle.h26 class BlockDecl; variable
72 llvm::DenseMap<const BlockDecl*, unsigned> GlobalBlockIds;
73 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()
123 void mangleGlobalBlock(const BlockDecl *BD,
126 const BlockDecl *BD, raw_ostream &Out);
128 const BlockDecl *BD, raw_ostream &Out);
129 void mangleBlock(const DeclContext *DC, const BlockDecl *BD,
[all …]
DGlobalDecl.h43 GlobalDecl(const BlockDecl *D) { Init(D); } in GlobalDecl()
DDecl.h3064 class BlockDecl : public Decl, public DeclContext {
3123 BlockDecl(DeclContext *DC, SourceLocation CaretLoc) in BlockDecl() function
3131 static BlockDecl *Create(ASTContext &C, DeclContext *DC, SourceLocation L);
3132 static BlockDecl *CreateDeserialized(ASTContext &C, unsigned ID);
3202 static bool classof(const BlockDecl *D) { return true; } in classof()
3204 static DeclContext *castToDeclContext(const BlockDecl *D) { in castToDeclContext()
3205 return static_cast<DeclContext *>(const_cast<BlockDecl*>(D)); in castToDeclContext()
3207 static BlockDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
3208 return static_cast<BlockDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
/external/clang/lib/AST/
DMangle.cpp41 const BlockDecl *BD, in mangleFunctionBlock()
46 static void checkMangleDC(const DeclContext *DC, const BlockDecl *BD) { in checkMangleDC()
49 while (isa<BlockDecl>(ExpectedDC) || isa<EnumDecl>(ExpectedDC)) in checkMangleDC()
64 void MangleContext::mangleGlobalBlock(const BlockDecl *BD, in mangleGlobalBlock()
70 CXXCtorType CT, const BlockDecl *BD, in mangleCtorBlock()
81 CXXDtorType DT, const BlockDecl *BD, in mangleDtorBlock()
91 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock()
133 void MangleContext::mangleBlock(const BlockDecl *BD, in mangleBlock()
136 while (isa<BlockDecl>(DC) || isa<EnumDecl>(DC)) in mangleBlock()
DDecl.cpp2760 void BlockDecl::setParams(llvm::ArrayRef<ParmVarDecl *> NewParamInfo) { in setParams()
2771 void BlockDecl::setCaptures(ASTContext &Context, in setCaptures()
2793 bool BlockDecl::capturesVariable(const VarDecl *variable) const { in capturesVariable()
2803 SourceRange BlockDecl::getSourceRange() const { in getSourceRange()
2876 BlockDecl *BlockDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L) { in Create()
2877 return new (C) BlockDecl(DC, L); in Create()
2880 BlockDecl *BlockDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2881 void *Mem = AllocateDeserializedDecl(C, ID, sizeof(BlockDecl)); in CreateDeserialized()
2882 return new (Mem) BlockDecl(0, SourceLocation()); in CreateDeserialized()
DStmtDumper.cpp510 BlockDecl *block = Node->getBlockDecl(); in VisitBlockExpr()
517 for (BlockDecl::capture_iterator in VisitBlockExpr()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp86 else if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) in getBody()
98 if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) { in getSelfDecl()
100 for (BlockDecl::capture_const_iterator it = BD->capture_begin(), in getSelfDecl()
389 static DeclVec* LazyInitializeReferencedDecls(const BlockDecl *BD, in LazyInitializeReferencedDecls()
409 AnalysisDeclContext::getReferencedBlockVars(const BlockDecl *BD) { in getReferencedBlockVars()
411 ReferencedBlockVars = new llvm::DenseMap<const BlockDecl*,void*>(); in getReferencedBlockVars()
DUninitializedValues.cpp434 const BlockDecl *bd = be->getBlockDecl(); in VisitBlockExpr()
435 for (BlockDecl::capture_const_iterator i = bd->capture_begin(), in VisitBlockExpr()
/external/clang/include/clang/Analysis/
DAnalysisContext.h95 llvm::DenseMap<const BlockDecl*,void*> *ReferencedBlockVars;
162 getReferencedBlockVars(const BlockDecl *BD);
323 const BlockDecl *BD;
329 const BlockDecl *bd) in BlockInvocationContext()
335 const BlockDecl *getBlockDecl() const { return BD; } in getBlockDecl()
340 const LocationContext *parent, const BlockDecl *bd) { in Profile()
/external/clang/lib/ARCMigrate/
DTransBlockObjCVariable.cpp78 bool VisitBlockDecl(BlockDecl *block) { in VisitBlockDecl()
81 for (BlockDecl::capture_iterator in VisitBlockDecl()
122 bool TraverseBlockDecl(BlockDecl *block) { in TraverseBlockDecl()
DTransforms.h20 class BlockDecl; variable
DTransZeroOutPropsInDealloc.cpp145 bool TraverseBlockDecl(BlockDecl *block) { return true; } in TraverseBlockDecl()
/external/clang/lib/CodeGen/
DCGBlocks.h191 const BlockDecl *Block;
216 const BlockDecl *getBlockDecl() const { return Block; } in getBlockDecl()
223 CGBlockInfo(const BlockDecl *blockDecl, llvm::StringRef Name);
DCGBlocks.cpp28 CGBlockInfo::CGBlockInfo(const BlockDecl *block, StringRef name) in CGBlockInfo()
168 const BlockDecl::Capture *Capture; // null for 'this'
172 const BlockDecl::Capture *capture, in BlockLayoutChunk()
285 const BlockDecl *block = info.getBlockDecl(); in computeBlockInfo()
307 for (; isa<BlockDecl>(DC); DC = cast<BlockDecl>(DC)->getDeclContext()) in computeBlockInfo()
324 for (BlockDecl::capture_const_iterator ci = block->capture_begin(), in computeBlockInfo()
493 static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) { in enterBlockScope()
519 for (BlockDecl::capture_const_iterator ci = block->capture_begin(), in enterBlockScope()
580 const BlockDecl *block) { in findAndRemoveBlockInfo()
667 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral()
[all …]
DCGDecl.cpp154 if (const BlockDecl *BD = dyn_cast<BlockDecl>(DC)) { in GetStaticDeclName()
921 const BlockDecl *block = be->getBlockDecl(); in isCapturedBy()
922 for (BlockDecl::capture_const_iterator i = block->capture_begin(), in isCapturedBy()
/external/clang/include/clang/Sema/
DScopeInfo.h24 class BlockDecl; variable
298 BlockDecl *TheDecl;
308 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DMemRegion.h539 const BlockDecl *BD;
543 BlockTextRegion(const BlockDecl *bd, CanQualType lTy, in BlockTextRegion()
552 const BlockDecl *getDecl() const { in getDecl()
562 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockDecl *BD,
590 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl()
1170 const BlockTextRegion *getBlockTextRegion(const BlockDecl *BD,
/external/clang/lib/Sema/
DJumpDiagnostics.cpp71 void BuildScopeInformation(VarDecl *D, const BlockDecl *BDecl,
238 const BlockDecl *BDecl, in BuildScopeInformation()
458 const BlockDecl *BDecl = BE->getBlockDecl(); in BuildScopeInformation()
459 for (BlockDecl::capture_const_iterator ci = BDecl->capture_begin(), in BuildScopeInformation()
DSemaLambda.cpp769 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation); in BuildBlockForLambdaConversion()
803 BlockDecl::Capture Capture(/*Variable=*/CapVar, /*ByRef=*/false, in BuildBlockForLambdaConversion()
DSemaDeclAttr.cpp99 return isa<BlockDecl>(D); in isFunctionOrMethodOrBlock()
106 return isa<DeclaratorDecl>(D) || isa<BlockDecl>(D) || isa<TypedefNameDecl>(D) || in hasDeclarator()
117 assert(isa<ObjCMethodDecl>(D) || isa<BlockDecl>(D)); in hasFunctionProto()
128 if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) in getFunctionOrMethodNumArgs()
136 if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) in getFunctionOrMethodArgType()
152 } else if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) in isFunctionOrMethodVariadic()
1337 if (!isFunctionOrMethod(D) && !isa<BlockDecl>(D)) { in handleAnalyzerNoReturnAttr()
1921 } else if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) { in handleSentinelAttr()
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp191 else if (isa<BlockDecl>(D)) { in DisplayFunction()
436 if (BlockDecl *BD = dyn_cast<BlockDecl>(D)) in FindBlocks()
/external/clang/lib/StaticAnalyzer/Core/
DMemRegion.cpp366 const BlockDecl *BD, CanQualType, in ProfileRegion()
694 else if (const BlockDecl *BD = dyn_cast<BlockDecl>(D)) { in getVarRegion()
723 const BlockDecl *BD = BC->getDecl(); in getBlockDataRegion()
792 MemRegionManager::getBlockTextRegion(const BlockDecl *BD, CanQualType locTy, in getBlockTextRegion()
/external/clang/lib/StaticAnalyzer/Checkers/
DAnalyzerStatsChecker.cpp101 else if (isa<BlockDecl>(D)) { in checkEndAnalysis()
DStackAddrEscapeChecker.cpp68 const BlockDecl *BD = BR->getCodeRegion()->getDecl(); in GenName()
/external/clang/tools/libclang/
DCursorVisitor.h189 bool VisitBlockDecl(BlockDecl *B);

123