Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/clang/lib/AST/
H A DASTImporterLookupTable.cpp114 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
116 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
123 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
125 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
150 auto DCI = LookupTable.find(DC->getPrimaryContext()); in lookup()
167 auto DCI = LookupTable.find(DC->getPrimaryContext()); in dump()
185 StringRef Primary = DC->getPrimaryContext() ? " primary" : ""; in dump()
H A DDeclBase.cpp1245 if (getPrimaryContext() != this) in Encloses()
1246 return getPrimaryContext()->Encloses(DC); in Encloses()
1250 DC->getPrimaryContext() == this) in Encloses()
1264 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1611 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1619 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1852 return Ctx->getPrimaryContext(); in getEnclosingNamespaceContext()
1898 getParent()->getPrimaryContext() in makeDeclVisibleInContextWithFlags()
1931 getParent()->getPrimaryContext()-> in makeDeclVisibleInContextWithFlags()
1994 assert(getPrimaryContext() == this && in CreateStoredDeclsMap()
[all …]
H A DExternalASTMerger.cpp81 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext(); in LookupSameContext()
211 cast<DeclContext>(From)->getPrimaryContext()); in Imported()
233 ToTag->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
240 ToContainer->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
H A DASTDumper.cpp58 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/openbsd/gnu/llvm/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 DDeclBase.h2052 return DC && this->getPrimaryContext() == DC->getPrimaryContext();
2079 DeclContext *getPrimaryContext();
2080 const DeclContext *getPrimaryContext() const {
2081 return const_cast<DeclContext*>(this)->getPrimaryContext();
2483 assert(this == getPrimaryContext() &&
H A DDependentDiagnostic.h179 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/openbsd/gnu/llvm/clang/lib/Frontend/
H A DASTConsumers.cpp87 if (DC == DC->getPrimaryContext()) in print()
91 << DC->getPrimaryContext() << "\n"; in print()
/openbsd/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp149 return DC->getPrimaryContext(); in getEqualLocalDeclContext()
H A DClangASTImporter.cpp1133 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
/openbsd/gnu/llvm/clang/lib/Interpreter/
H A DIncrementalParser.cpp284 if (StoredDeclsMap *Map = FirstTU->getPrimaryContext()->getLookupPtr()) { in CleanUpPTU()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaLookup.cpp189 Common = Common->getPrimaryContext(); in addUsingDirective()
204 DC->getPrimaryContext(), in getNamespacesFor()
2927 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()
4110 if (Visited.visitedContext(Ctx->getPrimaryContext())) in lookupInDeclContext()
4874 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4879 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
H A DSemaAccess.cpp278 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
279 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
H A DSema.cpp2097 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
2103 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
H A DSemaDecl.cpp590 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
610 DC = DC->getPrimaryContext(); in findRecordWithDependentBasesOfEnclosingMethod()
1601 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1604 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/openbsd/gnu/llvm/clang/lib/Serialization/
H A DASTWriter.cpp3876 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
4063 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
4068 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
4100 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
5218 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
6110 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
H A DASTWriterDecl.cpp333 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1283 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
H A DASTReaderDecl.cpp4102 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
H A DASTReader.cpp7738 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()
/openbsd/gnu/llvm/clang/docs/
H A DInternalsManual.rst1854 function ``DeclContext::getPrimaryContext`` retrieves the "primary" context for