• Home
  • Raw
  • Download

Lines Matching refs:DeclContext

56     const DeclContext *Nominated;
57 const DeclContext *CommonAncestor;
60 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
61 const DeclContext *CommonAncestor) in UnqualUsingEntry()
65 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
69 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
79 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
83 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
95 llvm::SmallPtrSet<DeclContext*, 8> visited;
105 DeclContext *InnermostFileDC in visitScopeChain()
106 = static_cast<DeclContext*>(InnermostFileScope->getEntity()); in visitScopeChain()
113 DeclContext *Ctx = static_cast<DeclContext*>(S->getEntity()); in visitScopeChain()
132 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit()
142 void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in visit()
143 DeclContext *NS = UD->getNominatedNamespace(); in visit()
154 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives()
155 SmallVector<DeclContext*,4> queue; in addUsingDirectives()
157 DeclContext::udir_iterator I, End; in addUsingDirectives()
160 DeclContext *NS = UD->getNominatedNamespace(); in addUsingDirectives()
182 void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) { in addUsingDirective()
185 DeclContext *Common = UD->getNominatedNamespace(); in addUsingDirective()
203 getNamespacesFor(DeclContext *DC) const { in getNamespacesFor()
454 DeclContext::lookup_iterator DI, DE; in addDeclsFromBasePaths()
598 const DeclContext *DC) { in DeclareImplicitMemberFunctionsWithName()
649 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
657 DeclContext::lookup_const_iterator I, E; in LookupDirect()
744 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) { in CppNamespaceLookup()
766 if (DeclContext *Ctx = static_cast<DeclContext*>(S->getEntity())) in isNamespaceOrTranslationUnitScope()
778 static std::pair<DeclContext *, bool> findOuterContext(Scope *S) { in findOuterContext()
779 DeclContext *DC = static_cast<DeclContext *>(S->getEntity()); in findOuterContext()
780 DeclContext *Lexical = 0; in findOuterContext()
784 Lexical = static_cast<DeclContext *>(OuterS->getEntity()); in findOuterContext()
825 DeclContext *Semantic = DC; in findOuterContext()
849 if (DeclContext *DC = static_cast<DeclContext *>(PreS->getEntity())) in CppLookupName()
879 DeclContext *OutsideOfTemplateParamDC = 0; in CppLookupName()
881 DeclContext *Ctx = static_cast<DeclContext*>(S->getEntity()); in CppLookupName()
911 DeclContext *OuterCtx; in CppLookupName()
1003 DeclContext *Ctx = static_cast<DeclContext *>(S->getEntity()); in CppLookupName()
1016 DeclContext *OuterCtx; in CppLookupName()
1122 static_cast<DeclContext *>(S->getEntity()) in LookupName()
1177 DeclContext *DC = 0; in LookupName()
1189 DeclContext *LastDC in LookupName()
1255 DeclContext *StartDC) { in LookupQualifiedNameInUsingDirectives()
1258 DeclContext::udir_iterator I = StartDC->using_directives_begin(); in LookupQualifiedNameInUsingDirectives()
1259 DeclContext::udir_iterator E = StartDC->using_directives_end(); in LookupQualifiedNameInUsingDirectives()
1264 llvm::SmallPtrSet<DeclContext*, 8> Visited; in LookupQualifiedNameInUsingDirectives()
1404 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
1535 DeclContext::lookup_iterator FirstD = FirstPath->Decls.first; in LookupQualifiedName()
1536 DeclContext::lookup_iterator CurrentD = Path->Decls.first; in LookupQualifiedName()
1576 DeclContext::lookup_iterator I, E; in LookupQualifiedName()
1614 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) { in LookupParsedName()
1658 DeclContext::lookup_iterator Found = Paths->front().Decls.first; in DiagnoseAmbiguousLookup()
1746 DeclContext *Ctx) { in CollectEnclosingNamespace()
1789 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
1834 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces()
1856 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces()
1900 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces()
1981 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces()
2347 DeclContext::lookup_iterator I, E; in LookupSpecialMember()
2451 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
2695 DeclContext::lookup_iterator I, E; in ArgumentDependentLookup()
2701 DeclContext *LexDC = D->getLexicalDeclContext(); in ArgumentDependentLookup()
2747 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
2754 bool visitedContext(DeclContext *Ctx) { in visitedContext()
2758 bool alreadyVisitedContext(DeclContext *Ctx) { in alreadyVisitedContext()
2836 static void LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result, in LookupVisibleDecls()
2852 for (DeclContext::all_lookups_iterator L = Ctx->lookups_begin(), in LookupVisibleDecls()
2855 for (DeclContext::lookup_result R = *L; R.first != R.second; ++R.first) { in LookupVisibleDecls()
2868 DeclContext::udir_iterator I, E; in LookupVisibleDecls()
2986 !Visited.alreadyVisitedContext((DeclContext *)S->getEntity())) || in LookupVisibleDecls()
2987 ((DeclContext *)S->getEntity())->isFunctionOrMethod()) { in LookupVisibleDecls()
3000 DeclContext *Entity = 0; in LookupVisibleDecls()
3005 Entity = (DeclContext *)S->getEntity(); in LookupVisibleDecls()
3006 DeclContext *OuterCtx = findOuterContext(S).first; // FIXME in LookupVisibleDecls()
3008 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in LookupVisibleDecls()
3054 LookupVisibleDecls(const_cast<DeclContext *>(UI->getNominatedNamespace()), in LookupVisibleDecls()
3089 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
3164 virtual void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
3201 DeclContext *Ctx, bool InBaseClass) { in FoundDecl()
3322 DeclContext* DeclCtx;
3326 SpecifierInfo(DeclContext *Ctx, NestedNameSpecifier *NNS, unsigned ED) in SpecifierInfo()
3330 typedef SmallVector<DeclContext*, 4> DeclContextList;
3346 static DeclContextList BuildContextChain(DeclContext *Start);
3351 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext, in NamespaceSpecifierSet()
3383 DeclContextList NamespaceSpecifierSet::BuildContextChain(DeclContext *Start) { in BuildContextChain()
3386 for (DeclContext *DC = Start->getPrimaryContext(); DC != NULL; in BuildContextChain()
3415 DeclContext *Ctx = cast<DeclContext>(ND); in AddNamespace()
3477 DeclContext *MemberContext, in LookupPotentialTypoResult()
3708 DeclContext *MemberContext, in CorrectTypo()
3747 DeclContext *QualifiedDC = MemberContext; in CorrectTypo()
3983 DeclContext *Ctx = NI->DeclCtx; in CorrectTypo()