Lines Matching refs:PrevNS
7096 NamespaceDecl *PrevNS) { in DiagnoseNamespaceInlineMismatch() argument
7097 assert(*IsInline != PrevNS->isInline()); in DiagnoseNamespaceInlineMismatch()
7108 for (NamespaceDecl *NS = PrevNS->getMostRecentDecl(); NS; in DiagnoseNamespaceInlineMismatch()
7113 for (auto *I : PrevNS->decls()) in DiagnoseNamespaceInlineMismatch()
7115 PrevNS->getParent()->makeDeclVisibleInContext(ND); in DiagnoseNamespaceInlineMismatch()
7119 if (PrevNS->isInline()) in DiagnoseNamespaceInlineMismatch()
7127 S.Diag(PrevNS->getLocation(), diag::note_previous_definition); in DiagnoseNamespaceInlineMismatch()
7128 *IsInline = PrevNS->isInline(); in DiagnoseNamespaceInlineMismatch()
7149 NamespaceDecl *PrevNS = nullptr; in ActOnStartNamespaceDef() local
7175 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
7177 if (PrevNS) { in ActOnStartNamespaceDef()
7179 if (IsInline != PrevNS->isInline()) in ActOnStartNamespaceDef()
7181 &IsInline, PrevNS); in ActOnStartNamespaceDef()
7193 PrevNS = getStdNamespace(); in ActOnStartNamespaceDef()
7206 PrevNS = TU->getAnonymousNamespace(); in ActOnStartNamespaceDef()
7209 PrevNS = ND->getAnonymousNamespace(); in ActOnStartNamespaceDef()
7212 if (PrevNS && IsInline != PrevNS->isInline()) in ActOnStartNamespaceDef()
7214 &IsInline, PrevNS); in ActOnStartNamespaceDef()
7218 StartLoc, Loc, II, PrevNS); in ActOnStartNamespaceDef()
7262 if (!PrevNS) { in ActOnStartNamespaceDef()