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(const DeclContext *DC) const { in getNamespacesFor()
354 static const DeclContext *getContextForScopeMatching(const Decl *D) { in getContextForScopeMatching()
358 if (const DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
657 for (DeclContext::lookup_iterator DI = I->Decls, DE = DI.end(); DI != DE; in addDeclsFromBasePaths()
872 DeclContext *Parent = Context.getTranslationUnitDecl(); in InsertOCLBuiltinDeclarationsFromTable()
1061 const DeclContext *DC) { in DeclareImplicitMemberFunctionsWithName()
1114 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
1123 DeclContext::lookup_result DR = DC->lookup(R.getLookupName()); in LookupDirect()
1215 const DeclContext *NS, in CppNamespaceLookup()
1235 if (DeclContext *Ctx = S->getEntity()) in isNamespaceOrTranslationUnitScope()
1243 static DeclContext *findOuterContext(Scope *S) { in findOuterContext()
1245 if (DeclContext *DC = OuterS->getLookupEntity()) in findOuterContext()
1281 if (DeclContext *DC = PreS->getEntity()) in CppLookupName()
1364 if (DeclContext *Ctx = S->getLookupEntity()) { in CppLookupName()
1365 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1404 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) { in CppLookupName()
1490 DeclContext *Ctx = S->getLookupEntity(); in CppLookupName()
1492 DeclContext *OuterCtx = findOuterContext(S); in CppLookupName()
1563 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1803 auto IsEffectivelyFileContext = [](const DeclContext *DC) { in isAcceptableSlow()
1810 DeclContext *DC = D->getLexicalDeclContext(); in isAcceptableSlow()
2246 DeclContext *DC = nullptr; in LookupName()
2258 DeclContext *LastDC in LookupName()
2321 DeclContext *StartDC) { in LookupQualifiedNameInUsingDirectives()
2329 llvm::SmallPtrSet<DeclContext*, 8> Visited; in LookupQualifiedNameInUsingDirectives()
2421 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2437 DeclContext *Context; in LookupQualifiedName()
2439 QualifiedLookupInScope(DeclContext *ctx) in LookupQualifiedName()
2532 auto HasOnlyStaticMembers = [&](DeclContext::lookup_iterator Result) { in LookupQualifiedName()
2533 for (DeclContext::lookup_iterator I = Result, E = I.end(); I != E; ++I) in LookupQualifiedName()
2543 auto HasSameDeclarations = [&](DeclContext::lookup_iterator A, in LookupQualifiedName()
2544 DeclContext::lookup_iterator B) { in LookupQualifiedName()
2664 for (DeclContext::lookup_iterator I = Paths.front().Decls, E = I.end(); in LookupQualifiedName()
2690 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2732 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) { in LookupParsedName()
2811 DeclContext::lookup_iterator Found = Paths->front().Decls; in DiagnoseAmbiguousLookup()
2873 DeclContext *DC = nullptr; in DiagnoseAmbiguousLookup()
2924 DeclContext *Ctx) { in CollectEnclosingNamespace()
2972 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
3016 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces()
3034 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces()
3077 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
3158 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces()
3479 DeclContext::lookup_result R = RD->lookup(Name); in LookupSpecialMember()
3591 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
3883 DeclContext::lookup_result R = NS->lookup(Name); in ArgumentDependentLookup()
3927 DeclContext *Ctx = E->getDeclContext(); in ArgumentDependentLookup()
3988 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
3995 bool visitedContext(DeclContext *Ctx) { in visitedContext()
3999 bool alreadyVisitedContext(DeclContext *Ctx) { in alreadyVisitedContext()
4110 void lookupVisibleDecls(Sema &SemaRef, DeclContext *Ctx, in lookupVisibleDecls()
4123 void lookupInDeclContext(DeclContext *Ctx, LookupResult &Result, in lookupInDeclContext()
4339 DeclContext *Entity = S->getLookupEntity(); in lookupInScope()
4344 DeclContext *OuterCtx = findOuterContext(S); in lookupInScope()
4346 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in lookupInScope()
4394 const_cast<DeclContext *>(UUE.getNominatedNamespace()), Result, in lookupInScope()
4420 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
4475 DeclContext *MemberContext,
4561 DeclContext *Ctx, bool InBaseClass) { in FoundDecl()
4738 DeclContext *TempMemberContext = MemberContext; in resolveCorrection()
4790 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()
4865 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet()
4877 for (DeclContext *C : llvm::reverse(CurContextChain)) { in NamespaceSpecifierSet()
4883 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()), in NamespaceSpecifierSet()
4889 DeclContext *Start) -> DeclContextList { in buildContextChain()
4892 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4906 for (DeclContext *C : llvm::reverse(DeclChain)) { in buildNestedNameSpecifier()
4920 DeclContext *Ctx) { in addNameSpecifier()
4927 for (DeclContext *C : llvm::reverse(CurContextChain)) { in addNameSpecifier()
4984 DeclContext *MemberContext, in LookupPotentialTypoResult()
5185 DeclContext *MemberContext, bool EnteringContext, in makeTypoCorrectionConsumer()
5257 DeclContext *QualifiedDC = MemberContext; in makeTypoCorrectionConsumer()
5362 DeclContext *MemberContext, in CorrectTypo()
5496 DeclContext *MemberContext, bool EnteringContext, in CorrectTypoDelayed()