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

12

/external/clang/lib/Sema/
H A DJumpDiagnostics.cpp70 SmallVector<LabelDecl*, 4> IndirectJumpTargets;
83 LabelDecl *Target, unsigned TargetScope);
501 LabelDecl *Target = IGS->getConstantTarget();
582 llvm::DenseMap<unsigned, LabelDecl*> TargetScopes;
583 for (SmallVectorImpl<LabelDecl*>::iterator
586 LabelDecl *TheLabel = *I;
590 LabelDecl *&Target = TargetScopes[LabelScope];
603 for (llvm::DenseMap<unsigned,LabelDecl*>::iterator
606 LabelDecl *TargetLabel = TI->second;
683 LabelDecl *Targe
[all...]
H A DSemaLookup.cpp3235 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc,
3242 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc);
3245 return cast<LabelDecl>(Res);
3256 Res = LabelDecl::Create(Context, CurContext, Loc, II);
3261 return cast<LabelDecl>(Res);
H A DSemaTemplateInstantiateDecl.cpp216 TemplateDeclInstantiator::VisitLabelDecl(LabelDecl *D) {
217 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),
4439 assert(isa<LabelDecl>(D));
4445 return cast<LabelDecl>(Inst);
H A DTreeTransform.h1097 StmtResult RebuildLabelStmt(SourceLocation IdentLoc, LabelDecl *L,
1178 LabelDecl *Label) {
1981 SourceLocation LabelLoc, LabelDecl *Label) {
5489 cast<LabelDecl>(LD), SourceLocation(),
5754 cast<LabelDecl>(LD));
7513 cast<LabelDecl>(LD));
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h472 explicit GotoLabel(LabelDecl *Label) : Loc(GotoLabelKind, Label) {}
474 const LabelDecl *getLabel() const {
475 return static_cast<const LabelDecl*>(Data);
H A DCoreEngine.h471 const LabelDecl *getLabel() const {
/external/clang/lib/Frontend/
H A DASTConsumers.cpp405 LabelDecl *LD = cast<LabelDecl>(I);
/external/clang/include/clang/AST/
H A DStmt.h40 class LabelDecl;
782 LabelDecl *TheDecl;
786 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt)
794 LabelDecl *getDecl() const { return TheDecl; }
795 void setDecl(LabelDecl *D) { TheDecl = D; }
1207 LabelDecl *Label;
1211 GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL)
1217 LabelDecl *getLabel() const { return Label; }
1218 void setLabel(LabelDecl *D) { Label = D; }
1263 LabelDecl *getConstantTarge
[all...]
H A DDecl.h300 /// LabelDecl - Represents the declaration of a label. Labels also have a
305 class LabelDecl : public NamedDecl { class in namespace:clang
313 LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II, function in class:clang::LabelDecl
318 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
320 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
323 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
H A DExpr.h3353 LabelDecl *Label;
3355 AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L,
3373 LabelDecl *getLabel() const { return Label; }
3374 void setLabel(LabelDecl *L) { Label = L; }
/external/clang/unittests/AST/
H A DSourceLocationTest.cpp68 TEST(LabelDecl, Range) {
/external/clang/lib/CodeGen/
H A DCodeGenFunction.h56 class LabelDecl;
512 SmallVector<const LabelDecl*, 4> Labels;
527 void addLabel(const LabelDecl *label) {
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.
H A DCGStmt.cpp355 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) {
366 void CodeGenFunction::EmitLabel(const LabelDecl *D) {
401 for (SmallVectorImpl<const LabelDecl*>::const_iterator
454 if (const LabelDecl *Target = S.getConstantTarget()) {
/external/clang/lib/AST/
H A DDecl.cpp3641 void LabelDecl::anchor() { }
3643 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC,
3645 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, IdentL);
3648 LabelDecl *LabelDecl::Create(ASTContext &C, DeclContext *DC,
3652 return new (C, DC) LabelDecl(DC, IdentL, II, nullptr, GnuLabelL);
3655 LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
3656 return new (C, ID) LabelDecl(nullpt
[all...]
H A DDeclPrinter.cpp59 void VisitLabelDecl(LabelDecl *D);
646 void DeclPrinter::VisitLabelDecl(LabelDecl *D) {
H A DASTDumper.cpp237 void VisitLabelDecl(const LabelDecl *D);
844 void ASTDumper::VisitLabelDecl(const LabelDecl *D) {
H A DStmt.cpp944 LabelDecl *IndirectGotoStmt::getConstantTarget() {
/external/clang/include/clang/Sema/
H A DScopeInfo.h37 class LabelDecl;
H A DSema.h2603 LabelDecl *LookupOrCreateLabel(IdentifierInfo *II, SourceLocation IdentLoc,
3013 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
3077 LabelDecl *TheDecl);
3643 LabelDecl *TheDecl);
/external/clang/lib/Parse/
H A DParseStmt.cpp582 LabelDecl *LD = Actions.LookupOrCreateLabel(IdentTok.getIdentifierInfo(),
1741 LabelDecl *LD = Actions.LookupOrCreateLabel(Tok.getIdentifierInfo(),
/external/clang/lib/Serialization/
H A DASTReaderStmt.cpp164 LabelDecl *LD = ReadDeclAs<LabelDecl>(Record, Idx);
251 S->setLabel(ReadDeclAs<LabelDecl>(Record, Idx));
819 E->setLabel(ReadDeclAs<LabelDecl>(Record, Idx));
H A DASTWriterDecl.cpp54 void VisitLabelDecl(LabelDecl *LD);
882 void ASTDeclWriter::VisitLabelDecl(LabelDecl *D) {
H A DASTReaderDecl.cpp231 void VisitLabelDecl(LabelDecl *LD);
1124 void ASTDeclReader::VisitLabelDecl(LabelDecl *D) {
2640 D = LabelDecl::CreateDeserialized(Context, ID);
/external/clang/lib/Analysis/
H A DCFG.cpp308 typedef llvm::DenseMap<LabelDecl*, JumpTarget> LabelMapTy;
317 typedef llvm::SmallPtrSet<LabelDecl*, 5> LabelSetTy;
1905 if (isa<LabelDecl>(*DS->decl_begin()))
/external/clang/tools/libclang/
H A DCIndex.cpp1736 LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent)
1743 const LabelDecl *get() const {
1744 return static_cast<const LabelDecl *>(data[0]);
2378 const LabelDecl *LS = cast<LabelRefVisit>(&LI)->get();
4624 if (LabelDecl *label = Goto->getLabel())

Completed in 1983 milliseconds

12