Lines Matching refs:DeclContext
60 const DeclContext *Nominated;
61 const DeclContext *CommonAncestor;
64 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
65 const DeclContext *CommonAncestor) in UnqualUsingEntry()
69 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
73 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
83 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
87 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
101 llvm::SmallPtrSet<DeclContext*, 8> visited;
111 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
118 DeclContext *Ctx = S->getEntity(); in visitScopeChain()
136 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit()
146 void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in visit()
147 DeclContext *NS = UD->getNominatedNamespace(); in visit()
158 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives()
159 SmallVector<DeclContext*, 4> queue; in addUsingDirectives()
162 DeclContext *NS = UD->getNominatedNamespace(); in addUsingDirectives()
183 void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in addUsingDirective()
186 DeclContext *Common = UD->getNominatedNamespace(); in addUsingDirective()
202 getNamespacesFor(DeclContext *DC) const { in getNamespacesFor()
354 static DeclContext *getContextForScopeMatching(Decl *D) { in getContextForScopeMatching()
358 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
645 for (DeclContext::lookup_iterator DI = I->Decls, DE = DI.end(); DI != DE; in addDeclsFromBasePaths()
860 DeclContext *Parent = Context.getTranslationUnitDecl(); in InsertOCLBuiltinDeclarationsFromTable()
1047 const DeclContext *DC) { in DeclareImplicitMemberFunctionsWithName()
1100 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
1109 DeclContext::lookup_result DR = DC->lookup(R.getLookupName()); in LookupDirect()
1202 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) { in CppNamespaceLookup()
1221 if (DeclContext *Ctx = S->getEntity()) in isNamespaceOrTranslationUnitScope()
1229 static DeclContext *findOuterContext(Scope *S) { in findOuterContext()
1231 if (DeclContext *DC = OuterS->getLookupEntity()) in findOuterContext()
1267 if (DeclContext *DC = PreS->getEntity()) in CppLookupName()
1351 if (DeclContext *Ctx = S->getLookupEntity()) { in CppLookupName()
1352 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1391 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) { in CppLookupName()
1477 DeclContext *Ctx = S->getLookupEntity(); in CppLookupName()
1479 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1550 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1790 auto IsEffectivelyFileContext = [](const DeclContext *DC) { in isAcceptableSlow()
1797 DeclContext *DC = D->getLexicalDeclContext(); in isAcceptableSlow()
2243 DeclContext *DC = nullptr; in LookupName()
2255 DeclContext *LastDC in LookupName()
2318 DeclContext *StartDC) { in LookupQualifiedNameInUsingDirectives()
2326 llvm::SmallPtrSet<DeclContext*, 8> Visited; in LookupQualifiedNameInUsingDirectives()
2418 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2434 DeclContext *Context; in LookupQualifiedName()
2436 QualifiedLookupInScope(DeclContext *ctx) : Context(ctx) { in LookupQualifiedName()
2528 auto HasOnlyStaticMembers = [&](DeclContext::lookup_iterator Result) { in LookupQualifiedName()
2529 for (DeclContext::lookup_iterator I = Result, E = I.end(); I != E; ++I) in LookupQualifiedName()
2539 auto HasSameDeclarations = [&](DeclContext::lookup_iterator A, in LookupQualifiedName()
2540 DeclContext::lookup_iterator B) { in LookupQualifiedName()
2660 for (DeclContext::lookup_iterator I = Paths.front().Decls, E = I.end(); in LookupQualifiedName()
2686 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2728 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) { in LookupParsedName()
2807 DeclContext::lookup_iterator Found = Paths->front().Decls; in DiagnoseAmbiguousLookup()
2908 DeclContext *Ctx) { in CollectEnclosingNamespace()
2956 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
2999 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces()
3017 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces()
3060 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
3141 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces()
3462 DeclContext::lookup_result R = RD->lookup(Name); in LookupSpecialMember()
3574 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
3866 DeclContext::lookup_result R = NS->lookup(Name); in ArgumentDependentLookup()
3908 DeclContext *Ctx = E->getDeclContext(); in ArgumentDependentLookup()
3969 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
3976 bool visitedContext(DeclContext *Ctx) { in visitedContext()
3980 bool alreadyVisitedContext(DeclContext *Ctx) { in alreadyVisitedContext()
4091 void lookupVisibleDecls(Sema &SemaRef, DeclContext *Ctx, in lookupVisibleDecls()
4104 void lookupInDeclContext(DeclContext *Ctx, LookupResult &Result, in lookupInDeclContext()
4321 DeclContext *Entity = S->getLookupEntity(); in lookupInScope()
4326 DeclContext *OuterCtx = findOuterContext(S); in lookupInScope()
4328 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in lookupInScope()
4376 const_cast<DeclContext *>(UUE.getNominatedNamespace()), Result, in lookupInScope()
4402 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
4457 DeclContext *MemberContext,
4543 DeclContext *Ctx, bool InBaseClass) { in FoundDecl()
4720 DeclContext *TempMemberContext = MemberContext; in resolveCorrection()
4772 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()
4847 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet()
4859 for (DeclContext *C : llvm::reverse(CurContextChain)) { in NamespaceSpecifierSet()
4865 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()), in NamespaceSpecifierSet()
4871 DeclContext *Start) -> DeclContextList { in buildContextChain()
4874 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4888 for (DeclContext *C : llvm::reverse(DeclChain)) { in buildNestedNameSpecifier()
4902 DeclContext *Ctx) { in addNameSpecifier()
4909 for (DeclContext *C : llvm::reverse(CurContextChain)) { in addNameSpecifier()
4966 DeclContext *MemberContext, in LookupPotentialTypoResult()
5167 DeclContext *MemberContext, bool EnteringContext, in makeTypoCorrectionConsumer()
5239 DeclContext *QualifiedDC = MemberContext; in makeTypoCorrectionConsumer()
5344 DeclContext *MemberContext, in CorrectTypo()
5478 DeclContext *MemberContext, bool EnteringContext, in CorrectTypoDelayed()