Lines Matching refs:DeclContext
58 const DeclContext *Nominated;
59 const DeclContext *CommonAncestor;
62 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
63 const DeclContext *CommonAncestor) in UnqualUsingEntry()
67 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
71 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
81 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
85 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
99 llvm::SmallPtrSet<DeclContext*, 8> visited;
109 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
116 DeclContext *Ctx = S->getEntity(); in visitScopeChain()
134 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit()
144 void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in visit()
145 DeclContext *NS = UD->getNominatedNamespace(); in visit()
156 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives()
157 SmallVector<DeclContext*, 4> queue; in addUsingDirectives()
160 DeclContext *NS = UD->getNominatedNamespace(); in addUsingDirectives()
181 void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in addUsingDirective()
184 DeclContext *Common = UD->getNominatedNamespace(); in addUsingDirective()
200 getNamespacesFor(DeclContext *DC) const { in getNamespacesFor()
352 static DeclContext *getContextForScopeMatching(Decl *D) { in getContextForScopeMatching()
356 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
642 for (DeclContext::lookup_iterator DI = I->Decls, DE = DI.end(); DI != DE; in addDeclsFromBasePaths()
857 DeclContext *Parent = Context.getTranslationUnitDecl(); in InsertOCLBuiltinDeclarationsFromTable()
1044 const DeclContext *DC) { in DeclareImplicitMemberFunctionsWithName()
1097 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
1106 DeclContext::lookup_result DR = DC->lookup(R.getLookupName()); in LookupDirect()
1200 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) { in CppNamespaceLookup()
1219 if (DeclContext *Ctx = S->getEntity()) in isNamespaceOrTranslationUnitScope()
1227 static DeclContext *findOuterContext(Scope *S) { in findOuterContext()
1229 if (DeclContext *DC = OuterS->getLookupEntity()) in findOuterContext()
1265 if (DeclContext *DC = PreS->getEntity()) in CppLookupName()
1349 if (DeclContext *Ctx = S->getLookupEntity()) { in CppLookupName()
1350 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1389 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) { in CppLookupName()
1475 DeclContext *Ctx = S->getLookupEntity(); in CppLookupName()
1477 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1548 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1790 auto IsEffectivelyFileContext = [](const DeclContext *DC) { in isAcceptableSlow()
1797 DeclContext *DC = D->getLexicalDeclContext(); in isAcceptableSlow()
2232 DeclContext *DC = nullptr; in LookupName()
2244 DeclContext *LastDC in LookupName()
2307 DeclContext *StartDC) { in LookupQualifiedNameInUsingDirectives()
2315 llvm::SmallPtrSet<DeclContext*, 8> Visited; in LookupQualifiedNameInUsingDirectives()
2407 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2423 DeclContext *Context; in LookupQualifiedName()
2425 QualifiedLookupInScope(DeclContext *ctx) : Context(ctx) { in LookupQualifiedName()
2517 auto HasOnlyStaticMembers = [&](DeclContext::lookup_iterator Result) { in LookupQualifiedName()
2518 for (DeclContext::lookup_iterator I = Result, E = I.end(); I != E; ++I) in LookupQualifiedName()
2528 auto HasSameDeclarations = [&](DeclContext::lookup_iterator A, in LookupQualifiedName()
2529 DeclContext::lookup_iterator B) { in LookupQualifiedName()
2649 for (DeclContext::lookup_iterator I = Paths.front().Decls, E = I.end(); in LookupQualifiedName()
2675 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2717 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) { in LookupParsedName()
2796 DeclContext::lookup_iterator Found = Paths->front().Decls; in DiagnoseAmbiguousLookup()
2897 DeclContext *Ctx) { in CollectEnclosingNamespace()
2945 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
2988 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces()
3006 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces()
3049 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
3130 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces()
3451 DeclContext::lookup_result R = RD->lookup(Name); in LookupSpecialMember()
3563 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
3854 DeclContext::lookup_result R = NS->lookup(Name); in ArgumentDependentLookup()
3896 DeclContext *Ctx = E->getDeclContext(); in ArgumentDependentLookup()
3957 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
3964 bool visitedContext(DeclContext *Ctx) { in visitedContext()
3968 bool alreadyVisitedContext(DeclContext *Ctx) { in alreadyVisitedContext()
4079 void lookupVisibleDecls(Sema &SemaRef, DeclContext *Ctx, in lookupVisibleDecls()
4092 void lookupInDeclContext(DeclContext *Ctx, LookupResult &Result, in lookupInDeclContext()
4309 DeclContext *Entity = S->getLookupEntity(); in lookupInScope()
4314 DeclContext *OuterCtx = findOuterContext(S); in lookupInScope()
4316 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in lookupInScope()
4364 const_cast<DeclContext *>(UUE.getNominatedNamespace()), Result, in lookupInScope()
4390 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
4445 DeclContext *MemberContext,
4531 DeclContext *Ctx, bool InBaseClass) { in FoundDecl()
4708 DeclContext *TempMemberContext = MemberContext; in resolveCorrection()
4760 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()
4835 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet()
4847 for (DeclContext *C : llvm::reverse(CurContextChain)) { in NamespaceSpecifierSet()
4853 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()), in NamespaceSpecifierSet()
4859 DeclContext *Start) -> DeclContextList { in buildContextChain()
4862 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4876 for (DeclContext *C : llvm::reverse(DeclChain)) { in buildNestedNameSpecifier()
4890 DeclContext *Ctx) { in addNameSpecifier()
4897 for (DeclContext *C : llvm::reverse(CurContextChain)) { in addNameSpecifier()
4954 DeclContext *MemberContext, in LookupPotentialTypoResult()
5158 DeclContext *MemberContext, bool EnteringContext, in makeTypoCorrectionConsumer()
5230 DeclContext *QualifiedDC = MemberContext; in makeTypoCorrectionConsumer()
5335 DeclContext *MemberContext, in CorrectTypo()
5469 DeclContext *MemberContext, bool EnteringContext, in CorrectTypoDelayed()