| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTImporterLookupTable.cpp | 128 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 D | DeclBase.cpp | 1400 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 D | ExternalASTMerger.cpp | 81 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 D | ASTDumper.cpp | 58 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
|
| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclLookups.h | 76 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups() 90 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
|
| H A D | DependentDiagnostic.h | 181 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
|
| H A D | DeclBase.h | 2219 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 D | ASTConsumers.cpp | 87 if (DC == DC->getPrimaryContext()) in print() 91 << DC->getPrimaryContext() << "\n"; in print()
|
| /src/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | InterpreterUtils.cpp | 86 PrimaryWithin = Within->getPrimaryContext(); in LookupNamed()
|
| H A D | IncrementalParser.cpp | 390 if (StoredDeclsMap *Map = MostRecentTU->getPrimaryContext()->getLookupPtr()) { in CleanUpPTU()
|
| /src/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | CxxModuleHandler.cpp | 149 return DC->getPrimaryContext(); in getEqualLocalDeclContext()
|
| H A D | ClangASTImporter.cpp | 1367 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 191 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 D | SemaAccess.cpp | 286 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 287 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
|
| H A D | Sema.cpp | 2150 Ctx = Ctx->getPrimaryContext(); in getScopeForContext() 2156 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
|
| H A D | SemaDecl.cpp | 562 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 D | ASTWriter.cpp | 4163 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 D | ASTWriterDecl.cpp | 406 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl() 1389 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
|
| H A D | ASTReaderDecl.cpp | 3288 return TU->getPrimaryContext(); in getPrimaryContextForMerging() 4330 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
|
| H A D | ASTReader.cpp | 8099 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()
|