Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DASTImporterLookupTable.cpp74 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
76 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
83 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
85 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
92 auto DCI = LookupTable.find(DC->getPrimaryContext()); in lookup()
105 auto DCI = LookupTable.find(DC->getPrimaryContext()); in dump()
123 StringRef Primary = DC->getPrimaryContext() ? " primary" : ""; in dump()
H A DDeclBase.cpp1149 if (getPrimaryContext() != this) in Encloses()
1150 return getPrimaryContext()->Encloses(DC); in Encloses()
1153 if (DC->getPrimaryContext() == this) in Encloses()
1158 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1511 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1519 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1753 return Ctx->getPrimaryContext(); in getEnclosingNamespaceContext()
1799 getParent()->getPrimaryContext() in makeDeclVisibleInContextWithFlags()
1832 getParent()->getPrimaryContext()-> in makeDeclVisibleInContextWithFlags()
1907 assert(getPrimaryContext() == this && in CreateStoredDeclsMap()
[all …]
H A DExternalASTMerger.cpp79 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext(); in LookupSameContext()
125 cast<DeclContext>(From)->getPrimaryContext()); in Imported()
147 ToTag->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
154 ToContainer->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
H A DASTDumper.cpp379 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclLookups.h77 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
91 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
H A DDeclBase.h1873 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()
1894 DeclContext *getPrimaryContext();
1895 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function
1896 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()
2298 assert(this == getPrimaryContext() && in setMustBuildLookupTable()
H A DDependentDiagnostic.h180 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DASTConsumers.cpp83 if (DC == DC->getPrimaryContext()) in print()
87 << DC->getPrimaryContext() << "\n"; in print()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaLookup.cpp184 Common = Common->getPrimaryContext(); in addUsingDirective()
199 DC->getPrimaryContext(), in getNamespacesFor()
2445 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()
3495 if (Visited.visitedContext(Ctx->getPrimaryContext())) in LookupVisibleDecls()
4255 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4260 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
H A DSemaAccess.cpp266 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
267 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
H A DSema.cpp1366 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
1372 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
H A DSemaDecl.cpp524 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
544 DC = DC->getPrimaryContext(); in findRecordWithDependentBasesOfEnclosingMethod()
1413 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1416 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Symbol/
H A DClangASTImporter.cpp1053 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriter.cpp3970 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
4157 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
4162 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
4194 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
5218 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
6242 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
H A DASTWriterDecl.cpp321 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1180 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
H A DASTReaderDecl.cpp4008 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
H A DASTReader.cpp7531 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()