| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTImporterLookupTable.cpp | 114 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 D | DeclBase.cpp | 1224 if (getPrimaryContext() != this) in Encloses() 1225 return getPrimaryContext()->Encloses(DC); in Encloses() 1229 DC->getPrimaryContext() == this) in Encloses() 1243 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext 1581 ND->getDeclContext()->getPrimaryContext()-> in addDecl() 1589 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal() 1821 return Ctx->getPrimaryContext(); in getEnclosingNamespaceContext() 1867 getParent()->getPrimaryContext() in makeDeclVisibleInContextWithFlags() 1900 getParent()->getPrimaryContext()-> in makeDeclVisibleInContextWithFlags() 1963 assert(getPrimaryContext() == this && in CreateStoredDeclsMap() [all …]
|
| H A D | ExternalASTMerger.cpp | 81 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 D | ASTDumper.cpp | 30 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | ConfusableIdentifierCheck.cpp | 97 const DeclContext *DC0 = ND0->getDeclContext()->getPrimaryContext(); in mayShadowImpl() 98 const DeclContext *DC1 = ND1->getDeclContext()->getPrimaryContext(); in mayShadowImpl() 126 const DeclContext *DC0 = ND0->getDeclContext()->getPrimaryContext(); in mayShadow() 127 const DeclContext *DC1 = ND1->getDeclContext()->getPrimaryContext(); in mayShadow()
|
| /llvm-project-15.0.7/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 | DeclBase.h | 2029 return DC && this->getPrimaryContext() == DC->getPrimaryContext(); 2056 DeclContext *getPrimaryContext(); 2057 const DeclContext *getPrimaryContext() const { 2058 return const_cast<DeclContext*>(this)->getPrimaryContext(); 2460 assert(this == getPrimaryContext() &&
|
| H A D | DependentDiagnostic.h | 179 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr()); in ddiags()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ASTConsumers.cpp | 87 if (DC == DC->getPrimaryContext()) in print() 91 << DC->getPrimaryContext() << "\n"; in print()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | CxxModuleHandler.cpp | 148 return DC->getPrimaryContext(); in getEqualLocalDeclContext()
|
| H A D | ClangASTImporter.cpp | 1132 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
|
| /llvm-project-15.0.7/clang/lib/Interpreter/ |
| H A D | IncrementalParser.cpp | 284 if (StoredDeclsMap *Map = FirstTU->getPrimaryContext()->getLookupPtr()) { in CleanUpPTU()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 187 Common = Common->getPrimaryContext(); in addUsingDirective() 202 DC->getPrimaryContext(), in getNamespacesFor() 2916 Namespaces.insert(Ctx->getPrimaryContext()); in CollectEnclosingNamespace() 4098 if (Visited.visitedContext(Ctx->getPrimaryContext())) in lookupInDeclContext() 4862 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain() 4867 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
|
| H A D | SemaAccess.cpp | 278 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 279 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
|
| H A D | Sema.cpp | 2060 Ctx = Ctx->getPrimaryContext(); in getScopeForContext() 2066 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
|
| H A D | SemaDecl.cpp | 553 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier() 573 DC = DC->getPrimaryContext(); in findRecordWithDependentBasesOfEnclosingMethod() 1573 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext() 1576 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 3857 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable() 4044 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock() 4049 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock() 4081 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock() 5114 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks() 5938 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
|
| H A D | ASTWriterDecl.cpp | 330 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl() 1263 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
|
| H A D | ASTReaderDecl.cpp | 4004 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
|
| H A D | ASTReader.cpp | 7699 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | InternalsManual.rst | 1851 function ``DeclContext::getPrimaryContext`` retrieves the "primary" context for
|