Lines Matching refs:PrevNS
7294 NamespaceDecl *PrevNS) { in DiagnoseNamespaceInlineMismatch() argument
7295 assert(*IsInline != PrevNS->isInline()); in DiagnoseNamespaceInlineMismatch()
7306 for (NamespaceDecl *NS = PrevNS->getMostRecentDecl(); NS; in DiagnoseNamespaceInlineMismatch()
7311 for (auto *I : PrevNS->decls()) in DiagnoseNamespaceInlineMismatch()
7313 PrevNS->getParent()->makeDeclVisibleInContext(ND); in DiagnoseNamespaceInlineMismatch()
7317 if (PrevNS->isInline()) in DiagnoseNamespaceInlineMismatch()
7325 S.Diag(PrevNS->getLocation(), diag::note_previous_definition); in DiagnoseNamespaceInlineMismatch()
7326 *IsInline = PrevNS->isInline(); in DiagnoseNamespaceInlineMismatch()
7348 NamespaceDecl *PrevNS = nullptr; in ActOnStartNamespaceDef() local
7365 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef()
7367 if (PrevNS) { in ActOnStartNamespaceDef()
7369 if (IsInline != PrevNS->isInline()) in ActOnStartNamespaceDef()
7371 &IsInline, PrevNS); in ActOnStartNamespaceDef()
7383 PrevNS = getStdNamespace(); in ActOnStartNamespaceDef()
7396 PrevNS = TU->getAnonymousNamespace(); in ActOnStartNamespaceDef()
7399 PrevNS = ND->getAnonymousNamespace(); in ActOnStartNamespaceDef()
7402 if (PrevNS && IsInline != PrevNS->isInline()) in ActOnStartNamespaceDef()
7404 &IsInline, PrevNS); in ActOnStartNamespaceDef()
7408 StartLoc, Loc, II, PrevNS); in ActOnStartNamespaceDef()
7452 if (!PrevNS) { in ActOnStartNamespaceDef()