Lines Matching refs:DeclContext
57 const DeclContext *Nominated;
58 const DeclContext *CommonAncestor;
61 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
62 const DeclContext *CommonAncestor) in UnqualUsingEntry()
66 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
70 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
80 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
84 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
98 llvm::SmallPtrSet<DeclContext*, 8> visited;
108 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
115 DeclContext *Ctx = S->getEntity(); in visitScopeChain()
133 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit()
143 void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in visit()
144 DeclContext *NS = UD->getNominatedNamespace(); in visit()
155 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives()
156 SmallVector<DeclContext*, 4> queue; in addUsingDirectives()
159 DeclContext *NS = UD->getNominatedNamespace(); in addUsingDirectives()
180 void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in addUsingDirective()
183 DeclContext *Common = UD->getNominatedNamespace(); in addUsingDirective()
199 getNamespacesFor(DeclContext *DC) const { in getNamespacesFor()
351 static DeclContext *getContextForScopeMatching(Decl *D) { in getContextForScopeMatching()
355 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
641 for (DeclContext::lookup_iterator DI = I->Decls, DE = DI.end(); DI != DE; in addDeclsFromBasePaths()
856 DeclContext *Parent = Context.getTranslationUnitDecl(); in InsertOCLBuiltinDeclarationsFromTable()
1034 const DeclContext *DC) { in DeclareImplicitMemberFunctionsWithName()
1087 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
1096 DeclContext::lookup_result DR = DC->lookup(R.getLookupName()); in LookupDirect()
1190 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) { in CppNamespaceLookup()
1209 if (DeclContext *Ctx = S->getEntity()) in isNamespaceOrTranslationUnitScope()
1217 static DeclContext *findOuterContext(Scope *S) { in findOuterContext()
1219 if (DeclContext *DC = OuterS->getLookupEntity()) in findOuterContext()
1255 if (DeclContext *DC = PreS->getEntity()) in CppLookupName()
1339 if (DeclContext *Ctx = S->getLookupEntity()) { in CppLookupName()
1340 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1379 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) { in CppLookupName()
1465 DeclContext *Ctx = S->getLookupEntity(); in CppLookupName()
1467 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1538 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1692 auto IsEffectivelyFileContext = [](const DeclContext *DC) { in isVisibleSlow()
1699 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow()
1976 DeclContext *DC = nullptr; in LookupName()
1988 DeclContext *LastDC in LookupName()
2051 DeclContext *StartDC) { in LookupQualifiedNameInUsingDirectives()
2059 llvm::SmallPtrSet<DeclContext*, 8> Visited; in LookupQualifiedNameInUsingDirectives()
2151 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2167 DeclContext *Context; in LookupQualifiedName()
2169 QualifiedLookupInScope(DeclContext *ctx) : Context(ctx) { in LookupQualifiedName()
2261 auto HasOnlyStaticMembers = [&](DeclContext::lookup_iterator Result) { in LookupQualifiedName()
2262 for (DeclContext::lookup_iterator I = Result, E = I.end(); I != E; ++I) in LookupQualifiedName()
2272 auto HasSameDeclarations = [&](DeclContext::lookup_iterator A, in LookupQualifiedName()
2273 DeclContext::lookup_iterator B) { in LookupQualifiedName()
2393 for (DeclContext::lookup_iterator I = Paths.front().Decls, E = I.end(); in LookupQualifiedName()
2419 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2461 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) { in LookupParsedName()
2540 DeclContext::lookup_iterator Found = Paths->front().Decls; in DiagnoseAmbiguousLookup()
2641 DeclContext *Ctx) { in CollectEnclosingNamespace()
2689 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
2732 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces()
2750 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces()
2793 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
2874 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces()
3195 DeclContext::lookup_result R = RD->lookup(Name); in LookupSpecialMember()
3307 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
3592 DeclContext::lookup_result R = NS->lookup(Name); in ArgumentDependentLookup()
3656 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
3663 bool visitedContext(DeclContext *Ctx) { in visitedContext()
3667 bool alreadyVisitedContext(DeclContext *Ctx) { in alreadyVisitedContext()
3778 void lookupVisibleDecls(Sema &SemaRef, DeclContext *Ctx, in lookupVisibleDecls()
3791 void lookupInDeclContext(DeclContext *Ctx, LookupResult &Result, in lookupInDeclContext()
4008 DeclContext *Entity = S->getLookupEntity(); in lookupInScope()
4013 DeclContext *OuterCtx = findOuterContext(S); in lookupInScope()
4015 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in lookupInScope()
4063 const_cast<DeclContext *>(UUE.getNominatedNamespace()), Result, in lookupInScope()
4089 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
4144 DeclContext *MemberContext,
4230 DeclContext *Ctx, bool InBaseClass) { in FoundDecl()
4390 DeclContext *TempMemberContext = MemberContext; in resolveCorrection()
4442 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()
4517 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet()
4529 for (DeclContext *C : llvm::reverse(CurContextChain)) { in NamespaceSpecifierSet()
4535 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()), in NamespaceSpecifierSet()
4541 DeclContext *Start) -> DeclContextList { in buildContextChain()
4544 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4558 for (DeclContext *C : llvm::reverse(DeclChain)) { in buildNestedNameSpecifier()
4572 DeclContext *Ctx) { in addNameSpecifier()
4579 for (DeclContext *C : llvm::reverse(CurContextChain)) { in addNameSpecifier()
4639 DeclContext *MemberContext, in LookupPotentialTypoResult()
4843 DeclContext *MemberContext, bool EnteringContext, in makeTypoCorrectionConsumer()
4915 DeclContext *QualifiedDC = MemberContext; in makeTypoCorrectionConsumer()
5020 DeclContext *MemberContext, in CorrectTypo()
5154 DeclContext *MemberContext, bool EnteringContext, in CorrectTypoDelayed()