Lines Matching refs:getPrimaryContext
982 if (getPrimaryContext() != this) in Encloses()
983 return getPrimaryContext()->Encloses(DC); in Encloses()
986 if (DC->getPrimaryContext() == this) in Encloses()
991 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1259 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr; in removeDecl()
1300 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1308 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1346 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()
1411 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1473 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1547 return Ctx->getPrimaryContext(); in getEnclosingNamespaceContext()
1580 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1581 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1589 assert(this == getPrimaryContext() && "expected a primary DC"); in makeDeclVisibleInContextWithFlags()
1593 getParent()->getPrimaryContext() in makeDeclVisibleInContextWithFlags()
1626 getParent()->getPrimaryContext()-> in makeDeclVisibleInContextWithFlags()
1701 assert(getPrimaryContext() == this && in CreateStoredDeclsMap()
1743 Parent = Parent->getPrimaryContext(); in Create()