Searched refs:getPrimaryContext (Results 1 – 15 of 15) sorted by relevance
939 if (getPrimaryContext() != this) in Encloses()940 return getPrimaryContext()->Encloses(DC); in Encloses()943 if (DC->getPrimaryContext() == this) in Encloses()948 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext1215 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr; in removeDecl()1256 ND->getDeclContext()->getPrimaryContext()-> in addDecl()1264 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()1302 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()1367 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()1429 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()[all …]
751 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()
1312 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()1333 DeclContext *getPrimaryContext();1334 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function1335 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()1723 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()
187 Common = Common->getPrimaryContext(); in addUsingDirective()204 DC->getPrimaryContext(), in getNamespacesFor()2320 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()3357 if (Visited.visitedContext(Ctx->getPrimaryContext())) in LookupVisibleDecls()4086 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()4091 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
1113 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()1119 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
461 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()1275 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()1278 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
3501 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()3688 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()3693 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()3725 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()4609 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()5683 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
309 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()1067 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
3359 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
6640 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()
1324 function ``DeclContext::getPrimaryContext`` retrieves the "primary" context for