Lines Matching refs:DeclContext
94 DeclContext *Parent, std::size_t Extra) { in operator new()
155 bool DeclContext::hasValidDeclKind() const { in hasValidDeclKind()
164 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
266 if (auto *AsDC = dyn_cast<DeclContext>(this)) in isTemplated()
275 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth()
290 const DeclContext *DC = in getTemplateDepth()
295 const DeclContext *Decl::getParentFunctionOrMethod(bool LexicalParent) const { in getParentFunctionOrMethod()
296 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod()
336 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
340 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
364 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
377 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation()
394 for (const DeclContext *DC = getDeclContext(); DC; DC = DC->getParent()) { in isInAnonymousNamespace()
404 const DeclContext *DC = getDeclContext(); in isInStdNamespace()
409 const auto *DC = dyn_cast<DeclContext>(this); in isFileContextDecl()
417 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
931 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
937 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
944 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
950 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
1017 const DeclContext *DC = getLexicalDeclContext(); in isInExportDeclContext()
1026 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
1051 DeclContext *Decl::getNonTransparentDeclContext() { in getNonTransparentDeclContext()
1081 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
1089 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext
1099 bool DeclContext::classof(const Decl *D) { in classof()
1117 DeclContext::~DeclContext() = default;
1125 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
1141 const BlockDecl *DeclContext::getInnermostBlockDecl() const { in getInnermostBlockDecl()
1142 const DeclContext *Ctx = this; in getInnermostBlockDecl()
1153 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
1158 bool DeclContext::isStdNamespace() const { in isStdNamespace()
1174 bool DeclContext::isDependentContext() const { in isDependentContext()
1208 bool DeclContext::isTransparentContext() const { in isTransparentContext()
1215 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
1225 bool DeclContext::isExternCContext() const { in isExternCContext()
1229 const LinkageSpecDecl *DeclContext::getExternCContext() const { in getExternCContext()
1230 const DeclContext *DC = this; in getExternCContext()
1240 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
1244 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
1255 DeclContext *DeclContext::getNonTransparentContext() { in getNonTransparentContext()
1256 DeclContext *DC = this; in getNonTransparentContext()
1264 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1343 void collectAllContextsImpl(T *Self, SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContextsImpl()
1350 void DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContexts()
1364 DeclContext::BuildDeclChain(ArrayRef<Decl *> Decls, in BuildDeclChain()
1387 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1399 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1432 DeclContext::lookup_result
1433 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1444 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1447 DeclContext::lookup_result
1448 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1463 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1469 bool DeclContext::decls_empty() const { in decls_empty()
1476 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1481 bool DeclContext::containsDeclAndLoad(Decl *D) const { in containsDeclAndLoad()
1526 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1581 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1607 void DeclContext::addDecl(Decl *D) { in addDecl()
1615 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1630 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1637 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1666 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1686 if (auto *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1692 DeclContext::lookup_result
1693 DeclContext::lookup(DeclarationName Name) const { in lookup()
1698 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1720 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1745 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1757 DeclContext::lookup_result
1758 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1763 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1780 void DeclContext::loadLazyLocalLexicalLookups() { in loadLazyLocalLexicalLookups()
1782 SmallVector<DeclContext *, 2> Contexts; in loadLazyLocalLexicalLookups()
1790 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1829 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1830 DeclContext *Ctx = this; in getRedeclContext()
1847 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1848 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1855 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1858 DeclContext *DC = this; in getOuterLexicalRecordContext()
1866 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1884 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1885 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1886 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1892 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
1941 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
1975 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
1981 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
1992 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
2033 DeclContext *Parent, in Create()