Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp104 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
106 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
113 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
115 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
135 auto DCI = LookupTable.find(DC->getPrimaryContext()); in lookup()
152 auto DCI = LookupTable.find(DC->getPrimaryContext()); in dump()
170 StringRef Primary = DC->getPrimaryContext() ? " primary" : ""; in dump()
H A DDeclBase.cpp1211 if (getPrimaryContext() != this) in Encloses()
1212 return getPrimaryContext()->Encloses(DC); in Encloses()
1215 if (DC->getPrimaryContext() == this) in Encloses()
1220 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1554 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1562 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1794 return Ctx->getPrimaryContext(); in getEnclosingNamespaceContext()
1840 getParent()->getPrimaryContext() in makeDeclVisibleInContextWithFlags()
1873 getParent()->getPrimaryContext()-> in makeDeclVisibleInContextWithFlags()
1936 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.cpp30 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/freebsd-13.1/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 DDeclBase.h1985 return DC && this->getPrimaryContext() == DC->getPrimaryContext();
2006 DeclContext *getPrimaryContext();
2007 const DeclContext *getPrimaryContext() const {
2008 return const_cast<DeclContext*>(this)->getPrimaryContext();
2410 assert(this == getPrimaryContext() &&
H A DDependentDiagnostic.h179 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DASTConsumers.cpp84 if (DC == DC->getPrimaryContext()) in print()
88 << DC->getPrimaryContext() << "\n"; in print()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp147 return DC->getPrimaryContext(); in getEqualLocalDeclContext()
H A DClangASTImporter.cpp1164 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp186 Common = Common->getPrimaryContext(); in addUsingDirective()
201 DC->getPrimaryContext(), in getNamespacesFor()
2660 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()
3797 if (Visited.visitedContext(Ctx->getPrimaryContext())) in lookupInDeclContext()
4544 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4549 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.cpp1954 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
1960 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
H A DSemaDecl.cpp536 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
556 DC = DC->getPrimaryContext(); in findRecordWithDependentBasesOfEnclosingMethod()
1541 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1544 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp3660 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
3847 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
3852 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
3884 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
4912 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
5742 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
H A DASTWriterDecl.cpp329 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1253 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
H A DASTReaderDecl.cpp4254 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
H A DASTReader.cpp7645 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()