Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp1434 if (getPrimaryContext() != this) in Encloses()
1435 return getPrimaryContext()->Encloses(DC); in Encloses()
1439 DC->getPrimaryContext() == this) in Encloses()
1445 if (getPrimaryContext() != this) in LexicallyEncloses()
1446 return getPrimaryContext()->LexicallyEncloses(DC); in LexicallyEncloses()
1450 DC->getPrimaryContext() == this) in LexicallyEncloses()
1464 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() function in DeclContext
1769 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr; in removeDecl()
1813 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1821 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
[all …]
H A DExternalASTMerger.cpp81 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext(); in LookupSameContext()
208 cast<DeclContext>(From)->getPrimaryContext()); in Imported()
228 ToTag->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
235 ToContainer->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
H A DASTDumper.cpp57 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
/freebsd/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.h2243 return DC && this->getPrimaryContext() == DC->getPrimaryContext();
2274 DeclContext *getPrimaryContext();
2275 const DeclContext *getPrimaryContext() const {
2276 return const_cast<DeclContext*>(this)->getPrimaryContext();
2678 assert(this == getPrimaryContext() &&
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DASTConsumers.cpp91 if (DC == DC->getPrimaryContext()) in print()
95 << DC->getPrimaryContext() << "\n"; in print()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreterUtils.cpp86 PrimaryWithin = Within->getPrimaryContext(); in LookupNamed()
H A DIncrementalParser.cpp156 if (StoredDeclsMap *Map = MostRecentTU->getPrimaryContext()->getLookupPtr()) { in CleanUpPTU()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp149 return DC->getPrimaryContext(); in getEqualLocalDeclContext()
H A DClangASTImporter.cpp1390 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable(); in Imported()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp190 Common = Common->getPrimaryContext(); in addUsingDirective()
205 DC->getPrimaryContext(), in getNamespacesFor()
2947 DeclContext *PrimaryCtx = Ctx->getPrimaryContext(); in CollectEnclosingNamespace()
4158 if (Visited.visitedContext(Ctx->getPrimaryContext())) in lookupInDeclContext()
4917 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4922 Chain.push_back(DC->getPrimaryContext()); in buildContextChain()
H A DSemaAccess.cpp284 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
285 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
H A DSemaOpenACCClause.cpp2243 FD->getLexicalDeclContext()->getPrimaryContext()) != DC) { in CheckDeclareClause()
2261 Var->getLexicalDeclContext()->getPrimaryContext()) != DC) { in CheckDeclareClause()
H A DSema.cpp2316 Ctx = Ctx->getPrimaryContext(); in getScopeForContext()
2322 if (Ctx == Entity->getPrimaryContext()) in getScopeForContext()
H A DSemaDecl.cpp580 DC = DC->getPrimaryContext(); in synthesizeCurrentNestedNameSpecifier()
600 DC = DC->getPrimaryContext(); in findRecordWithDependentBasesOfEnclosingMethod()
1580 DeclContext *TargetDC = DC->getPrimaryContext(); in getScopeForDeclContext()
1583 if (ScopeDC->getPrimaryContext() == TargetDC) in getScopeForDeclContext()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp3334 return TU->getPrimaryContext(); in getPrimaryContextForMerging()
4417 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
4430 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
4444 auto *DC = cast<DeclContext>(D)->getPrimaryContext(); in loadDeclUpdateRecords()
H A DASTWriter.cpp4636 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table"); in GenerateNameLookupTable()
4838 UpdatedDeclContexts.insert(DC->getPrimaryContext()); in WriteDeclContextVisibleBlock()
4843 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup(); in WriteDeclContextVisibleBlock()
4887 if (DC->getPrimaryContext() != DC) in WriteDeclContextVisibleBlock()
6457 UpdatedDeclContexts.insert(RD->getPrimaryContext()); in WriteDeclUpdatesBlocks()
7489 assert(DC == DC->getPrimaryContext() && "added to non-primary context"); in AddedVisibleDecl()
H A DASTWriterDecl.cpp559 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext()); in VisitDecl()
1563 D->getParent()->getRedeclContext()->getPrimaryContext()); in VisitNamespaceDecl()
H A DASTReader.cpp8551 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() && in FindExternalVisibleDeclsByName()
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Demangle/
H A DDemangleTestCases.inc9801 {"_ZN5clang11DeclContext17getPrimaryContextEv", "clang::DeclContext::getPrimaryContext()"},