Lines Matching refs:PrevNS
7130 NamespaceDecl *PrevNS) { in DiagnoseNamespaceInlineMismatch() argument
7131 assert(*IsInline != PrevNS->isInline()); in DiagnoseNamespaceInlineMismatch()
7142 for (NamespaceDecl *NS = PrevNS->getMostRecentDecl(); NS; in DiagnoseNamespaceInlineMismatch()
7147 for (auto *I : PrevNS->decls()) in DiagnoseNamespaceInlineMismatch()
7149 PrevNS->getParent()->makeDeclVisibleInContext(ND); in DiagnoseNamespaceInlineMismatch()
7153 if (PrevNS->isInline()) in DiagnoseNamespaceInlineMismatch()
7161 S.Diag(PrevNS->getLocation(), diag::note_previous_definition); in DiagnoseNamespaceInlineMismatch()
7162 *IsInline = PrevNS->isInline(); in DiagnoseNamespaceInlineMismatch()
7184 NamespaceDecl *PrevNS = nullptr; in ActOnStartNamespaceDef() local
7200 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
7202 if (PrevNS) { in ActOnStartNamespaceDef()
7204 if (IsInline != PrevNS->isInline()) in ActOnStartNamespaceDef()
7206 &IsInline, PrevNS); in ActOnStartNamespaceDef()
7218 PrevNS = getStdNamespace(); in ActOnStartNamespaceDef()
7231 PrevNS = TU->getAnonymousNamespace(); in ActOnStartNamespaceDef()
7234 PrevNS = ND->getAnonymousNamespace(); in ActOnStartNamespaceDef()
7237 if (PrevNS && IsInline != PrevNS->isInline()) in ActOnStartNamespaceDef()
7239 &IsInline, PrevNS); in ActOnStartNamespaceDef()
7243 StartLoc, Loc, II, PrevNS); in ActOnStartNamespaceDef()
7287 if (!PrevNS) { in ActOnStartNamespaceDef()