Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/lib/AST/
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()
122 auto DCI = LookupTable.find(DC->getPrimaryContext()); in lookup()
135 auto DCI = LookupTable.find(DC->getPrimaryContext()); in dump()
153 StringRef Primary = DC->getPrimaryContext() ? " primary" : ""; in dump()
DDeclBase.cpp1212 if (getPrimaryContext() != this) in Encloses()
1213 return getPrimaryContext()->Encloses(DC); in Encloses()
1216 if (DC->getPrimaryContext() == this) in Encloses()
1221 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1542 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr; in removeDecl()
1585 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1593 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1605 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()
1674 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1739 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
[all …]
DExternalASTMerger.cpp83 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()
DASTDumper.cpp30 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/external/clang/lib/AST/
DDeclBase.cpp982 if (getPrimaryContext() != this) in Encloses()
983 return getPrimaryContext()->Encloses(DC); in Encloses()
986 if (DC->getPrimaryContext() == this) in Encloses()
991 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1259 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr; in removeDecl()
1300 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1308 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1346 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC"); in buildLookup()
1411 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1473 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
[all …]
/external/llvm-project/clang/include/clang/AST/
DDeclLookups.h76 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
90 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
DDeclBase.h1940 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()
1961 DeclContext *getPrimaryContext();
1962 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function
1963 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()
2365 assert(this == getPrimaryContext() && in setMustBuildLookupTable()
DDependentDiagnostic.h179 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/external/clang/include/clang/AST/
DDeclLookups.h72 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
93 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
DDeclBase.h1331 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); in Equals()
1352 DeclContext *getPrimaryContext();
1353 const DeclContext *getPrimaryContext() const { in getPrimaryContext() function
1354 return const_cast<DeclContext*>(this)->getPrimaryContext(); in getPrimaryContext()
1742 assert(this == getPrimaryContext() && in setMustBuildLookupTable()
DDependentDiagnostic.h178 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
/external/llvm-project/clang/lib/Frontend/
DASTConsumers.cpp84 if (DC == DC->getPrimaryContext()) in print()
88 << DC->getPrimaryContext() << "\n"; in print()
/external/clang/lib/Frontend/
DASTConsumers.cpp83 if (DC == DC->getPrimaryContext()) in print()
87 << DC->getPrimaryContext() << "\n"; in print()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DCxxModuleHandler.cpp143 return DC->getPrimaryContext(); in getEqualLocalDeclContext()
DClangASTImporter.cpp1143 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
/external/clang/lib/Sema/
DSema.cpp1106 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
1112 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
DSemaLookup.cpp186 Common = Common->getPrimaryContext(); in addUsingDirective()
203 DC->getPrimaryContext(), in getNamespacesFor()
2410 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()
3443 if (Visited.visitedContext(Ctx->getPrimaryContext())) in LookupVisibleDecls()
4170 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4175 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
DSemaAccess.cpp265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
/external/llvm-project/clang/lib/Sema/
DSemaLookup.cpp186 Common = Common->getPrimaryContext(); in addUsingDirective()
201 DC->getPrimaryContext(), in getNamespacesFor()
2618 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace()
3748 if (Visited.visitedContext(Ctx->getPrimaryContext())) in lookupInDeclContext()
4485 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4490 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
DSemaAccess.cpp264 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
265 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
DSema.cpp1848 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
1854 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
/external/clang/lib/Serialization/
DASTWriter.cpp3537 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
3724 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
3729 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
3761 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
4687 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
5686 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
DASTWriterDecl.cpp313 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1092 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
/external/llvm-project/clang/lib/Serialization/
DASTWriter.cpp3678 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
3865 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
3870 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
3902 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
4999 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
5964 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
DASTWriterDecl.cpp328 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1251 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()

12