Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DJumpDiagnostics.cpp66 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
79 LabelDecl *Target, unsigned TargetScope);
502 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 …]
DSemaTemplateInstantiateDecl.cpp159 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
160 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl()
3464 assert(isa<LabelDecl>(D)); in FindInstantiatedDecl()
3470 return cast<LabelDecl>(Inst); in FindInstantiatedDecl()
DSemaLookup.cpp3106 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
3113 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3116 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
3127 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3132 return cast<LabelDecl>(Res); in LookupOrCreateLabel()
DSemaDecl.cpp1073 if (isa<LabelDecl>(D) && !cast<LabelDecl>(D)->isGnuLocal()) { in PushOnScopeChains()
1281 if (isa<LabelDecl>(D)) in ShouldDiagnoseUnusedDecl()
1337 if (isa<LabelDecl>(D)) { in GenerateFixForUnusedDecl()
1360 else if (isa<LabelDecl>(D)) in DiagnoseUnusedDecl()
1368 static void CheckPoppedLabel(LabelDecl *L, Sema &S) { in CheckPoppedLabel()
1396 if (LabelDecl *LD = dyn_cast<LabelDecl>(D)) in ActOnPopScope()
/external/clang/include/clang/AST/
DStmt.h37 class LabelDecl; variable
770 LabelDecl *TheDecl;
774 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt()
782 LabelDecl *getDecl() const { return TheDecl; } in getDecl()
783 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
1192 LabelDecl *Label;
1196 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL) in GotoStmt()
1202 LabelDecl *getLabel() const { return Label; } in getLabel()
1203 void setLabel(LabelDecl *D) { Label = D; } in setLabel()
1248 LabelDecl *getConstantTarget();
[all …]
DDecl.h273 class LabelDecl : public NamedDecl {
281 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, in LabelDecl() function
286 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
288 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
291 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
DExpr.h3285 LabelDecl *Label;
3287 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L, in AddrLabelExpr()
3305 LabelDecl *getLabel() const { return Label; } in getLabel()
3306 void setLabel(LabelDecl *L) { Label = L; } in setLabel()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSVals.h464 explicit GotoLabel(LabelDecl *Label) : Loc(GotoLabelKind, Label) {} in GotoLabel()
466 const LabelDecl *getLabel() const { in getLabel()
467 return static_cast<const LabelDecl*>(Data); in getLabel()
DCoreEngine.h465 const LabelDecl *getLabel() const { in getLabel()
/external/clang/lib/Frontend/
DASTConsumers.cpp403 LabelDecl *LD = cast<LabelDecl>(*I); in PrintDeclContext()
/external/clang/lib/AST/
DDecl.cpp3167 void LabelDecl::anchor() { } in anchor()
3169 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3171 return new (C) LabelDecl(DC, IdentL, II, 0, IdentL); in Create()
3174 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC, in Create()
3178 return new (C) LabelDecl(DC, IdentL, II, 0, GnuLabelL); in Create()
3181 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3182 void *Mem = AllocateDeserializedDecl(C, ID, sizeof(LabelDecl)); in CreateDeserialized()
3183 return new (Mem) LabelDecl(0, SourceLocation(), 0, 0, SourceLocation()); in CreateDeserialized()
DDeclPrinter.cpp59 void VisitLabelDecl(LabelDecl *D);
635 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
DASTDumper.cpp189 void VisitLabelDecl(const LabelDecl *D);
695 void ASTDumper::VisitLabelDecl(const LabelDecl *D) { in VisitLabelDecl()
DStmt.cpp954 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
/external/clang/unittests/AST/
DSourceLocationTest.cpp68 TEST(LabelDecl, Range) { in TEST() argument
/external/clang/include/clang/Sema/
DTemplate.h395 Decl *VisitLabelDecl(LabelDecl *D);
DScopeInfo.h30 class LabelDecl; variable
/external/clang/lib/CodeGen/
DCGStmt.cpp310 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
321 void CodeGenFunction::EmitLabel(const LabelDecl *D) { in EmitLabel()
365 if (const LabelDecl *Target = S.getConstantTarget()) { in EmitIndirectGotoStmt()
DCodeGenFunction.h52 class LabelDecl; variable
1150 llvm::DenseMap<const LabelDecl*, JumpDest> LabelMap;
1555 JumpDest getJumpDestForLabel(const LabelDecl *S);
1761 llvm::BlockAddress *GetAddrOfLabel(const LabelDecl *L);
2078 void EmitLabel(const LabelDecl *D); // helper for EmitLabelStmt.
/external/clang/lib/Serialization/
DASTReaderStmt.cpp154 LabelDecl *LD = ReadDeclAs<LabelDecl>(Record, Idx); in VisitLabelStmt()
241 S->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitGotoStmt()
736 E->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitAddrLabelExpr()
DASTReaderDecl.cpp217 void VisitLabelDecl(LabelDecl *LD);
998 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
1991 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
DASTWriterDecl.cpp54 void VisitLabelDecl(LabelDecl *LD);
828 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
/external/clang/lib/Parse/
DParseStmt.cpp472 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement()
1582 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
/external/clang/lib/Analysis/
DCFG.cpp307 typedef llvm::DenseMap<LabelDecl*, JumpTarget> LabelMapTy;
316 typedef llvm::SmallPtrSet<LabelDecl*, 5> LabelSetTy;
1602 if (isa<LabelDecl>(*DS->decl_begin())) in VisitDeclStmt()
/external/clang/tools/libclang/
DCIndex.cpp1714 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent) in LabelRefVisit()
1721 const LabelDecl *get() const { in get()
1722 return static_cast<const LabelDecl *>(data[0]); in get()
2224 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get(); in RunVisitorWorkList()
4338 if (LabelDecl *label = Goto->getLabel()) in clang_getCursorReferenced()

12