Lines Matching refs:PrevDecl
7363 NamedDecl *PrevDecl = in ActOnStartNamespaceDef() local
7365 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
7372 } else if (PrevDecl) { in ActOnStartNamespaceDef()
7376 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef()
8044 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument
8073 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl()
8461 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local
8462 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration()
8463 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration()
8935 NamedDecl *PrevDecl = PrevR.getRepresentativeDecl(); in ActOnNamespaceAliasDef() local
8936 if (NamespaceAliasDecl *AD = dyn_cast<NamespaceAliasDecl>(PrevDecl)) { in ActOnNamespaceAliasDef()
8941 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
8948 } else if (isVisible(PrevDecl)) { in ActOnNamespaceAliasDef()
8949 unsigned DiagID = isa<NamespaceDecl>(PrevDecl->getUnderlyingDecl()) in ActOnNamespaceAliasDef()
8953 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnNamespaceAliasDef()
12325 if (NamedDecl *PrevDecl = LookupSingleName(S, II, D.getIdentifierLoc(), in ActOnExceptionDeclarator() local
12331 assert(!S->isDeclScope(PrevDecl)); in ActOnExceptionDeclarator()
12332 if (isDeclInScope(PrevDecl, CurContext, S)) { in ActOnExceptionDeclarator()
12335 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnExceptionDeclarator()
12337 } else if (PrevDecl->isTemplateParameter()) in ActOnExceptionDeclarator()
12339 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in ActOnExceptionDeclarator()
13986 NamedDecl *PrevDecl = nullptr; in HandleMSProperty() local
13992 PrevDecl = Previous.getAsSingle<NamedDecl>(); in HandleMSProperty()
13996 PrevDecl = Previous.getRepresentativeDecl(); in HandleMSProperty()
14005 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleMSProperty()
14007 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in HandleMSProperty()
14009 PrevDecl = nullptr; in HandleMSProperty()
14012 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleMSProperty()
14013 PrevDecl = nullptr; in HandleMSProperty()
14028 if (NewPD->isInvalidDecl() && PrevDecl) { in HandleMSProperty()