Home
last modified time | relevance | path

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

/external/clang/lib/AST/
DDeclBase.cpp939 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 DeclContext
1215 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 …]
DASTDumper.cpp751 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/external/clang/include/clang/AST/
DDeclLookups.h72 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
93 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
DDeclBase.h1312 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()
1333 DeclContext *getPrimaryContext();
1334 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function
1335 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()
1723 assert(this == getPrimaryContext() && in setMustBuildLookupTable()
DDependentDiagnostic.h178 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/external/clang/lib/Frontend/
DASTConsumers.cpp83 if (DC == DC->getPrimaryContext()) in print()
87 << DC->getPrimaryContext() << "\n"; in print()
/external/clang/lib/Sema/
DSemaLookup.cpp187 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()
DSema.cpp1113 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
1119 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
DSemaAccess.cpp265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
DSemaDecl.cpp461 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
1275 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1278 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/external/clang/lib/Serialization/
DASTWriter.cpp3501 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()
DASTWriterDecl.cpp309 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1067 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
DASTReaderDecl.cpp3359 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
DASTReader.cpp6640 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()
/external/clang/docs/
DInternalsManual.rst1324 function ``DeclContext::getPrimaryContext`` retrieves the "primary" context for