Lines Matching refs:DeclContext

94                          DeclContext *Parent, std::size_t Extra) {  in operator new()
155 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
258 if (auto *AsDC = dyn_cast<DeclContext>(this)) in isTemplated()
266 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth()
281 const DeclContext *DC = in getTemplateDepth()
286 const DeclContext *Decl::getParentFunctionOrMethod(bool LexicalParent) const { in getParentFunctionOrMethod()
287 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod()
328 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
332 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
356 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
369 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation()
386 for (const DeclContext *DC = getDeclContext(); DC; DC = DC->getParent()) { in isInAnonymousNamespace()
396 const DeclContext *DC = getDeclContext(); in isInStdNamespace()
404 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
915 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
921 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
928 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
934 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
1001 const DeclContext *DC = getLexicalDeclContext(); in isInExportDeclContext()
1010 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
1060 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
1068 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext
1078 bool DeclContext::classof(const Decl *D) { in classof()
1096 DeclContext::~DeclContext() = default;
1104 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
1120 const BlockDecl *DeclContext::getInnermostBlockDecl() const { in getInnermostBlockDecl()
1121 const DeclContext *Ctx = this; in getInnermostBlockDecl()
1132 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
1137 bool DeclContext::isStdNamespace() const { in isStdNamespace()
1153 bool DeclContext::isDependentContext() const { in isDependentContext()
1187 bool DeclContext::isTransparentContext() const { in isTransparentContext()
1194 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
1204 bool DeclContext::isExternCContext() const { in isExternCContext()
1208 const LinkageSpecDecl *DeclContext::getExternCContext() const { in getExternCContext()
1209 const DeclContext *DC = this; in getExternCContext()
1219 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
1223 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
1234 DeclContext *DeclContext::getNonTransparentContext() { in getNonTransparentContext()
1235 DeclContext *DC = this; in getNonTransparentContext()
1243 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1313 void collectAllContextsImpl(T *Self, SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContextsImpl()
1320 void DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContexts()
1334 DeclContext::BuildDeclChain(ArrayRef<Decl *> Decls, in BuildDeclChain()
1357 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1369 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1402 DeclContext::lookup_result
1403 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1414 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1417 DeclContext::lookup_result
1418 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1433 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1439 bool DeclContext::decls_empty() const { in decls_empty()
1446 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1451 bool DeclContext::containsDeclAndLoad(Decl *D) const { in containsDeclAndLoad()
1496 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1551 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1577 void DeclContext::addDecl(Decl *D) { in addDecl()
1585 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1600 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1607 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1636 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1656 if (auto *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1662 DeclContext::lookup_result
1663 DeclContext::lookup(DeclarationName Name) const { in lookup()
1668 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1690 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1715 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1727 DeclContext::lookup_result
1728 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1733 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1750 void DeclContext::loadLazyLocalLexicalLookups() { in loadLazyLocalLexicalLookups()
1752 SmallVector<DeclContext *, 2> Contexts; in loadLazyLocalLexicalLookups()
1760 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1798 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1799 DeclContext *Ctx = this; in getRedeclContext()
1816 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1817 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1824 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1827 DeclContext *DC = this; in getOuterLexicalRecordContext()
1835 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1853 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1854 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1855 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1861 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
1910 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
1944 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
1950 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
1961 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
2002 DeclContext *Parent, in Create()