Home
last modified time | relevance | path

Searched refs:getPrimaryContext (Results 1 – 14 of 14) sorted by relevance

/external/clang/lib/AST/
DDeclBase.cpp874 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 DeclContext
1152 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 …]
DASTDumper.cpp578 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/external/clang/include/clang/AST/
DDeclLookups.h72 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
90 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
DDeclBase.h1197 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()
1218 DeclContext *getPrimaryContext();
1219 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function
1220 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()
DDependentDiagnostic.h178 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/external/clang/lib/Sema/
DSemaLookup.cpp183 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()
DSema.cpp1040 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
1046 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
DSemaAccess.cpp260 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
261 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
DSemaDecl.cpp417 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
1210 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1213 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp191 Writer.AddUpdatedDeclContext(NS->getPrimaryContext()); in VisitDecl()
924 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
DASTWriter.cpp3482 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()
DASTReaderDecl.cpp2825 LookupDC = DC->getPrimaryContext(); in ReadDeclRecord()
DASTReader.cpp2688 DC->getPrimaryContext()->setHasExternalVisibleStorage(true); in ReadASTBlock()
/external/clang/docs/
DInternalsManual.rst1309 function ``DeclContext::getPrimaryContext`` retrieves the "primary" context for