/external/clang/lib/Sema/ |
D | JumpDiagnostics.cpp | 66 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 …]
|
D | SemaTemplateInstantiateDecl.cpp | 159 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()
|
D | SemaLookup.cpp | 3106 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()
|
D | SemaDecl.cpp | 1073 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/ |
D | Stmt.h | 37 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 …]
|
D | Decl.h | 273 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);
|
D | Expr.h | 3285 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/ |
D | SVals.h | 464 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()
|
D | CoreEngine.h | 465 const LabelDecl *getLabel() const { in getLabel()
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 403 LabelDecl *LD = cast<LabelDecl>(*I); in PrintDeclContext()
|
/external/clang/lib/AST/ |
D | Decl.cpp | 3167 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()
|
D | DeclPrinter.cpp | 59 void VisitLabelDecl(LabelDecl *D); 635 void DeclPrinter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
|
D | ASTDumper.cpp | 189 void VisitLabelDecl(const LabelDecl *D); 695 void ASTDumper::VisitLabelDecl(const LabelDecl *D) { in VisitLabelDecl()
|
D | Stmt.cpp | 954 LabelDecl *IndirectGotoStmt::getConstantTarget() { in getConstantTarget()
|
/external/clang/unittests/AST/ |
D | SourceLocationTest.cpp | 68 TEST(LabelDecl, Range) { in TEST() argument
|
/external/clang/include/clang/Sema/ |
D | Template.h | 395 Decl *VisitLabelDecl(LabelDecl *D);
|
D | ScopeInfo.h | 30 class LabelDecl; variable
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 310 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()
|
D | CodeGenFunction.h | 52 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/ |
D | ASTReaderStmt.cpp | 154 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()
|
D | ASTReaderDecl.cpp | 217 void VisitLabelDecl(LabelDecl *LD); 998 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl() 1991 D = LabelDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
|
D | ASTWriterDecl.cpp | 54 void VisitLabelDecl(LabelDecl *LD); 828 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) { in VisitLabelDecl()
|
/external/clang/lib/Parse/ |
D | ParseStmt.cpp | 472 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(), in ParseLabeledStatement() 1582 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(), in ParseGotoStatement()
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 307 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/ |
D | CIndex.cpp | 1714 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()
|