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()
482 DeclContext::decl_iterator(const_cast<FieldDecl *>(FD))); in isFlexibleArrayMemberLike()
490 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
1003 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
1009 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
1016 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
1075 const DeclContext *DC = getLexicalDeclContext(); in isInExportDeclContext()
1111 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
1148 DeclContext *Decl::getNonTransparentDeclContext() { in getNonTransparentDeclContext()
1178 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
1186 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext
1196 bool DeclContext::classof(const Decl *D) { in classof()
1208 DeclContext::~DeclContext() = default;
1216 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
1232 const BlockDecl *DeclContext::getInnermostBlockDecl() const { in getInnermostBlockDecl()
1233 const DeclContext *Ctx = this; in getInnermostBlockDecl()
1244 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
1249 bool DeclContext::isStdNamespace() const { in isStdNamespace()
1265 bool DeclContext::isDependentContext() const { in isDependentContext()
1299 bool DeclContext::isTransparentContext() const { in isTransparentContext()
1306 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
1316 bool DeclContext::isExternCContext() const { in isExternCContext()
1320 const LinkageSpecDecl *DeclContext::getExternCContext() const { in getExternCContext()
1321 const DeclContext *DC = this; in getExternCContext()
1331 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
1335 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
1346 DeclContext *DeclContext::getNonTransparentContext() { in getNonTransparentContext()
1347 DeclContext *DC = this; in getNonTransparentContext()
1355 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1434 void collectAllContextsImpl(T *Self, SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContextsImpl()
1441 void DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts) { in collectAllContexts()
1455 DeclContext::BuildDeclChain(ArrayRef<Decl *> Decls, in BuildDeclChain()
1478 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1490 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1523 DeclContext::lookup_result
1524 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1535 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1538 DeclContext::lookup_result
1539 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1554 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1560 bool DeclContext::decls_empty() const { in decls_empty()
1567 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1572 bool DeclContext::containsDeclAndLoad(Decl *D) const { in containsDeclAndLoad()
1617 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1672 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1698 void DeclContext::addDecl(Decl *D) { in addDecl()
1706 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1721 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1728 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1757 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1777 if (auto *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1783 DeclContext::lookup_result
1784 DeclContext::lookup(DeclarationName Name) const { in lookup()
1789 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1811 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1836 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1848 DeclContext::lookup_result
1849 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1854 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1871 void DeclContext::loadLazyLocalLexicalLookups() { in loadLazyLocalLexicalLookups()
1873 SmallVector<DeclContext *, 2> Contexts; in loadLazyLocalLexicalLookups()
1881 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1920 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1921 DeclContext *Ctx = this; in getRedeclContext()
1938 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1939 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1946 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1949 DeclContext *DC = this; in getOuterLexicalRecordContext()
1957 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1975 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1976 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1977 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1983 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
2032 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
2066 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
2072 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
2083 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
2124 DeclContext *Parent, in Create()