Lines Matching refs:DeclContext
67 DeclContext *Parent, std::size_t Extra) { in operator new()
97 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
174 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
175 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
216 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
220 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
231 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
244 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace()
262 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
643 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
649 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
656 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D)); in castFromDeclContext()
662 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
728 static Decl::Kind getKind(const DeclContext *DC) { return DC->getDeclKind(); } in getKind()
774 Decl *DeclContext::getNonClosureAncestor() { in getNonClosureAncestor()
782 bool DeclContext::classof(const Decl *D) { in classof()
800 DeclContext::~DeclContext() { } in ~DeclContext()
808 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
818 bool DeclContext::isInlineNamespace() const { in isInlineNamespace()
823 bool DeclContext::isStdNamespace() const { in isStdNamespace()
839 bool DeclContext::isDependentContext() const { in isDependentContext()
871 bool DeclContext::isTransparentContext() const { in isTransparentContext()
880 static bool isLinkageSpecContext(const DeclContext *DC, in isLinkageSpecContext()
890 bool DeclContext::isExternCContext() const { in isExternCContext()
894 bool DeclContext::isExternCXXContext() const { in isExternCXXContext()
898 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
908 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
972 DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts){ in collectAllContexts()
989 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls, in BuildDeclChain()
1013 void DeclContext::reconcileExternalVisibleStorage() const { in reconcileExternalVisibleStorage()
1025 DeclContext::LoadLexicalDeclsFromExternalStorage() const { in LoadLexicalDeclsFromExternalStorage()
1065 DeclContext::lookup_result
1066 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC, in SetNoExternalVisibleDeclsForName()
1077 return DeclContext::lookup_result(); in SetNoExternalVisibleDeclsForName()
1080 DeclContext::lookup_result
1081 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC, in SetExternalVisibleDeclsForName()
1129 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1135 bool DeclContext::decls_empty() const { in decls_empty()
1142 bool DeclContext::containsDecl(Decl *D) const { in containsDecl()
1147 void DeclContext::removeDecl(Decl *D) { in removeDecl()
1190 void DeclContext::addHiddenDecl(Decl *D) { in addHiddenDecl()
1216 void DeclContext::addDecl(Decl *D) { in addDecl()
1224 void DeclContext::addDeclInternal(Decl *D) { in addDeclInternal()
1265 StoredDeclsMap *DeclContext::buildLookup() { in buildLookup()
1271 SmallVector<DeclContext *, 2> Contexts; in buildLookup()
1298 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1318 if (DeclContext *InnerCtx = dyn_cast<DeclContext>(D)) in buildLookupImpl()
1326 DeclContext::lookup_result
1327 DeclContext::lookup(DeclarationName Name) const { in lookup()
1331 const DeclContext *PrimaryContext = getPrimaryContext(); in lookup()
1352 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1376 Map = const_cast<DeclContext*>(this)->buildLookup(); in lookup()
1388 DeclContext::lookup_result
1389 DeclContext::noload_lookup(DeclarationName Name) { in noload_lookup()
1393 DeclContext *PrimaryContext = getPrimaryContext(); in noload_lookup()
1401 SmallVector<DeclContext *, 2> Contexts; in noload_lookup()
1417 void DeclContext::localUncachedLookup(DeclarationName Name, in localUncachedLookup()
1454 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1455 DeclContext *Ctx = this; in getRedeclContext()
1462 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
1463 DeclContext *Ctx = this; in getEnclosingNamespaceContext()
1470 RecordDecl *DeclContext::getOuterLexicalRecordContext() { in getOuterLexicalRecordContext()
1473 DeclContext *DC = this; in getOuterLexicalRecordContext()
1481 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const { in InEnclosingNamespaceSetOf()
1499 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) { in makeDeclVisibleInContext()
1500 DeclContext *PrimaryDC = this->getPrimaryContext(); in makeDeclVisibleInContext()
1501 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
1507 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal, in makeDeclVisibleInContextWithFlags()
1553 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) { in makeDeclVisibleInContextImpl()
1599 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const { in operator *()
1605 DeclContext::udir_range DeclContext::using_directives() const { in using_directives()
1616 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const { in CreateStoredDeclsMap()
1656 DeclContext *Parent, in Create()