Lines Matching refs:PrevDecl

11240     NamedDecl *PrevDecl =  in ActOnStartNamespaceDef()  local
11242 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
11249 } else if (PrevDecl) { in ActOnStartNamespaceDef()
11253 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef()
12176 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument
12206 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl()
12639 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local
12640 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration()
12641 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration()
12689 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingEnumDeclaration() local
12696 if (!CheckUsingShadowDecl(UD, EC, Previous, PrevDecl)) in BuildUsingEnumDeclaration()
12697 BuildUsingShadowDecl(S, UD, EC, PrevDecl); in BuildUsingEnumDeclaration()
13254 NamedDecl *PrevDecl = PrevR.getRepresentativeDecl(); in ActOnNamespaceAliasDef() local
13255 if (NamespaceAliasDecl *AD = dyn_cast<NamespaceAliasDecl>(PrevDecl)) { in ActOnNamespaceAliasDef()
13260 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
13267 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
13268 unsigned DiagID = isa<NamespaceDecl>(PrevDecl->getUnderlyingDecl()) in ActOnNamespaceAliasDef()
13272 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnNamespaceAliasDef()
16579 if (NamedDecl *PrevDecl = LookupSingleName(S, II, D.getIdentifierLoc(), in ActOnExceptionDeclarator() local
16585 assert(!S->isDeclScope(PrevDecl)); in ActOnExceptionDeclarator()
16586 if (isDeclInScope(PrevDecl, CurContext, S)) { in ActOnExceptionDeclarator()
16589 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnExceptionDeclarator()
16591 } else if (PrevDecl->isTemplateParameter()) in ActOnExceptionDeclarator()
16593 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in ActOnExceptionDeclarator()
18522 NamedDecl *PrevDecl = nullptr; in HandleMSProperty() local
18529 PrevDecl = Previous.getAsSingle<NamedDecl>(); in HandleMSProperty()
18533 PrevDecl = Previous.getRepresentativeDecl(); in HandleMSProperty()
18542 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleMSProperty()
18544 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in HandleMSProperty()
18546 PrevDecl = nullptr; in HandleMSProperty()
18549 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleMSProperty()
18550 PrevDecl = nullptr; in HandleMSProperty()
18566 if (NewPD->isInvalidDecl() && PrevDecl) { in HandleMSProperty()