Home
last modified time | relevance | path

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

/src/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp128 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
130 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
137 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
139 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
164 auto DCI = LookupTable.find(DC->getPrimaryContext()); in lookup()
181 auto DCI = LookupTable.find(DC->getPrimaryContext()); in dump()
199 StringRef Primary = DC->getPrimaryContext() ? " primary" : ""; in dump()
H A DDeclBase.cpp1400 if (getPrimaryContext() != this) in Encloses()
1401 return getPrimaryContext()->Encloses(DC); in Encloses()
1405 DC->getPrimaryContext() == this) in Encloses()
1419 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1722 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr; in removeDecl()
1766 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1774 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1786 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()
1853 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1918 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
[all …]
H A DExternalASTMerger.cpp81 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext(); in LookupSameContext()
208 cast<DeclContext>(From)->getPrimaryContext()); in Imported()
230 ToTag->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
237 ToContainer->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
H A DASTDumper.cpp58 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/src/contrib/llvm-project/clang/include/clang/AST/
H A DDeclLookups.h76 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
90 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
H A DDependentDiagnostic.h181 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
H A DDeclBase.h2219 return DC && this->getPrimaryContext() == DC->getPrimaryContext();
2246 DeclContext *getPrimaryContext();
2247 const DeclContext *getPrimaryContext() const {
2248 return const_cast<DeclContext*>(this)->getPrimaryContext();
2650 assert(this == getPrimaryContext() &&
/src/contrib/llvm-project/clang/lib/Frontend/
H A DASTConsumers.cpp87 if (DC == DC->getPrimaryContext()) in print()
91 << DC->getPrimaryContext() << "\n"; in print()
/src/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreterUtils.cpp86 PrimaryWithin = Within->getPrimaryContext(); in LookupNamed()
H A DIncrementalParser.cpp390 if (StoredDeclsMap *Map = MostRecentTU->getPrimaryContext()->getLookupPtr()) { in CleanUpPTU()
/src/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp149 return DC->getPrimaryContext(); in getEqualLocalDeclContext()
H A DClangASTImporter.cpp1367 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp191 Common = Common->getPrimaryContext(); in addUsingDirective()
206 DC->getPrimaryContext(), in getNamespacesFor()
2906 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()
4063 if (Visited.visitedContext(Ctx->getPrimaryContext())) in lookupInDeclContext()
4823 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4828 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
H A DSemaAccess.cpp286 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
287 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
H A DSema.cpp2150 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
2156 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
H A DSemaDecl.cpp562 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
582 DC = DC->getPrimaryContext(); in findRecordWithDependentBasesOfEnclosingMethod()
1563 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1566 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/src/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp4163 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
4359 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
4364 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
4408 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
5800 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
6833 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
H A DASTWriterDecl.cpp406 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1389 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
H A DASTReaderDecl.cpp3288 return TU->getPrimaryContext(); in getPrimaryContextForMerging()
4330 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
H A DASTReader.cpp8099 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()