Lines Matching refs:CurContext

282     bool CheckHiddenResult(Result &R, DeclContext *CurContext,
291 /// \param CurContext the context in which this result will be named.
292 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
299 /// \param CurContext the context in which this result will be named.
305 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
437 /// (\p CurContext) to the target context (\p TargetContext).
441 /// \param CurContext the context where an entity is being named, which is
451 const DeclContext *CurContext,
456 CommonAncestor && !CommonAncestor->Encloses(CurContext);
554 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext,
578 CurContext,
813 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) {
828 CurContext);
889 if (CheckHiddenResult(R, CurContext, I->first))
931 void ResultBuilder::AddResult(Result R, DeclContext *CurContext,
944 CurContext, Hiding);
956 if (Hiding && CheckHiddenResult(R, CurContext, Hiding))
1253 DeclContext *CurContext;
1256 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext)
1257 : Results(Results), CurContext(CurContext) { }
1267 Results.AddResult(Result, CurContext, Hiding, InBaseClass);
1589 if (SemaRef.CurContext->isDependentContext()) {
1785 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(SemaRef.CurContext))
1788 = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
3050 if (S.CurContext->isFileContext())
3052 if (S.CurContext->isRecord())
3097 DeclContext *CurContext = S.CurContext;
3098 while (isa<BlockDecl>(CurContext))
3099 CurContext = CurContext->getParent();
3102 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext);
3125 = getRequiredQualification(S.Context, CurContext,
3255 if (CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext))
3260 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3330 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3400 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3459 DeclContext *CurContext,
3471 CurContext);
3489 CurContext);
3498 AddObjCProperties(P, AllowCategories, AllowNullaryMethods, CurContext,
3504 AddObjCProperties(Cat, AllowCategories, AllowNullaryMethods, CurContext,
3510 AddObjCProperties(I, AllowCategories, AllowNullaryMethods, CurContext,
3516 AllowNullaryMethods, CurContext,
3522 AddObjCProperties(P, AllowCategories, AllowNullaryMethods, CurContext,
3579 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3610 /*AllowNullaryMethods=*/true, CurContext,
3615 AddObjCProperties(I, true, /*AllowNullaryMethods=*/true, CurContext,
3629 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3677 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3777 Qualifier = getRequiredQualification(Context, CurContext, Enum);
3790 Results.AddResult(R, CurContext, nullptr, false);
3940 if (isa<BlockDecl>(CurContext)) {
3943 } else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(CurContext))
3945 else if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(CurContext))
3961 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4055 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4079 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4100 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4148 CurContext, nullptr, false);
4166 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4193 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4353 CurContext, nullptr, false);
4470 if (isa<ObjCImplDecl>(CurContext))
4472 else if (CurContext->isObjCContainer())
4790 /// \param CurContext the context in which we're performing the lookup that
4801 DeclContext *CurContext,
4828 Results.MaybeAddResult(R, CurContext);
4841 CurContext, Selectors, AllowSameLength, Results, false);
4851 CurContext, Selectors, AllowSameLength, Results, false);
4856 CurContext, Selectors, AllowSameLength,
4866 CurContext, Selectors, AllowSameLength,
4872 CurContext, Selectors, AllowSameLength,
4879 SelIdents, CurContext, Selectors,
4885 CurContext, Selectors, AllowSameLength,
4892 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
4895 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
4909 AddObjCMethods(Class, true, MK_ZeroArgSelector, None, CurContext, Selectors,
4920 = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
4923 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
4937 AddObjCMethods(Class, true, MK_OneArgSelector, None, CurContext,
5006 CodeCompletionDeclConsumer Consumer(Results, CurContext);
5218 CodeCompletionDeclConsumer Consumer(Results, CurContext);
5380 SemaRef.CurContext, Selectors, AtArgumentExpression,
5412 Results.MaybeAddResult(R, SemaRef.CurContext);
5530 CurContext, Selectors, AtArgumentExpression, Results);
5538 AddObjCMethods(I, true, MK_Any, SelIdents, CurContext,
5546 CurContext, Selectors, AtArgumentExpression,
5551 AddObjCMethods(I, true, MK_Any, SelIdents, CurContext,
5588 Results.MaybeAddResult(R, CurContext);
5692 static void AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext,
5702 CurContext, nullptr, false);
5724 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, false,
5744 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, true,
5757 static void AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext,
5769 CurContext, nullptr, false);
5781 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5807 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5826 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5864 CurContext, nullptr, false);
5901 CurContext, nullptr, false);
5921 = dyn_cast_or_null<ObjCContainerDecl>(CurContext);
5939 /*AllowNullaryMethods=*/false, CurContext,
5943 false, /*AllowNullaryMethods=*/false, CurContext,
5961 = dyn_cast_or_null<ObjCContainerDecl>(CurContext);
6001 CurContext, nullptr, false);
6801 if (CurContext->isObjCContainer()) {
6802 ObjCContainerDecl *OCD = dyn_cast<ObjCContainerDecl>(CurContext);
7015 Results.MaybeAddResult(R, CurContext);