Lines Matching refs:PrevDecl

8868     NamedDecl *PrevDecl =  in ActOnStartNamespaceDef()  local
8870 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
8877 } else if (PrevDecl) { in ActOnStartNamespaceDef()
8881 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef()
9726 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument
9755 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl()
10165 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local
10166 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration()
10167 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration()
10679 NamedDecl *PrevDecl = PrevR.getRepresentativeDecl(); in ActOnNamespaceAliasDef() local
10680 if (NamespaceAliasDecl *AD = dyn_cast<NamespaceAliasDecl>(PrevDecl)) { in ActOnNamespaceAliasDef()
10685 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
10692 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
10693 unsigned DiagID = isa<NamespaceDecl>(PrevDecl->getUnderlyingDecl()) in ActOnNamespaceAliasDef()
10697 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnNamespaceAliasDef()
13847 if (NamedDecl *PrevDecl = LookupSingleName(S, II, D.getIdentifierLoc(), in ActOnExceptionDeclarator() local
13853 assert(!S->isDeclScope(PrevDecl)); in ActOnExceptionDeclarator()
13854 if (isDeclInScope(PrevDecl, CurContext, S)) { in ActOnExceptionDeclarator()
13857 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnExceptionDeclarator()
13859 } else if (PrevDecl->isTemplateParameter()) in ActOnExceptionDeclarator()
13861 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in ActOnExceptionDeclarator()
15584 NamedDecl *PrevDecl = nullptr; in HandleMSProperty() local
15591 PrevDecl = Previous.getAsSingle<NamedDecl>(); in HandleMSProperty()
15595 PrevDecl = Previous.getRepresentativeDecl(); in HandleMSProperty()
15604 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleMSProperty()
15606 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in HandleMSProperty()
15608 PrevDecl = nullptr; in HandleMSProperty()
15611 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleMSProperty()
15612 PrevDecl = nullptr; in HandleMSProperty()
15628 if (NewPD->isInvalidDecl() && PrevDecl) { in HandleMSProperty()