Lines Matching refs:DeclContext
55 const DeclContext *Nominated;
56 const DeclContext *CommonAncestor;
59 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
60 const DeclContext *CommonAncestor) in UnqualUsingEntry()
64 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
68 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
78 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
82 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
96 llvm::SmallPtrSet<DeclContext*, 8> visited;
106 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
113 DeclContext *Ctx = S->getEntity(); in visitScopeChain()
131 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit()
141 void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in visit()
142 DeclContext *NS = UD->getNominatedNamespace(); in visit()
153 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives()
154 SmallVector<DeclContext*, 4> queue; in addUsingDirectives()
157 DeclContext *NS = UD->getNominatedNamespace(); in addUsingDirectives()
178 void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in addUsingDirective()
181 DeclContext *Common = UD->getNominatedNamespace(); in addUsingDirective()
197 getNamespacesFor(DeclContext *DC) const { in getNamespacesFor()
344 static DeclContext *getContextForScopeMatching(Decl *D) { in getContextForScopeMatching()
348 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
631 for (DeclContext::lookup_iterator DI = I->Decls.begin(), in addDeclsFromBasePaths()
779 const DeclContext *DC) { in DeclareImplicitMemberFunctionsWithName()
832 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
841 DeclContext::lookup_result DR = DC->lookup(R.getLookupName()); in LookupDirect()
935 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) { in CppNamespaceLookup()
954 if (DeclContext *Ctx = S->getEntity()) in isNamespaceOrTranslationUnitScope()
966 static std::pair<DeclContext *, bool> findOuterContext(Scope *S) { in findOuterContext()
967 DeclContext *DC = S->getEntity(); in findOuterContext()
968 DeclContext *Lexical = nullptr; in findOuterContext()
1013 DeclContext *Semantic = DC; in findOuterContext()
1059 if (DeclContext *DC = PreS->getEntity()) in CppLookupName()
1092 DeclContext *OutsideOfTemplateParamDC = nullptr; in CppLookupName()
1098 DeclContext *Ctx = S->getEntity(); in CppLookupName()
1156 DeclContext *OuterCtx; in CppLookupName()
1200 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) { in CppLookupName()
1286 DeclContext *Ctx = S->getEntity(); in CppLookupName()
1299 DeclContext *OuterCtx; in CppLookupName()
1375 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1526 auto IsEffectivelyFileContext = [](const DeclContext *DC) { in isVisibleSlow()
1533 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow()
1797 DeclContext *DC = nullptr; in LookupName()
1809 DeclContext *LastDC in LookupName()
1872 DeclContext *StartDC) { in LookupQualifiedNameInUsingDirectives()
1880 llvm::SmallPtrSet<DeclContext*, 8> Visited; in LookupQualifiedNameInUsingDirectives()
2013 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2029 DeclContext *Context; in LookupQualifiedName()
2031 QualifiedLookupInScope(DeclContext *ctx) : Context(ctx) { in LookupQualifiedName()
2165 DeclContext::lookup_iterator FirstD = FirstPath->Decls.begin(); in LookupQualifiedName()
2166 DeclContext::lookup_iterator CurrentD = Path->Decls.begin(); in LookupQualifiedName()
2230 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2272 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) { in LookupParsedName()
2351 DeclContext::lookup_iterator Found = Paths->front().Decls.begin(); in DiagnoseAmbiguousLookup()
2431 DeclContext *Ctx) { in CollectEnclosingNamespace()
2474 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
2518 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces()
2544 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces()
2582 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
2663 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces()
2972 DeclContext::lookup_result R = RD->lookup(Name); in LookupSpecialMember()
3083 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
3330 DeclContext::lookup_result R = NS->lookup(Name); in ArgumentDependentLookup()
3394 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
3401 bool visitedContext(DeclContext *Ctx) { in visitedContext()
3405 bool alreadyVisitedContext(DeclContext *Ctx) { in alreadyVisitedContext()
3484 static void LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result, in LookupVisibleDecls()
3700 DeclContext *Entity = nullptr; in LookupVisibleDecls()
3706 DeclContext *OuterCtx = findOuterContext(S).first; // FIXME in LookupVisibleDecls()
3708 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in LookupVisibleDecls()
3755 LookupVisibleDecls(const_cast<DeclContext *>(UUE.getNominatedNamespace()), in LookupVisibleDecls()
3793 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
3855 DeclContext *MemberContext,
3941 DeclContext *Ctx, bool InBaseClass) { in FoundDecl()
4101 DeclContext *TempMemberContext = MemberContext; in resolveCorrection()
4153 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()
4228 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet()
4240 for (DeclContext *C : llvm::reverse(CurContextChain)) { in NamespaceSpecifierSet()
4246 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()), in NamespaceSpecifierSet()
4252 DeclContext *Start) -> DeclContextList { in buildContextChain()
4255 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4269 for (DeclContext *C : llvm::reverse(DeclChain)) { in buildNestedNameSpecifier()
4283 DeclContext *Ctx) { in addNameSpecifier()
4290 for (DeclContext *C : llvm::reverse(CurContextChain)) { in addNameSpecifier()
4351 DeclContext *MemberContext, in LookupPotentialTypoResult()
4556 DeclContext *MemberContext, bool EnteringContext, in makeTypoCorrectionConsumer()
4624 DeclContext *QualifiedDC = MemberContext; in makeTypoCorrectionConsumer()
4727 DeclContext *MemberContext, in CorrectTypo()
4863 DeclContext *MemberContext, bool EnteringContext, in CorrectTypoDelayed()