Home | History | Annotate | Download | only in Sema

Lines Matching defs:CurContext

276     bool CheckHiddenResult(Result &R, DeclContext *CurContext,
285 /// \param CurContext the context in which this result will be named.
286 void MaybeAddResult(Result R, DeclContext *CurContext = 0);
293 /// \param CurContext the context in which this result will be named.
299 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
431 /// (\p CurContext) to the target context (\p TargetContext).
435 /// \param CurContext the context where an entity is being named, which is
445 DeclContext *CurContext,
450 CommonAncestor && !CommonAncestor->Encloses(CurContext);
549 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext,
572 CurContext,
768 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) {
779 MaybeAddResult(Result(Using->getTargetDecl(), R.Qualifier), CurContext);
840 if (CheckHiddenResult(R, CurContext, I->first))
881 void ResultBuilder::AddResult(Result R, DeclContext *CurContext,
891 AddResult(Result(Using->getTargetDecl(), R.Qualifier), CurContext, Hiding);
903 if (Hiding && CheckHiddenResult(R, CurContext, Hiding))
1195 DeclContext *CurContext;
1198 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext)
1199 : Results(Results), CurContext(CurContext) { }
1208 Results.AddResult(Result, CurContext, Hiding, InBaseClass);
1529 if (SemaRef.CurContext->isDependentContext()) {
1725 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(SemaRef.CurContext))
1728 = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
2935 if (S.CurContext->isFileContext())
2937 if (S.CurContext->isRecord())
2982 DeclContext *CurContext = S.CurContext;
2983 while (isa<BlockDecl>(CurContext))
2984 CurContext = CurContext->getParent();
2987 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext);
3014 = getRequiredQualification(S.Context, CurContext,
3147 if (CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext))
3152 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3223 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3298 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3339 DeclContext *CurContext,
3350 Results.MaybeAddResult(Result(*P, 0), CurContext);
3371 CurContext);
3382 AddObjCProperties(*P, AllowCategories, AllowNullaryMethods, CurContext,
3390 CurContext, AddedProperties, Results);
3397 AddObjCProperties(*I, AllowCategories, AllowNullaryMethods, CurContext,
3403 AllowNullaryMethods, CurContext,
3411 AddObjCProperties(*P, AllowCategories, AllowNullaryMethods, CurContext,
3468 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3499 /*AllowNullaryMethods=*/true, CurContext,
3506 AddObjCProperties(*I, true, /*AllowNullaryMethods=*/true, CurContext,
3520 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3568 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3663 Qualifier = getRequiredQualification(Context, CurContext, Enum);
3679 Results.AddResult(R, CurContext, 0, false);
3842 if (isa<BlockDecl>(CurContext)) {
3845 } else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(CurContext))
3847 else if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(CurContext))
3864 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3958 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3982 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4003 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4049 CurContext, 0, false);
4067 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4094 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4262 Results.AddResult(CodeCompletionResult(Var), CurContext, 0, false);
4371 if (isa<ObjCImplDecl>(CurContext))
4373 else if (CurContext->isObjCContainer())
4679 /// \param CurContext the context in which we're performing the lookup that
4691 DeclContext *CurContext,
4715 Results.MaybeAddResult(R, CurContext);
4728 NumSelIdents, CurContext, Selectors, AllowSameLength,
4742 CurContext, Selectors, AllowSameLength, Results, false);
4748 NumSelIdents, CurContext, Selectors, AllowSameLength,
4758 NumSelIdents, CurContext, Selectors, AllowSameLength,
4764 NumSelIdents, CurContext, Selectors, AllowSameLength,
4771 SelIdents, NumSelIdents, CurContext, Selectors,
4777 NumSelIdents, CurContext, Selectors, AllowSameLength,
4786 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
4789 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
4803 AddObjCMethods(Class, true, MK_ZeroArgSelector, 0, 0, CurContext, Selectors,
4816 = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
4819 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext))
4833 AddObjCMethods(Class, true, MK_OneArgSelector, 0, 0, CurContext,
4898 CodeCompletionDeclConsumer Consumer(Results, CurContext);
5112 CodeCompletionDeclConsumer Consumer(Results, CurContext);
5278 SemaRef.CurContext, Selectors, AtArgumentExpression,
5310 Results.MaybeAddResult(R, SemaRef.CurContext);
5424 CurContext, Selectors, AtArgumentExpression, Results);
5434 AddObjCMethods(*I, true, MK_Any, SelIdents, NumSelIdents, CurContext,
5442 NumSelIdents, CurContext, Selectors, AtArgumentExpression,
5449 AddObjCMethods(*I, true, MK_Any, SelIdents, NumSelIdents, CurContext,
5486 Results.MaybeAddResult(R, CurContext);
5590 static void AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext,
5601 Results.AddResult(Result(Proto, 0), CurContext, 0, false);
5623 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, false,
5643 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, true,
5656 static void AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext,
5669 Results.AddResult(Result(Class, 0), CurContext, 0, false);
5681 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5707 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5726 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5764 Results.AddResult(Result(Category, 0), CurContext, 0, false);
5801 Results.AddResult(Result(Category, 0), CurContext, 0, false);
5821 = dyn_cast_or_null<ObjCContainerDecl>(CurContext);
5840 /*AllowNullaryMethods=*/false, CurContext,
5844 false, /*AllowNullaryMethods=*/false, CurContext,
5862 = dyn_cast_or_null<ObjCContainerDecl>(CurContext);
5901 Results.AddResult(Result(Ivar, 0), CurContext, 0, false);
6696 if (CurContext->isObjCContainer()) {
6697 ObjCContainerDecl *OCD = dyn_cast<ObjCContainerDecl>(CurContext);
6917 Results.MaybeAddResult(R, CurContext);