Lines Matching refs:CurContext
281 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
291 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
304 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
450 const DeclContext *CurContext, in getRequiredQualification() argument
455 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification()
570 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument
594 CurContext, in CheckHiddenResult()
829 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult() argument
844 CurContext); in MaybeAddResult()
905 if (CheckHiddenResult(R, CurContext, I->first)) in MaybeAddResult()
947 void ResultBuilder::AddResult(Result R, DeclContext *CurContext, in AddResult() argument
960 CurContext, Hiding); in AddResult()
972 if (Hiding && CheckHiddenResult(R, CurContext, Hiding)) in AddResult()
1263 DeclContext *CurContext; member in __anonaebf90eb0211::CodeCompletionDeclConsumer
1266 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext) in CodeCompletionDeclConsumer() argument
1267 : Results(Results), CurContext(CurContext) { } in CodeCompletionDeclConsumer()
1277 Results.AddResult(Result, CurContext, Hiding, InBaseClass); in FoundDecl()
1603 if (SemaRef.CurContext->isDependentContext()) { in AddOrdinaryNameResults()
1799 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(SemaRef.CurContext)) in AddOrdinaryNameResults()
1802 = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext)) in AddOrdinaryNameResults()
3170 if (S.CurContext->isFileContext()) in mapCodeCompletionContext()
3172 if (S.CurContext->isRecord()) in mapCodeCompletionContext()
3217 DeclContext *CurContext = S.CurContext; in MaybeAddOverrideCalls() local
3218 while (isa<BlockDecl>(CurContext)) in MaybeAddOverrideCalls()
3219 CurContext = CurContext->getParent(); in MaybeAddOverrideCalls()
3222 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext); in MaybeAddOverrideCalls()
3245 = getRequiredQualification(S.Context, CurContext, in MaybeAddOverrideCalls()
3375 if (CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext)) in CodeCompleteOrdinaryName()
3380 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteOrdinaryName()
3450 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteDeclSpec()
3520 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteExpression()
3580 DeclContext *CurContext, in AddObjCProperties() argument
3592 CurContext); in AddObjCProperties()
3611 CurContext); in AddObjCProperties()
3621 CurContext, AddedProperties, Results); in AddObjCProperties()
3627 CurContext, AddedProperties, Results); in AddObjCProperties()
3633 CurContext, AddedProperties, Results); in AddObjCProperties()
3638 AllowNullaryMethods, CurContext, in AddObjCProperties()
3645 CurContext, AddedProperties, Results); in AddObjCProperties()
3701 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteMemberReferenceExpr()
3732 /*AllowNullaryMethods=*/true, CurContext, in CodeCompleteMemberReferenceExpr()
3738 CurContext, AddedProperties, Results); in CodeCompleteMemberReferenceExpr()
3751 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteMemberReferenceExpr()
3799 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteTag()
3906 Qualifier = getRequiredQualification(Context, CurContext, Enum); in CodeCompleteCase()
3919 Results.AddResult(R, CurContext, nullptr, false); in CodeCompleteCase()
4164 if (isa<BlockDecl>(CurContext)) { in CodeCompleteReturn()
4167 } else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(CurContext)) in CodeCompleteReturn()
4169 else if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(CurContext)) in CodeCompleteReturn()
4185 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteAfterIf()
4279 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteQualifiedId()
4303 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteUsing()
4324 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteUsingDirective()
4372 CurContext, nullptr, false); in CodeCompleteNamespaceDecl()
4390 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteNamespaceAliasDecl()
4417 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteOperatorName()
4584 CurContext, nullptr, false); in CodeCompleteLambdaIntroducer()
4701 if (isa<ObjCImplDecl>(CurContext)) in CodeCompleteObjCAtDirective()
4703 else if (CurContext->isObjCContainer()) in CodeCompleteObjCAtDirective()
5038 DeclContext *CurContext, in AddObjCMethods() argument
5065 Results.MaybeAddResult(R, CurContext); in AddObjCMethods()
5078 CurContext, Selectors, AllowSameLength, Results, false); in AddObjCMethods()
5088 CurContext, Selectors, AllowSameLength, Results, false); in AddObjCMethods()
5093 CurContext, Selectors, AllowSameLength, in AddObjCMethods()
5103 CurContext, Selectors, AllowSameLength, in AddObjCMethods()
5109 CurContext, Selectors, AllowSameLength, in AddObjCMethods()
5116 SelIdents, CurContext, Selectors, in AddObjCMethods()
5122 CurContext, Selectors, AllowSameLength, in AddObjCMethods()
5129 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext); in CodeCompleteObjCPropertyGetter()
5132 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext)) in CodeCompleteObjCPropertyGetter()
5146 AddObjCMethods(Class, true, MK_ZeroArgSelector, None, CurContext, Selectors, in CodeCompleteObjCPropertyGetter()
5157 = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext); in CodeCompleteObjCPropertySetter()
5160 = dyn_cast_or_null<ObjCCategoryDecl>(CurContext)) in CodeCompleteObjCPropertySetter()
5174 AddObjCMethods(Class, true, MK_OneArgSelector, None, CurContext, in CodeCompleteObjCPropertySetter()
5248 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteObjCPassingType()
5461 CodeCompletionDeclConsumer Consumer(Results, CurContext); in CodeCompleteObjCMessageReceiver()
5623 SemaRef.CurContext, Selectors, AtArgumentExpression, in AddClassMessageCompletions()
5655 Results.MaybeAddResult(R, SemaRef.CurContext); in AddClassMessageCompletions()
5773 CurContext, Selectors, AtArgumentExpression, Results); in CodeCompleteObjCInstanceMessage()
5781 AddObjCMethods(I, true, MK_Any, SelIdents, CurContext, in CodeCompleteObjCInstanceMessage()
5789 CurContext, Selectors, AtArgumentExpression, in CodeCompleteObjCInstanceMessage()
5794 AddObjCMethods(I, true, MK_Any, SelIdents, CurContext, in CodeCompleteObjCInstanceMessage()
5831 Results.MaybeAddResult(R, CurContext); in CodeCompleteObjCInstanceMessage()
5935 static void AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext, in AddProtocolResults() argument
5945 CurContext, nullptr, false); in AddProtocolResults()
5967 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, false, in CodeCompleteObjCProtocolReferences()
5987 AddProtocolResults(Context.getTranslationUnitDecl(), CurContext, true, in CodeCompleteObjCProtocolDecl()
6000 static void AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext, in AddInterfaceResults() argument
6012 CurContext, nullptr, false); in AddInterfaceResults()
6024 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false, in CodeCompleteObjCInterfaceDecl()
6050 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false, in CodeCompleteObjCSuperclass()
6069 AddInterfaceResults(Context.getTranslationUnitDecl(), CurContext, false, in CodeCompleteObjCImplementationDecl()
6107 CurContext, nullptr, false); in CodeCompleteObjCInterfaceCategory()
6144 CurContext, nullptr, false); in CodeCompleteObjCImplementationCategory()
6165 = dyn_cast_or_null<ObjCContainerDecl>(CurContext); in CodeCompleteObjCPropertyDefinition()
6183 /*AllowNullaryMethods=*/false, CurContext, in CodeCompleteObjCPropertyDefinition()
6188 false, /*AllowNullaryMethods=*/false, CurContext, in CodeCompleteObjCPropertyDefinition()
6206 = dyn_cast_or_null<ObjCContainerDecl>(CurContext); in CodeCompleteObjCPropertySynthesizeIvar()
6246 CurContext, nullptr, false); in CodeCompleteObjCPropertySynthesizeIvar()
7051 if (CurContext->isObjCContainer()) { in CodeCompleteObjCMethodDecl()
7052 ObjCContainerDecl *OCD = dyn_cast<ObjCContainerDecl>(CurContext); in CodeCompleteObjCMethodDecl()
7278 Results.MaybeAddResult(R, CurContext); in CodeCompleteObjCMethodDeclSelector()