Home | History | Annotate | Download | only in Sema

Lines Matching refs:CurContext

267     bool CheckHiddenResult(Result &R, DeclContext *CurContext,
274 /// \param CurContext the result to add (if it is unique).
277 void MaybeAddResult(Result R, DeclContext *CurContext = 0);
284 /// \param CurContext the context in which this result will be named.
290 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
421 /// (\p CurContext) to the target context (\p TargetContext).
425 /// \param CurContext the context where an entity is being named, which is
435 DeclContext *CurContext,
440 CommonAncestor && !CommonAncestor->Encloses(CurContext);
547 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext,
570 CurContext,
767 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) {
778 MaybeAddResult(Result(Using->getTargetDecl(), R.Qualifier), CurContext);
839 if (CheckHiddenResult(R, CurContext, I->first))
880 void ResultBuilder::AddResult(Result R, DeclContext *CurContext,
890 AddResult(Result(Using->getTargetDecl(), R.Qualifier), CurContext, Hiding);
902 if (Hiding && CheckHiddenResult(R, CurContext, Hiding))
1189 DeclContext *CurContext;
1192 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext)
1193 : Results(Results), CurContext(CurContext) { }
1196 Results.AddResult(ND, CurContext, Hiding, InBaseClass);
1449 if (SemaRef.CurContext->isDependentContext()) {
1642 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(SemaRef.CurContext))
1645 = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
1710 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(SemaRef.CurContext))
2786 if (S.CurContext->isFileContext())
2788 else if (S.CurContext->isRecord())
2834 DeclContext *CurContext = S.CurContext;
2835 while (isa<BlockDecl>(CurContext))
2836 CurContext = CurContext->getParent();
2839 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext);
2864 = getRequiredQualification(S.Context, CurContext,
2942 if (CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext))
2947 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3017 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3091 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3132 DeclContext *CurContext,
3143 Results.MaybeAddResult(Result(*P, 0), CurContext);
3182 CurContext);
3193 AddObjCProperties(*P, AllowCategories, AllowNullaryMethods, CurContext,
3201 CurContext, AddedProperties, Results);
3208 AddObjCProperties(*I, AllowCategories, AllowNullaryMethods, CurContext,
3214 AllowNullaryMethods, CurContext,
3222 AddObjCProperties(*P, AllowCategories, AllowNullaryMethods, CurContext,
3274 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3305 /*AllowNullaryMethods=*/true, CurContext,
3312 AddObjCProperties(*I, true, /*AllowNullaryMethods=*/true, CurContext,
3326 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3374 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3467 Qualifier = getRequiredQualification(Context, CurContext,
3485 Results.AddResult(R, CurContext, 0, false);
3651 if (isa<BlockDecl>(CurContext)) {
3654 } else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(CurContext))
3656 else if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(CurContext))
3705 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3728 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3748 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3792 CurContext, 0, false);
3809 CodeCompletionDeclConsumer Consumer(Results, CurContext);
3835 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4327 /// \param CurContext the context in which we're performing the lookup that
4339 DeclContext *CurContext,
4363 Results.MaybeAddResult(R, CurContext);
4375 CurContext, Selectors, AllowSameLength, Results, false);
4388 CurContext, Selectors, AllowSameLength, Results, false);
4394 NumSelIdents, CurContext, Selectors, AllowSameLength,
4404 NumSelIdents, CurContext, Selectors, AllowSameLength,
4410 NumSelIdents, CurContext, Selectors, AllowSameLength,
4417 SelIdents, NumSelIdents, CurContext, Selectors,
4423 NumSelIdents, CurContext, Selectors, AllowSameLength,
4448 AddObjCMethods(Class, true, MK_ZeroArgSelector, 0, 0, CurContext, Selectors,
4477 AddObjCMethods(Class, true, MK_OneArgSelector, 0, 0, CurContext,
4541 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4752 CodeCompletionDeclConsumer Consumer(Results, CurContext);
4913 SemaRef.CurContext, Selectors, AtArgumentExpression,
4945 Results.MaybeAddResult(R, SemaRef.CurContext);
5050 CurContext, Selectors, AtArgumentExpression, Results);
5060 AddObjCMethods(*I, true, MK_Any, SelIdents, NumSelIdents, CurContext,
5068 NumSelIdents, CurContext, Selectors, AtArgumentExpression,
5075 AddObjCMethods(*I, true, MK_Any, SelIdents, NumSelIdents, CurContext,
5112 Results.MaybeAddResult(R, CurContext);
5214 static void AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext,
5225 Results.AddResult(Result(Proto, 0), CurContext, 0, false);
5235 Results.AddResult(Result(*P, 0), CurContext, 0, false);
5257 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, false,
5276 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, true,
5289 static void AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext,
5302 Results.AddResult(Result(Class, 0), CurContext, 0, false);
5310 Results.AddResult(Result(C->getInterface(), 0), CurContext,
5322 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, true,
5345 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5361 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false,
5397 Results.AddResult(Result(Category, 0), CurContext, 0, false);
5433 Results.AddResult(Result(Category, 0), CurContext, 0, false);
5471 /*AllowNullaryMethods=*/false, CurContext,
5475 false, /*AllowNullaryMethods=*/false, CurContext,
5532 Results.AddResult(Result(Ivar, 0), CurContext, 0, false);
6524 Results.MaybeAddResult(R, CurContext);