Searched refs:getPrimaryContext (Results 1 – 14 of 14) sorted by relevance
874 if (getPrimaryContext() != this) in Encloses()875 return getPrimaryContext()->Encloses(DC); in Encloses()878 if (DC->getPrimaryContext() == this) in Encloses()883 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext1152 StoredDeclsMap *Map = getPrimaryContext()->LookupPtr.getPointer(); in removeDecl()1192 ND->getDeclContext()->getPrimaryContext()-> in addDecl()1200 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()1238 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()1295 DeclContext *PrimaryContext = getPrimaryContext(); in lookup()1350 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()[all …]
578 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
72 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()90 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
1197 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()1218 DeclContext *getPrimaryContext();1219 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function1220 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()
178 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
183 Common = Common->getPrimaryContext(); in addUsingDirective()199 return std::equal_range(begin(), end(), DC->getPrimaryContext(), in getNamespacesFor()1946 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()2983 if (Visited.visitedContext(Ctx->getPrimaryContext())) in LookupVisibleDecls()3774 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()3779 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
1040 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()1046 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
260 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()261 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
417 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()1210 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()1213 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
191 Writer.AddUpdatedDeclContext(NS->getPrimaryContext()); in VisitDecl()924 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
3482 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in visitLocalLookupResults()3598 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()4530 AddUpdatedDeclContext(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
2825 LookupDC = DC->getPrimaryContext(); in ReadDeclRecord()
2688 DC->getPrimaryContext()->setHasExternalVisibleStorage(true); in ReadASTBlock()
1309 function ``DeclContext::getPrimaryContext`` retrieves the "primary" context for