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() const { in getParentFunctionOrMethod()
287 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
327 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
331 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
355 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
368 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation()
385 for (const DeclContext *DC = getDeclContext(); DC; DC = DC->getParent()) { in isInAnonymousNamespace()
395 const DeclContext *DC = getDeclContext(); in isInStdNamespace()
403 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
909 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
915 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
922 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
928 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
995 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
1045 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
1053 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext
1063 bool DeclContext::classof(const Decl *D) { in classof()
1081 DeclContext::~DeclContext() = default;
1089 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
1105 const BlockDecl *DeclContext::getInnermostBlockDecl() const { in getInnermostBlockDecl()
1106 const DeclContext *Ctx = this; in getInnermostBlockDecl()
1117 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
1122 bool DeclContext::isStdNamespace() const { in isStdNamespace()
1138 bool DeclContext::isDependentContext() const { in isDependentContext()
1170 bool DeclContext::isTransparentContext() const { in isTransparentContext()
1177 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
1187 bool DeclContext::isExternCContext() const { in isExternCContext()
1191 const LinkageSpecDecl *DeclContext::getExternCContext() const { in getExternCContext()
1192 const DeclContext *DC = this; in getExternCContext()
1202 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
1206 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
1216 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1285 DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts){ in collectAllContexts()
1302 DeclContext::BuildDeclChain(ArrayRef<Decl *> Decls, in BuildDeclChain()
1325 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1337 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1370 DeclContext::lookup_result
1371 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1382 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1385 DeclContext::lookup_result
1386 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1401 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1407 bool DeclContext::decls_empty() const { in decls_empty()
1414 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1419 bool DeclContext::containsDeclAndLoad(Decl *D) const { in containsDeclAndLoad()
1464 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1515 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1541 void DeclContext::addDecl(Decl *D) { in addDecl()
1549 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1564 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1571 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1600 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1620 if (auto *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1626 DeclContext::lookup_result
1627 DeclContext::lookup(DeclarationName Name) const { in lookup()
1632 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1654 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1679 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1691 DeclContext::lookup_result
1692 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1697 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1714 void DeclContext::loadLazyLocalLexicalLookups() { in loadLazyLocalLexicalLookups()
1716 SmallVector<DeclContext *, 2> Contexts; in loadLazyLocalLexicalLookups()
1724 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1762 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1763 DeclContext *Ctx = this; in getRedeclContext()
1780 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1781 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1788 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1791 DeclContext *DC = this; in getOuterLexicalRecordContext()
1799 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1817 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1818 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1819 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1825 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
1874 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
1908 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
1914 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
1925 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
1965 DeclContext *Parent, in Create()