Home | History | Annotate | Download | only in Sema

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 = 0);
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);
555 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext,
579 CurContext,
815 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) {
830 CurContext);
891 if (CheckHiddenResult(R, CurContext, I->first))
932 void ResultBuilder::AddResult(Result R, DeclContext *CurContext,
945 CurContext, Hiding);
957 if (Hiding && CheckHiddenResult(R, CurContext, Hiding))
1251 DeclContext *CurContext;
1254 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext)
1255 : Results(Results), CurContext(CurContext) { }
1265 Results.AddResult(Result, CurContext, Hiding, InBaseClass);
1587 if (SemaRef.CurContext->isDependentContext()) {
1783 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(SemaRef.CurContext))
1786 = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
3030 if (S.CurContext->isFileContext())
3032 if (S.CurContext->isRecord())
3077 DeclContext *CurContext = S.CurContext;
3078 while (isa<BlockDecl>(CurContext))
3079 CurContextCurContext->getParent();
3082 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext);
3109 = getRequiredQualification(S.Context, CurContext,
3241 if (CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext))
3246 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3317 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3388 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3447 DeclContext *CurContext,
3462 CurContext);
3483 CurContext);
3494 AddObjCProperties(*P, AllowCategories, AllowNullaryMethods, CurContext,
3504 CurContext, AddedProperties, Results);
3511 AddObjCProperties(*I, AllowCategories, AllowNullaryMethods, CurContext,
3517 AllowNullaryMethods, CurContext,
3525 AddObjCProperties(*P, AllowCategories, AllowNullaryMethods, CurContext,
3582 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3613 /*AllowNullaryMethods=*/true, CurContext,
3620 AddObjCProperties(*I, true, /*AllowNullaryMethods=*/true, CurContext,
3634 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3682 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3779 Qualifier = getRequiredQualification(Context, CurContext, Enum);
3794 Results.AddResult(R, CurContext, 0, false);
3957 if (isa<BlockDecl>(CurContext)) {
3960 } else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(CurContext))
3962 else if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(CurContext))
3978 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4072 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4096 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4117 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4164 CurContext, 0, false);
4182 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4209 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4378 CurContext, 0, false);
4495 if (isa<ObjCImplDecl>(CurContext))
4497 else if (CurContext->isObjCContainer())
4816 /// \param CurContext the context in which we're performing the lookup that
4828 DeclContext *CurContext,
4858 Results.MaybeAddResult(R, CurContext);
4871 NumSelIdents, CurContext, Selectors, AllowSameLength,
4884 CurContext, Selectors, AllowSameLength, Results, false);
4894 NumSelIdents, CurContext, Selectors, AllowSameLength,
4904 NumSelIdents, CurContext, Selectors, AllowSameLength,
4910 NumSelIdents, CurContext, Selectors, AllowSameLength,
4917 SelIdents, NumSelIdents, CurContext, Selectors,
4923 NumSelIdents, CurContext, Selectors, AllowSameLength,
4930 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
4933 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
4947 AddObjCMethods(Class, true, MK_ZeroArgSelector, 0, 0, CurContext, Selectors,
4958 = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
4961 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
4975 AddObjCMethods(Class, true, MK_OneArgSelector, 0, 0, CurContext,
5044 CodeCompletionDeclConsumer Consumer(Results, CurContext);
5261 CodeCompletionDeclConsumer Consumer(Results, CurContext);
5427 SemaRef.CurContext, Selectors, AtArgumentExpression,
5459 Results.MaybeAddResult(R, SemaRef.CurContext);
5573 CurContext, Selectors, AtArgumentExpression, Results);
5583 AddObjCMethods(*I, true, MK_Any, SelIdents, NumSelIdents, CurContext,
5591 NumSelIdents, CurContext, Selectors, AtArgumentExpression,
5598 AddObjCMethods(*I, true, MK_Any, SelIdents, NumSelIdents, CurContext,
5635 Results.MaybeAddResult(R, CurContext);
5739 static void AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext,
5751 CurContext, 0, false);
5773 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, false,
5793 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, true,
5806 static void AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext,
5820 CurContext, 0, false);
5832 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5858 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5877 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5920 CurContext, 0, false);
5960 CurContext, 0, false);
5980 = dyn_cast_or_null<ObjCContainerDecl>(CurContext);
6000 /*AllowNullaryMethods=*/false, CurContext,
6004 false, /*AllowNullaryMethods=*/false, CurContext,
6022 = dyn_cast_or_null<ObjCContainerDecl>(CurContext);
6062 CurContext, 0, false);
6866 if (CurContext->isObjCContainer()) {
6867 ObjCContainerDecl *OCD = dyn_cast<ObjCContainerDecl>(CurContext);
7090 Results.MaybeAddResult(R, CurContext);