Home
last modified time | relevance | path

Searched refs:LabelDecl (Results 1 – 25 of 34) sorted by relevance

12

/external/clang/lib/Sema/
DJumpDiagnostics.cpp70 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
83 LabelDecl *Target, unsigned TargetScope);
501 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
582 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
583 for (SmallVectorImpl<LabelDecl*>::iterator in VerifyIndirectJumps()
586 LabelDecl *TheLabel = *I; in VerifyIndirectJumps()
590 LabelDecl *&Target = TargetScopes[LabelScope]; in VerifyIndirectJumps()
603 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator in VerifyIndirectJumps()
606 LabelDecl *TargetLabel = TI->second; in VerifyIndirectJumps()
683 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectJumpStmt()
[all …]
DSemaLookup.cpp3235 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
3242 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3245 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
3256 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3261 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
DSemaTemplateInstantiateDecl.cpp216 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
217 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
4439 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
4445 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
DSemaDecl.cpp1180 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) { in PushOnScopeChains()
1393 if (isa<LabelDecl>(D)) in ShouldDiagnoseUnusedDecl()
1450 if (isa<LabelDecl>(D)) { in GenerateFixForUnusedDecl()
1473 else if (isa<LabelDecl>(D)) in DiagnoseUnusedDecl()
1481 static void CheckPoppedLabel(LabelDecl *L, Sema &S) { in CheckPoppedLabel()
1509 if (LabelDecl *LD = dyn_cast<LabelDecl>(D)) in ActOnPopScope()
DTreeTransform.h1097 StmtResult RebuildLabelStmt(SourceLocation IdentLoc, LabelDecl *L, in RebuildLabelStmt()
1178 LabelDecl *Label) { in RebuildGotoStmt()
1981 SourceLocation LabelLoc, LabelDecl *Label) { in RebuildAddrLabelExpr()
5489 cast<LabelDecl>(LD), SourceLocation(), in TransformLabelStmt()
5754 cast<LabelDecl>(LD)); in TransformGotoStmt()
7513 cast<LabelDecl>(LD)); in TransformAddrLabelExpr()
/external/clang/include/clang/AST/
DStmt.h40 class LabelDecl; variable
782 LabelDecl *TheDecl;
786 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
794 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
795 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
1207 LabelDecl *Label;
1211 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
1217 LabelDecl *getLabel() const { return Label; } in getLabel()
1218 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
1263 LabelDecl *getConstantTarget();
[all …]
DDecl.h305 class LabelDecl : public NamedDecl {
313 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
318 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
320 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
323 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
DExpr.h3353 LabelDecl *Label;
3355 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
3373 LabelDecl *getLabel() const { return Label; } in getLabel()
3374 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSVals.h472 explicit GotoLabel(LabelDecl *Label) : Loc(GotoLabelKind, Label) {} in GotoLabel()
474 const LabelDecl *getLabel() const { in getLabel()
475 return static_cast<const LabelDecl*>(Data); in getLabel()
DCoreEngine.h471 const LabelDecl *getLabel() const { in getLabel()
/external/clang/lib/Frontend/
DASTConsumers.cpp405 LabelDecl *LD = cast<LabelDecl>(I); in PrintDeclContext()
/external/clang/lib/AST/
DDecl.cpp3641 void LabelDecl::anchor() { } in anchor()
3643 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3645 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
3648 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3652 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
3655 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3656 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
DDeclPrinter.cpp59 void VisitLabelDecl(LabelDecl *D);
646 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
DASTDumper.cpp237 void VisitLabelDecl(const LabelDecl *D);
844 void ASTDumper::VisitLabelDecl(const LabelDecl *D) { in VisitLabelDecl()
/external/clang/lib/CodeGen/
DCodeGenFunction.h56 class LabelDecl; variable
512 SmallVector<const LabelDecl*, 4> Labels;
527 void addLabel(const LabelDecl *label) { in addLabel()
824 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
1309 JumpDest getJumpDestForLabel(const LabelDecl *S);
1518 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
1856 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
DCGStmt.cpp355 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
366 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
401 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
454 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
DCodeGenFunction.cpp1266 llvm::BlockAddress *CodeGenFunction::GetAddrOfLabel(const LabelDecl *L) { in GetAddrOfLabel()
/external/clang/unittests/AST/
DSourceLocationTest.cpp68 TEST(LabelDecl, Range) { in TEST() argument
/external/clang/include/clang/Sema/
DScopeInfo.h37 class LabelDecl; variable
/external/clang/lib/Parse/
DParseStmt.cpp582 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
1741 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp164 LabelDecl *LD = ReadDeclAs<LabelDecl>(Record, Idx); in VisitLabelStmt()
251 S->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitGotoStmt()
819 E->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitAddrLabelExpr()
DASTWriterDecl.cpp54 void VisitLabelDecl(LabelDecl *LD);
882 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
DASTReaderDecl.cpp231 void VisitLabelDecl(LabelDecl *LD);
1124 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
2640 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
/external/clang/lib/Analysis/
DCFG.cpp308 typedef llvm::DenseMap<LabelDecl*, JumpTarget> LabelMapTy;
317 typedef llvm::SmallPtrSet<LabelDecl*, 5> LabelSetTy;
1905 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/external/clang/tools/libclang/
DCIndex.cpp1736 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent) in LabelRefVisit()
1743 const LabelDecl *get() const { in get()
1744 return static_cast<const LabelDecl *>(data[0]); in get()
2378 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get(); in RunVisitorWorkList()
4624 if (LabelDecl *label = Goto->getLabel()) in clang_getCursorReferenced()

12