• Home
  • Raw
  • Download

Lines Matching refs:DeclContext

61     const DeclContext *Nominated;
62 const DeclContext *CommonAncestor;
65 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
66 const DeclContext *CommonAncestor) in UnqualUsingEntry()
70 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
74 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
84 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
88 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
100 llvm::SmallPtrSet<DeclContext*, 8> visited;
110 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
117 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()
202 getNamespacesFor(DeclContext *DC) const { in getNamespacesFor()
345 static DeclContext *getContextForScopeMatching(Decl *D) { in getContextForScopeMatching()
349 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
621 for (DeclContext::lookup_iterator DI = I->Decls.begin(), in addDeclsFromBasePaths()
764 const DeclContext *DC) { in DeclareImplicitMemberFunctionsWithName()
813 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
821 DeclContext::lookup_result DR = DC->lookup(R.getLookupName()); in LookupDirect()
822 for (DeclContext::lookup_iterator I = DR.begin(), E = DR.end(); I != E; in LookupDirect()
907 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) { in CppNamespaceLookup()
926 if (DeclContext *Ctx = S->getEntity()) in isNamespaceOrTranslationUnitScope()
938 static std::pair<DeclContext *, bool> findOuterContext(Scope *S) { in findOuterContext()
939 DeclContext *DC = S->getEntity(); in findOuterContext()
940 DeclContext *Lexical = nullptr; in findOuterContext()
985 DeclContext *Semantic = DC; in findOuterContext()
1030 if (DeclContext *DC = PreS->getEntity()) in CppLookupName()
1063 DeclContext *OutsideOfTemplateParamDC = nullptr; in CppLookupName()
1069 DeclContext *Ctx = S->getEntity(); in CppLookupName()
1124 DeclContext *OuterCtx; in CppLookupName()
1168 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) { in CppLookupName()
1254 DeclContext *Ctx = S->getEntity(); in CppLookupName()
1267 DeclContext *OuterCtx; in CppLookupName()
1405 DeclContext *Context = Entity->getDeclContext(); in getDefiningModule()
1497 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow()
1673 DeclContext *DC = nullptr; in LookupName()
1685 DeclContext *LastDC in LookupName()
1748 DeclContext *StartDC) { in LookupQualifiedNameInUsingDirectives()
1751 DeclContext::udir_range UsingDirectives = StartDC->using_directives(); in LookupQualifiedNameInUsingDirectives()
1755 llvm::SmallPtrSet<DeclContext*, 8> Visited; in LookupQualifiedNameInUsingDirectives()
1892 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
1908 DeclContext *Context; in LookupQualifiedName()
1910 QualifiedLookupInScope(DeclContext *ctx) : Context(ctx) { in LookupQualifiedName()
2040 DeclContext::lookup_iterator FirstD = FirstPath->Decls.begin(); in LookupQualifiedName()
2041 DeclContext::lookup_iterator CurrentD = Path->Decls.begin(); in LookupQualifiedName()
2105 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2147 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) { in LookupParsedName()
2226 DeclContext::lookup_iterator Found = Paths->front().Decls.begin(); in DiagnoseAmbiguousLookup()
2306 DeclContext *Ctx) { in CollectEnclosingNamespace()
2349 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
2393 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces()
2419 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces()
2457 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
2538 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces()
2839 DeclContext::lookup_result R = RD->lookup(Name); in LookupSpecialMember()
2954 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
3197 DeclContext::lookup_result R = NS->lookup(Name); in ArgumentDependentLookup()
3208 DeclContext *LexDC = DI->getLexicalDeclContext(); in ArgumentDependentLookup()
3261 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
3268 bool visitedContext(DeclContext *Ctx) { in visitedContext()
3272 bool alreadyVisitedContext(DeclContext *Ctx) { in alreadyVisitedContext()
3348 static void LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result, in LookupVisibleDecls()
3530 DeclContext *Entity = nullptr; in LookupVisibleDecls()
3536 DeclContext *OuterCtx = findOuterContext(S).first; // FIXME in LookupVisibleDecls()
3538 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in LookupVisibleDecls()
3582 LookupVisibleDecls(const_cast<DeclContext *>(UUE.getNominatedNamespace()), in LookupVisibleDecls()
3618 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
3678 DeclContext *MemberContext,
3769 DeclContext *Ctx, bool InBaseClass) { in FoundDecl()
3930 DeclContext *TempMemberContext = MemberContext; in resolveCorrection()
3982 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()
4057 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet()
4077 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()), in NamespaceSpecifierSet()
4083 DeclContext *Start) -> DeclContextList { in buildContextChain()
4086 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr; in buildContextChain()
4116 DeclContext *Ctx) { in addNameSpecifier()
4185 DeclContext *MemberContext, in LookupPotentialTypoResult()
4388 DeclContext *MemberContext, bool EnteringContext, in makeTypoCorrectionConsumer()
4457 DeclContext *QualifiedDC = MemberContext; in makeTypoCorrectionConsumer()
4560 DeclContext *MemberContext, in CorrectTypo()
4696 DeclContext *MemberContext, bool EnteringContext, in CorrectTypoDelayed()