Lines Matching refs:OldDC
6516 const DeclContext *OldDC) { in computeShadowedDeclKind() argument
6517 if (isa<RecordDecl>(OldDC)) in computeShadowedDeclKind()
6519 return OldDC->isFileContext() ? SDK_Global : SDK_Local; in computeShadowedDeclKind()
6578 DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadow() local
6583 if (!OldDC->isRecord()) in CheckShadow()
6600 ShadowedDeclKind Kind = computeShadowedDeclKind(ShadowedDecl, OldDC); in CheckShadow()
6601 Diag(R.getNameLoc(), diag::warn_decl_shadow) << Name << Kind << OldDC; in CheckShadow()
6631 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadowingDeclModification() local
6632 Diag(Loc, diag::warn_modifying_shadowing_decl) << D << OldDC; in CheckShadowingDeclModification()
12208 static bool isAcceptableTagRedeclContext(Sema &S, DeclContext *OldDC, in isAcceptableTagRedeclContext() argument
12210 OldDC = OldDC->getRedeclContext(); in isAcceptableTagRedeclContext()
12213 if (OldDC->Equals(NewDC)) in isAcceptableTagRedeclContext()
12219 (OldDC->Encloses(NewDC) || NewDC->Encloses(OldDC))) in isAcceptableTagRedeclContext()