Searched refs:getPrimaryContext (Results 1 – 14 of 14) sorted by relevance
911 if (getPrimaryContext() != this) in Encloses()912 return getPrimaryContext()->Encloses(DC); in Encloses()915 if (DC->getPrimaryContext() == this) in Encloses()920 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext1192 StoredDeclsMap *Map = getPrimaryContext()->LookupPtr; in removeDecl()1232 ND->getDeclContext()->getPrimaryContext()-> in addDecl()1240 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()1278 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()1343 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()1405 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()[all …]
749 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
72 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()93 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
1291 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()1312 DeclContext *getPrimaryContext();1313 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function1314 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()1702 assert(this == getPrimaryContext() && in setMustBuildLookupTable()
178 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
83 if (DC == DC->getPrimaryContext()) in print()87 << DC->getPrimaryContext() << "\n"; in print()
186 Common = Common->getPrimaryContext(); in addUsingDirective()203 DC->getPrimaryContext(), in getNamespacesFor()2144 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()3181 if (Visited.visitedContext(Ctx->getPrimaryContext())) in LookupVisibleDecls()3904 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()3909 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
1085 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()1091 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
260 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()261 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
461 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()1273 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()1276 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
3460 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()3649 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()3654 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()3686 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()4619 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
264 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()1017 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
3327 LookupDC = DC->getPrimaryContext(); in ReadDeclRecord()
2521 DC->getPrimaryContext()->setHasExternalVisibleStorage(true); in ReadASTBlock()