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()
913 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
919 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
926 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
932 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
999 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
1049 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
1057 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext
1067 bool DeclContext::classof(const Decl *D) { in classof()
1085 DeclContext::~DeclContext() = default;
1093 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
1109 const BlockDecl *DeclContext::getInnermostBlockDecl() const { in getInnermostBlockDecl()
1110 const DeclContext *Ctx = this; in getInnermostBlockDecl()
1121 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
1126 bool DeclContext::isStdNamespace() const { in isStdNamespace()
1142 bool DeclContext::isDependentContext() const { in isDependentContext()
1174 bool DeclContext::isTransparentContext() const { in isTransparentContext()
1181 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
1191 bool DeclContext::isExternCContext() const { in isExternCContext()
1195 const LinkageSpecDecl *DeclContext::getExternCContext() const { in getExternCContext()
1196 const DeclContext *DC = this; in getExternCContext()
1206 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
1210 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
1220 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1290 void collectAllContextsImpl(T *Self, SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContextsImpl()
1297 void DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContexts()
1311 DeclContext::BuildDeclChain(ArrayRef<Decl *> Decls, in BuildDeclChain()
1334 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1346 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1379 DeclContext::lookup_result
1380 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1391 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1394 DeclContext::lookup_result
1395 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1410 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1416 bool DeclContext::decls_empty() const { in decls_empty()
1423 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1428 bool DeclContext::containsDeclAndLoad(Decl *D) const { in containsDeclAndLoad()
1473 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1524 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1550 void DeclContext::addDecl(Decl *D) { in addDecl()
1558 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1573 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1580 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1609 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1629 if (auto *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1635 DeclContext::lookup_result
1636 DeclContext::lookup(DeclarationName Name) const { in lookup()
1641 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1663 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1688 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1700 DeclContext::lookup_result
1701 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1706 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1723 void DeclContext::loadLazyLocalLexicalLookups() { in loadLazyLocalLexicalLookups()
1725 SmallVector<DeclContext *, 2> Contexts; in loadLazyLocalLexicalLookups()
1733 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1771 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1772 DeclContext *Ctx = this; in getRedeclContext()
1789 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1790 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1797 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1800 DeclContext *DC = this; in getOuterLexicalRecordContext()
1808 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1826 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1827 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1828 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1834 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
1883 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
1917 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
1923 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
1934 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
1974 DeclContext *Parent, in Create()