Lines Matching refs:DeclContext

94                          DeclContext *Parent, std::size_t Extra) {  in operator new()
155 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
248 if (auto *AsDC = dyn_cast<DeclContext>(this)) in isTemplated()
254 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
255 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
295 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
299 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
323 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
336 const DeclContext *LDC = getLexicalDeclContext(); in isLexicallyWithinFunctionOrMethod()
348 for (const DeclContext *DC = getDeclContext(); DC; DC = DC->getParent()) { in isInAnonymousNamespace()
365 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
868 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
874 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
881 return static_cast<NAME##Decl *>(const_cast<DeclContext *>(D)); in castFromDeclContext()
887 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
955 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
1003 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
1011 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext
1021 bool DeclContext::classof(const Decl *D) { in classof()
1039 DeclContext::~DeclContext() = default;
1047 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
1057 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
1062 bool DeclContext::isStdNamespace() const { in isStdNamespace()
1078 bool DeclContext::isDependentContext() const { in isDependentContext()
1110 bool DeclContext::isTransparentContext() const { in isTransparentContext()
1119 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
1129 bool DeclContext::isExternCContext() const { in isExternCContext()
1133 const LinkageSpecDecl *DeclContext::getExternCContext() const { in getExternCContext()
1134 const DeclContext *DC = this; in getExternCContext()
1144 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
1148 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
1158 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1223 DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts){ in collectAllContexts()
1240 DeclContext::BuildDeclChain(ArrayRef<Decl *> Decls, in BuildDeclChain()
1263 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1275 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1308 DeclContext::lookup_result
1309 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1320 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1323 DeclContext::lookup_result
1324 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1371 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1377 bool DeclContext::decls_empty() const { in decls_empty()
1384 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1389 bool DeclContext::containsDeclAndLoad(Decl *D) const { in containsDeclAndLoad()
1427 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1481 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1507 void DeclContext::addDecl(Decl *D) { in addDecl()
1515 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1530 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1537 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1566 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1586 if (auto *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1594 DeclContext::lookup_result
1595 DeclContext::lookup(DeclarationName Name) const { in lookup()
1600 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1622 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1647 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1659 DeclContext::lookup_result
1660 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1665 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1682 void DeclContext::loadLazyLocalLexicalLookups() { in loadLazyLocalLexicalLookups()
1684 SmallVector<DeclContext *, 2> Contexts; in loadLazyLocalLexicalLookups()
1692 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1730 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1731 DeclContext *Ctx = this; in getRedeclContext()
1748 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1749 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1756 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1759 DeclContext *DC = this; in getOuterLexicalRecordContext()
1767 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1785 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1786 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1787 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1793 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
1842 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
1888 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
1894 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
1905 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
1945 DeclContext *Parent, in Create()