Lines Matching refs:TheDecl
536 Sema::ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl, in ActOnLabelStmt() argument
539 if (TheDecl->getStmt()) { in ActOnLabelStmt()
540 Diag(IdentLoc, diag::err_redefinition_of_label) << TheDecl->getDeclName(); in ActOnLabelStmt()
541 Diag(TheDecl->getLocation(), diag::note_previous_definition); in ActOnLabelStmt()
545 ReservedIdentifierStatus Status = TheDecl->isReserved(getLangOpts()); in ActOnLabelStmt()
549 << TheDecl << static_cast<int>(Status); in ActOnLabelStmt()
552 LabelStmt *LS = new (Context) LabelStmt(IdentLoc, TheDecl, SubStmt); in ActOnLabelStmt()
553 TheDecl->setStmt(LS); in ActOnLabelStmt()
554 if (!TheDecl->isGnuLocal()) { in ActOnLabelStmt()
555 TheDecl->setLocStart(IdentLoc); in ActOnLabelStmt()
556 if (!TheDecl->isMSAsmLabel()) { in ActOnLabelStmt()
559 TheDecl->setLocation(IdentLoc); in ActOnLabelStmt()
3237 LabelDecl *TheDecl) { in ActOnGotoStmt() argument
3239 TheDecl->markUsed(Context); in ActOnGotoStmt()
3240 return new (Context) GotoStmt(TheDecl, GotoLoc, LabelLoc); in ActOnGotoStmt()