Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DJumpDiagnostics.cpp70 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
83 LabelDecl *Target, unsigned TargetScope);
595 LabelDecl *Target = IGS->getConstantTarget(); in VerifyJumps()
676 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes; in VerifyIndirectJumps()
677 for (SmallVectorImpl<LabelDecl*>::iterator in VerifyIndirectJumps()
680 LabelDecl *TheLabel = *I; in VerifyIndirectJumps()
684 LabelDecl *&Target = TargetScopes[LabelScope]; in VerifyIndirectJumps()
697 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator in VerifyIndirectJumps()
700 LabelDecl *TargetLabel = TI->second; in VerifyIndirectJumps()
777 LabelDecl *Target, bool &Diagnosed) { in DiagnoseIndirectJumpStmt()
[all …]
DSemaStmtAsm.cpp741 LabelDecl *Sema::GetOrCreateMSAsmLabel(StringRef ExternalLabelName, in GetOrCreateMSAsmLabel()
744 LabelDecl* Label = LookupOrCreateLabel(PP.getIdentifierInfo(ExternalLabelName), in GetOrCreateMSAsmLabel()
DSemaLookup.cpp3721 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
3728 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3731 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
3742 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3747 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
DSemaTemplateInstantiateDecl.cpp443 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
444 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
4694 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
4700 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
/external/clang/include/clang/AST/
DStmt.h41 class LabelDecl; variable
791 LabelDecl *TheDecl;
795 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
806 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
807 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
1225 LabelDecl *Label;
1229 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
1235 LabelDecl *getLabel() const { return Label; } in getLabel()
1236 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
1283 LabelDecl *getConstantTarget();
[all …]
DDecl.h424 class LabelDecl : public NamedDecl {
434 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
442 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
444 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
447 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
DExpr.h3341 LabelDecl *Label;
3343 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
3361 LabelDecl *getLabel() const { return Label; } in getLabel()
3362 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSVals.h477 explicit GotoLabel(LabelDecl *Label) : Loc(GotoLabelKind, Label) {} in GotoLabel()
479 const LabelDecl *getLabel() const { in getLabel()
480 return static_cast<const LabelDecl*>(Data); in getLabel()
DCoreEngine.h469 const LabelDecl *getLabel() const { in getLabel()
/external/clang/lib/Frontend/
DASTConsumers.cpp412 LabelDecl *LD = cast<LabelDecl>(I); in PrintDeclContext()
/external/clang/lib/AST/
DDecl.cpp3977 void LabelDecl::anchor() { } in anchor()
3979 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3981 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL); in Create()
3984 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3988 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL); in Create()
3991 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3992 return new (C, ID) LabelDecl(nullptr, SourceLocation(), nullptr, nullptr, in CreateDeserialized()
3996 void LabelDecl::setMSAsmLabel(StringRef Name) { in setMSAsmLabel()
DASTImporter.cpp144 Decl *VisitLabelDecl(LabelDecl *D);
2605 Decl *ASTNodeImporter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
2618 LabelDecl *ToLabel = D->isGnuLocal() in VisitLabelDecl()
2619 ? LabelDecl::Create(Importer.getToContext(), in VisitLabelDecl()
2623 : LabelDecl::Create(Importer.getToContext(), in VisitLabelDecl()
4947 LabelDecl *ToLabelDecl = in VisitLabelStmt()
4948 cast_or_null<LabelDecl>(Importer.Import(S->getDecl())); in VisitLabelStmt()
5114 LabelDecl *ToLabel = nullptr; in VisitGotoStmt()
5115 if (LabelDecl *FromLabel = S->getLabel()) { in VisitGotoStmt()
5116 ToLabel = dyn_cast_or_null<LabelDecl>(Importer.Import(FromLabel)); in VisitGotoStmt()
[all …]
DDeclPrinter.cpp68 void VisitLabelDecl(LabelDecl *D);
712 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
DASTDumper.cpp422 void VisitLabelDecl(const LabelDecl *D);
1070 void ASTDumper::VisitLabelDecl(const LabelDecl *D) { in VisitLabelDecl()
DStmt.cpp891 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
/external/clang/lib/CodeGen/
DCodeGenFunction.h59 class LabelDecl; variable
536 SmallVector<const LabelDecl*, 4> Labels;
551 void addLabel(const LabelDecl *label) { in addLabel()
955 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
1600 JumpDest getJumpDestForLabel(const LabelDecl *S);
1851 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
2264 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
DCGStmt.cpp452 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
463 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
497 for (SmallVectorImpl<const LabelDecl*>::const_iterator in rescopeLabels()
550 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
/external/clang/unittests/AST/
DSourceLocationTest.cpp68 TEST(LabelDecl, Range) { in TEST() argument
/external/clang/include/clang/Sema/
DScopeInfo.h39 class LabelDecl; variable
/external/clang/lib/Parse/
DParseStmt.cpp616 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
1821 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
DParseStmtAsm.cpp101 LabelDecl *Label = in LookupInlineAsmLabel()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp165 LabelDecl *LD = ReadDeclAs<LabelDecl>(Record, Idx); in VisitLabelStmt()
255 S->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitGotoStmt()
865 E->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitAddrLabelExpr()
DASTWriterDecl.cpp62 void VisitLabelDecl(LabelDecl *LD);
1067 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/external/clang/lib/Analysis/
DCFG.cpp385 typedef llvm::DenseMap<LabelDecl*, JumpTarget> LabelMapTy;
394 typedef llvm::SmallPtrSet<LabelDecl*, 5> LabelSetTy;
2039 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/external/clang/tools/libclang/
DCIndex.cpp1813 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent) in LabelRefVisit()
1820 const LabelDecl *get() const { in get()
1821 return static_cast<const LabelDecl *>(data[0]); in get()
2807 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get(); in RunVisitorWorkList()
5501 if (LabelDecl *label = Goto->getLabel()) in clang_getCursorReferenced()

12