Home | History | Annotate | Download | only in Sema

Lines Matching refs:DeclContext

57     const DeclContext *Nominated;
58 const DeclContext *CommonAncestor;
61 UnqualUsingEntry(const DeclContext *Nominated,
62 const DeclContext *CommonAncestor)
66 const DeclContext *getCommonAncestor() const {
70 const DeclContext *getNominatedNamespace() const {
80 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) {
84 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) {
96 llvm::SmallPtrSet<DeclContext*, 8> visited;
106 DeclContext *InnermostFileDC = InnermostFileScope->getEntity();
113 DeclContext *Ctx = S->getEntity();
130 void visit(DeclContext *DC, DeclContext *EffectiveDC) {
140 void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) {
141 DeclContext *NS = UD->getNominatedNamespace();
152 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) {
153 SmallVector<DeclContext*,4> queue;
156 DeclContext *NS = UD->getNominatedNamespace();
177 void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) {
180 DeclContext *Common = UD->getNominatedNamespace();
198 getNamespacesFor(DeclContext *DC) const {
340 static DeclContext *getContextForScopeMatching(Decl *D) {
344 DeclContext *DC = D->getLexicalDeclContext();
478 for (DeclContext::lookup_iterator DI = I->Decls.begin(),
616 const DeclContext *DC) {
665 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) {
673 DeclContext::lookup_const_result DR = DC->lookup(R.getLookupName());
674 for (DeclContext::lookup_const_iterator I = DR.begin(), E = DR.end(); I != E;
760 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) {
782 if (DeclContext *Ctx = S->getEntity())
794 static std::pair<DeclContext *, bool> findOuterContext(Scope *S) {
795 DeclContext *DC = S->getEntity();
796 DeclContext *Lexical = nullptr;
841 DeclContext *Semantic = DC;
886 if (DeclContext *DC = PreS->getEntity())
919 DeclContext *OutsideOfTemplateParamDC = nullptr;
925 DeclContext *Ctx = S->getEntity();
980 DeclContext *OuterCtx;
1024 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) {
1075 // FIXME: Cache this sorted list in Scope structure, and DeclContext, so we
1110 DeclContext *Ctx = S->getEntity();
1123 DeclContext *OuterCtx;
1205 DeclContext *Context = Entity->getDeclContext();
1375 // Compute the DeclContext, if we need it.
1376 DeclContext *DC = nullptr;
1387 // Match based on DeclContext.
1388 DeclContext *LastDC
1451 DeclContext *StartDC) {
1454 DeclContext::udir_range UsingDirectives = StartDC->using_directives();
1458 llvm::SmallPtrSet<DeclContext*, 8> Visited;
1597 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx,
1729 DeclContext::lookup_iterator FirstD = FirstPath->Decls.begin();
1730 DeclContext::lookup_iterator CurrentD = Path->Decls.begin();
1770 DeclContext::lookup_result DR = Paths.front().Decls;
1771 for (DeclContext::lookup_iterator I = DR.begin(), E = DR.end(); I != E; ++I) {
1808 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) {
1850 DeclContext::lookup_iterator Found = Paths->front().Decls.begin();
1932 DeclContext *Ctx) {
1935 // We don't use DeclContext::getEnclosingNamespaceContext() as this may
1975 DeclContext *Ctx = ClassTemplate->getDeclContext();
2021 DeclContext *Ctx = Class->getDeclContext();
2047 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext();
2084 DeclContext *BaseCtx = BaseDecl->getDeclContext();
2167 DeclContext *Ctx = Enum->getDeclContext();
2469 DeclContext::lookup_result R = RD->lookup(Name);
2578 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) {
2823 DeclContext::lookup_result R = (*NS)->lookup(Name);
2824 for (DeclContext::lookup_iterator I = R.begin(), E = R.end(); I != E;
2836 DeclContext *LexDC = DI->getLexicalDeclContext();
2885 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
2892 bool visitedContext(DeclContext *Ctx) {
2896 bool alreadyVisitedContext(DeclContext *Ctx) {
2974 static void LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result,
3128 DeclContext *Entity = nullptr;
3134 DeclContext *OuterCtx = findOuterContext(S).first; // FIXME
3136 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx);
3182 LookupVisibleDecls(const_cast<DeclContext *>(UI->getNominatedNamespace()),
3218 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind,
3278 DeclContext *MemberContext,
3339 DeclContext *MemberContext,
3352 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
3393 DeclContext* DeclCtx;
3398 typedef SmallVector<DeclContext*, 4> DeclContextList;
3414 static DeclContextList buildContextChain(DeclContext *Start);
3422 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
3425 /// \brief Add the DeclContext (a namespace or record) to the set, computing
3427 void addNameSpecifier(DeclContext *Ctx);
3457 /// The pointer value being set to the current DeclContext indicates
3465 DeclContext *MemberContext;
3476 DeclContext *Ctx, bool InBaseClass) {
3621 DeclContext *TempMemberContext = MemberContext;
3671 DeclContext *Ctx = NSI.DeclCtx;
3743 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec)
3765 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()),
3771 DeclContext *Start) -> DeclContextList {
3774 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr;
3822 DeclContext *Ctx) {
3828 // Eliminate common elements from the two DeclContext chains.
3893 DeclContext *MemberContext,
4164 DeclContext *MemberContext,
4237 DeclContext *QualifiedDC = MemberContext;
4521 // unless the method being corrected--or the current DeclContext, if the