Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDDeclBase.cpp911 if (getPrimaryContext() != this) in Encloses()
912 return getPrimaryContext()->Encloses(DC); in Encloses()
915 if (DC->getPrimaryContext() == this) in Encloses()
920 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1192 StoredDeclsMap *Map = getPrimaryContext()->LookupPtr; in removeDecl()
1232 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1240 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1278 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()
1343 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1405 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
[all …]
HDASTDumper.cpp749 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDDeclLookups.h72 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
93 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
HDDeclBase.h1291 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()
1312 DeclContext *getPrimaryContext();
1313 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function
1314 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()
1702 assert(this == getPrimaryContext() && in setMustBuildLookupTable()
HDDependentDiagnostic.h178 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/
HDASTConsumers.cpp83 if (DC == DC->getPrimaryContext()) in print()
87 << DC->getPrimaryContext() << "\n"; in print()
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaLookup.cpp186 Common = Common->getPrimaryContext(); in addUsingDirective()
203 DC->getPrimaryContext(), in getNamespacesFor()
2144 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()
3181 if (Visited.visitedContext(Ctx->getPrimaryContext())) in LookupVisibleDecls()
3904 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
3909 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
HDSema.cpp1085 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
1091 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
HDSemaAccess.cpp260 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
261 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
HDSemaDecl.cpp461 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
1273 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1276 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/NextBSD/contrib/llvm/tools/clang/lib/Serialization/
HDASTWriter.cpp3460 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
3649 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
3654 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
3686 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
4619 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
HDASTWriterDecl.cpp264 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1017 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
HDASTReaderDecl.cpp3327 LookupDC = DC->getPrimaryContext(); in ReadDeclRecord()
HDASTReader.cpp2521 DC->getPrimaryContext()->setHasExternalVisibleStorage(true); in ReadASTBlock()