Searched refs:getPrimaryContext (Results 1 – 17 of 17) sorted by relevance
74 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()76 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()83 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()85 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()92 auto DCI = LookupTable.find(DC->getPrimaryContext()); in lookup()105 auto DCI = LookupTable.find(DC->getPrimaryContext()); in dump()123 StringRef Primary = DC->getPrimaryContext() ? " primary" : ""; in dump()
1149 if (getPrimaryContext() != this) in Encloses()1150 return getPrimaryContext()->Encloses(DC); in Encloses()1153 if (DC->getPrimaryContext() == this) in Encloses()1158 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext1511 ND->getDeclContext()->getPrimaryContext()-> in addDecl()1519 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()1753 return Ctx->getPrimaryContext(); in getEnclosingNamespaceContext()1799 getParent()->getPrimaryContext() in makeDeclVisibleInContextWithFlags()1832 getParent()->getPrimaryContext()-> in makeDeclVisibleInContextWithFlags()1907 assert(getPrimaryContext() == this && in CreateStoredDeclsMap()[all …]
79 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext(); in LookupSameContext()125 cast<DeclContext>(From)->getPrimaryContext()); in Imported()147 ToTag->getPrimaryContext()->setMustBuildLookupTable(); in Imported()154 ToContainer->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
379 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
77 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()91 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
1873 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()1894 DeclContext *getPrimaryContext();1895 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function1896 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()2298 assert(this == getPrimaryContext() && in setMustBuildLookupTable()
180 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
83 if (DC == DC->getPrimaryContext()) in print()87 << DC->getPrimaryContext() << "\n"; in print()
184 Common = Common->getPrimaryContext(); in addUsingDirective()199 DC->getPrimaryContext(), in getNamespacesFor()2445 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()3495 if (Visited.visitedContext(Ctx->getPrimaryContext())) in LookupVisibleDecls()4255 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()4260 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
266 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()267 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
1366 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()1372 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
524 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()544 DC = DC->getPrimaryContext(); in findRecordWithDependentBasesOfEnclosingMethod()1413 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()1416 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
1053 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
3970 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()4157 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()4162 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()4194 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()5218 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()6242 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
321 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()1180 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
4008 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
7531 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()