• Home
  • Raw
  • Download

Lines Matching refs:PrevDecl

7165     NamedDecl *PrevDecl = nullptr;  in ActOnStartNamespaceDef()  local
7170 PrevDecl = *I; in ActOnStartNamespaceDef()
7175 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
7182 } else if (PrevDecl) { in ActOnStartNamespaceDef()
7186 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartNamespaceDef()
7835 UsingShadowDecl *PrevDecl) { in BuildUsingShadowDecl() argument
7853 Shadow->setPreviousDecl(PrevDecl); in BuildUsingShadowDecl()
8207 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration() local
8208 if (!CheckUsingShadowDecl(UD, *I, Previous, PrevDecl)) in BuildUsingDeclaration()
8209 BuildUsingShadowDecl(S, UD, *I, PrevDecl); in BuildUsingDeclaration()
8657 NamedDecl *PrevDecl = LookupSingleName(S, Alias, AliasLoc, LookupOrdinaryName, in ActOnNamespaceAliasDef() local
8659 if (PrevDecl && !isDeclInScope(PrevDecl, CurContext, S)) in ActOnNamespaceAliasDef()
8660 PrevDecl = nullptr; in ActOnNamespaceAliasDef()
8664 if (PrevDecl) { in ActOnNamespaceAliasDef()
8665 if (NamespaceAliasDecl *AD = dyn_cast<NamespaceAliasDecl>(PrevDecl)) { in ActOnNamespaceAliasDef()
8671 Diag(PrevDecl->getLocation(), diag::note_previous_namespace_alias) in ActOnNamespaceAliasDef()
8676 unsigned DiagID = isa<NamespaceDecl>(PrevDecl) in ActOnNamespaceAliasDef()
8680 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnNamespaceAliasDef()
8692 if (PrevDecl) in ActOnNamespaceAliasDef()
8693 AliasDecl->setPreviousDecl(cast<NamespaceAliasDecl>(PrevDecl)); in ActOnNamespaceAliasDef()
12043 if (NamedDecl *PrevDecl = LookupSingleName(S, II, D.getIdentifierLoc(), in ActOnExceptionDeclarator() local
12049 assert(!S->isDeclScope(PrevDecl)); in ActOnExceptionDeclarator()
12050 if (isDeclInScope(PrevDecl, CurContext, S)) { in ActOnExceptionDeclarator()
12053 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnExceptionDeclarator()
12055 } else if (PrevDecl->isTemplateParameter()) in ActOnExceptionDeclarator()
12057 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in ActOnExceptionDeclarator()
13697 NamedDecl *PrevDecl = nullptr; in HandleMSProperty() local
13703 PrevDecl = Previous.getAsSingle<NamedDecl>(); in HandleMSProperty()
13707 PrevDecl = Previous.getRepresentativeDecl(); in HandleMSProperty()
13716 if (PrevDecl && PrevDecl->isTemplateParameter()) { in HandleMSProperty()
13718 DiagnoseTemplateParameterShadow(D.getIdentifierLoc(), PrevDecl); in HandleMSProperty()
13720 PrevDecl = nullptr; in HandleMSProperty()
13723 if (PrevDecl && !isDeclInScope(PrevDecl, Record, S)) in HandleMSProperty()
13724 PrevDecl = nullptr; in HandleMSProperty()
13739 if (NewPD->isInvalidDecl() && PrevDecl) { in HandleMSProperty()