Lines Matching refs:PrevDecl
11143 NamedDecl *PrevDecl = in ActOnStartNamespaceDef() local
11145 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
11152 } else if (PrevDecl) { in ActOnStartNamespaceDef()
11156 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef()
12068 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument
12098 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl()
12531 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local
12532 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration()
12533 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration()
12580 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingEnumDeclaration() local
12587 if (!CheckUsingShadowDecl(UD, EC, Previous, PrevDecl)) in BuildUsingEnumDeclaration()
12588 BuildUsingShadowDecl(S, UD, EC, PrevDecl); in BuildUsingEnumDeclaration()
13145 NamedDecl *PrevDecl = PrevR.getRepresentativeDecl(); in ActOnNamespaceAliasDef() local
13146 if (NamespaceAliasDecl *AD = dyn_cast<NamespaceAliasDecl>(PrevDecl)) { in ActOnNamespaceAliasDef()
13151 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
13158 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
13159 unsigned DiagID = isa<NamespaceDecl>(PrevDecl->getUnderlyingDecl()) in ActOnNamespaceAliasDef()
13163 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnNamespaceAliasDef()
16510 if (NamedDecl *PrevDecl = LookupSingleName(S, II, D.getIdentifierLoc(), in ActOnExceptionDeclarator() local
16516 assert(!S->isDeclScope(PrevDecl)); in ActOnExceptionDeclarator()
16517 if (isDeclInScope(PrevDecl, CurContext, S)) { in ActOnExceptionDeclarator()
16520 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnExceptionDeclarator()
16522 } else if (PrevDecl->isTemplateParameter()) in ActOnExceptionDeclarator()
16524 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in ActOnExceptionDeclarator()
18311 NamedDecl *PrevDecl = nullptr; in HandleMSProperty() local
18318 PrevDecl = Previous.getAsSingle<NamedDecl>(); in HandleMSProperty()
18322 PrevDecl = Previous.getRepresentativeDecl(); in HandleMSProperty()
18331 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleMSProperty()
18333 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in HandleMSProperty()
18335 PrevDecl = nullptr; in HandleMSProperty()
18338 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleMSProperty()
18339 PrevDecl = nullptr; in HandleMSProperty()
18355 if (NewPD->isInvalidDecl() && PrevDecl) { in HandleMSProperty()