Lines Matching refs:DeclContext
76 DeclContext *Parent, std::size_t Extra) { in operator new()
122 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
199 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
200 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
241 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
245 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
257 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
270 const DeclContext *LDC = getLexicalDeclContext(); in isLexicallyWithinFunctionOrMethod()
282 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace()
300 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
683 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
689 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
696 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
702 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
768 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
814 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
822 bool DeclContext::classof(const Decl *D) { in classof()
840 DeclContext::~DeclContext() { } in ~DeclContext()
848 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
858 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
863 bool DeclContext::isStdNamespace() const { in isStdNamespace()
879 bool DeclContext::isDependentContext() const { in isDependentContext()
911 bool DeclContext::isTransparentContext() const { in isTransparentContext()
920 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
930 bool DeclContext::isExternCContext() const { in isExternCContext()
934 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
938 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
948 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1012 DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts){ in collectAllContexts()
1029 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls, in BuildDeclChain()
1053 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1065 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1098 DeclContext::lookup_result
1099 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1110 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1113 DeclContext::lookup_result
1114 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1162 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1168 bool DeclContext::decls_empty() const { in decls_empty()
1175 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1180 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1226 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1252 void DeclContext::addDecl(Decl *D) { in addDecl()
1260 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1301 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1307 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1334 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1354 if (DeclContext *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1362 DeclContext::lookup_result
1363 DeclContext::lookup(DeclarationName Name) const { in lookup()
1367 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1388 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1412 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1424 DeclContext::lookup_result
1425 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1429 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1437 SmallVector<DeclContext *, 2> Contexts; in noload_lookup()
1453 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1490 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1491 DeclContext *Ctx = this; in getRedeclContext()
1498 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1499 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1506 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1509 DeclContext *DC = this; in getOuterLexicalRecordContext()
1517 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1535 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1536 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1537 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1543 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
1589 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
1635 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
1641 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
1652 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
1692 DeclContext *Parent, in Create()