Searched refs:getPrimaryContext (Results 1 - 18 of 18) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp90 DeclContext *DC = ND->getDeclContext()->getPrimaryContext();
92 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext();
99 DeclContext *DC = ND->getDeclContext()->getPrimaryContext();
101 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext();
108 auto DCI = LookupTable.find(DC->getPrimaryContext());
121 auto DCI = LookupTable.find(DC->getPrimaryContext());
139 StringRef Primary = DC->getPrimaryContext() ? " primary" : "";
H A DDeclBase.cpp1211 if (getPrimaryContext() != this)
1212 return getPrimaryContext()->Encloses(DC);
1215 if (DC->getPrimaryContext() == this)
1220 DeclContext *DeclContext::getPrimaryContext() { function in class:DeclContext
1541 StoredDeclsMap *Map = DC->getPrimaryContext()->LookupPtr;
1584 ND->getDeclContext()->getPrimaryContext()->
1592 ND->getDeclContext()->getPrimaryContext()->
1604 assert(this == getPrimaryContext() && "buildLookup called on non-primary DC");
1673 const DeclContext *PrimaryContext = getPrimaryContext();
1738 DeclContext *PrimaryContext = getPrimaryContext();
[all...]
H A DExternalASTMerger.cpp83 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext();
211 cast<DeclContext>(From)->getPrimaryContext());
233 ToTag->getPrimaryContext()->setMustBuildLookupTable();
240 ToContainer->getPrimaryContext()->setMustBuildLookupTable();
H A DASTDumper.cpp30 const DeclContext *Primary = DC->getPrimaryContext();
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DDeclLookups.h76 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext();
90 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext();
H A DDependentDiagnostic.h179 = static_cast<DependentStoredDeclsMap*>(getPrimaryContext()->getLookupPtr());
H A DDeclBase.h1941 return DC && this->getPrimaryContext() == DC->getPrimaryContext();
1956 /// getPrimaryContext - There may be many different
1962 DeclContext *getPrimaryContext();
1963 const DeclContext *getPrimaryContext() const { function in class:clang::DeclContext
1964 return const_cast<DeclContext*>(this)->getPrimaryContext();
2366 assert(this == getPrimaryContext() &&
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DASTConsumers.cpp84 if (DC == DC->getPrimaryContext())
88 << DC->getPrimaryContext() << "\n";
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp142 return DC->getPrimaryContext();
H A DClangASTImporter.cpp1164 to_tag_decl->getPrimaryContext()->setMustBuildLookupTable();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp186 Common = Common->getPrimaryContext();
201 DC->getPrimaryContext(),
2602 Namespaces.insert(Ctx->getPrimaryContext());
3704 if (Visited.visitedContext(Ctx->getPrimaryContext()))
4441 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr;
4446 Chain.push_back(DC->getPrimaryContext());
H A DSemaAccess.cpp264 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext();
265 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext();
H A DSema.cpp1795 Ctx = Ctx->getPrimaryContext();
1801 if (Ctx == Entity->getPrimaryContext())
H A DSemaDecl.cpp530 DC = DC->getPrimaryContext();
550 DC = DC->getPrimaryContext();
1511 DeclContext *TargetDC = DC->getPrimaryContext();
1514 if (ScopeDC->getPrimaryContext() == TargetDC)
/freebsd-13-stable/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp3677 assert(DC == DC->getPrimaryContext() && "only primary DC has lookup table");
3864 UpdatedDeclContexts.insert(DC->getPrimaryContext());
3869 StoredDeclsMap *Map = DC->getPrimaryContext()->buildLookup();
3901 if (DC->getPrimaryContext() != DC)
5004 UpdatedDeclContexts.insert(RD->getPrimaryContext());
5869 assert(DC == DC->getPrimaryContext() && "added to non-primary context");
H A DASTWriterDecl.cpp327 Writer.UpdatedDeclContexts.insert(NS->getPrimaryContext());
1255 D->getParent()->getRedeclContext()->getPrimaryContext());
H A DASTReaderDecl.cpp4198 auto *DC = cast<DeclContext>(D)->getPrimaryContext();
H A DASTReader.cpp7592 assert(DC->hasExternalVisibleStorage() && DC == DC->getPrimaryContext() &&

Completed in 410 milliseconds