Lines Matching refs:ResultBuilder
71 class ResultBuilder { class
77 typedef bool (ResultBuilder::*LookupFilter)(const NamedDecl *) const;
216 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator, in ResultBuilder() function in __anone047e0890111::ResultBuilder
637 class ResultBuilder::ShadowMapEntry::iterator {
703 ResultBuilder::ShadowMapEntry::iterator
704 ResultBuilder::ShadowMapEntry::begin() const { in begin()
714 ResultBuilder::ShadowMapEntry::iterator
715 ResultBuilder::ShadowMapEntry::end() const { in end()
790 bool ResultBuilder::isInterestingDecl(const NamedDecl *ND, in isInterestingDecl()
818 if (Filter == &ResultBuilder::IsNestedNameSpecifier || in isInterestingDecl()
819 (isa<NamespaceDecl>(ND) && Filter != &ResultBuilder::IsNamespace && in isInterestingDecl()
820 Filter != &ResultBuilder::IsNamespaceOrAlias && Filter != nullptr)) in isInterestingDecl()
828 (Filter != &ResultBuilder::IsMember || in isInterestingDecl()
841 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult()
997 unsigned ResultBuilder::getBasePriority(const NamedDecl *ND) { in getBasePriority()
1045 void ResultBuilder::AdjustResultPriorityForDecl(Result &R) { in AdjustResultPriorityForDecl()
1080 void ResultBuilder::MaybeAddConstructorResults(Result R) { in MaybeAddConstructorResults()
1115 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult()
1237 static void setInBaseClass(ResultBuilder::Result &R) { in setInBaseClass()
1292 bool ResultBuilder::canCxxMethodBeCalled(const CXXMethodDecl *Method, in canCxxMethodBeCalled()
1330 bool ResultBuilder::canFunctionBeCalled(const NamedDecl *ND, in canFunctionBeCalled()
1352 void ResultBuilder::AddResult(Result R, DeclContext *CurContext, in AddResult()
1395 } else if (Filter == &ResultBuilder::IsMember && !R.Qualifier && in AddResult()
1482 void ResultBuilder::AddResult(Result R) { in AddResult()
1489 void ResultBuilder::EnterNewScope() { ShadowMaps.emplace_back(); } in EnterNewScope()
1492 void ResultBuilder::ExitScope() { in ExitScope()
1498 bool ResultBuilder::IsOrdinaryName(const NamedDecl *ND) const { in IsOrdinaryName()
1516 bool ResultBuilder::IsOrdinaryNonTypeName(const NamedDecl *ND) const { in IsOrdinaryNonTypeName()
1539 bool ResultBuilder::IsIntegralConstantValue(const NamedDecl *ND) const { in IsIntegralConstantValue()
1552 bool ResultBuilder::IsOrdinaryNonValueName(const NamedDecl *ND) const { in IsOrdinaryNonValueName()
1565 bool ResultBuilder::IsNestedNameSpecifier(const NamedDecl *ND) const { in IsNestedNameSpecifier()
1574 bool ResultBuilder::IsEnum(const NamedDecl *ND) const { in IsEnum()
1579 bool ResultBuilder::IsClassOrStruct(const NamedDecl *ND) const { in IsClassOrStruct()
1594 bool ResultBuilder::IsUnion(const NamedDecl *ND) const { in IsUnion()
1606 bool ResultBuilder::IsNamespace(const NamedDecl *ND) const { in IsNamespace()
1612 bool ResultBuilder::IsNamespaceOrAlias(const NamedDecl *ND) const { in IsNamespaceOrAlias()
1617 bool ResultBuilder::IsType(const NamedDecl *ND) const { in IsType()
1625 bool ResultBuilder::IsMember(const NamedDecl *ND) const { in IsMember()
1664 bool ResultBuilder::IsObjCMessageReceiver(const NamedDecl *ND) const { in IsObjCMessageReceiver()
1673 bool ResultBuilder::IsObjCMessageReceiverOrLambdaCapture( in IsObjCMessageReceiverOrLambdaCapture()
1685 bool ResultBuilder::IsObjCCollection(const NamedDecl *ND) const { in IsObjCCollection()
1700 bool ResultBuilder::IsImpossibleToSatisfy(const NamedDecl *ND) const { in IsImpossibleToSatisfy()
1706 bool ResultBuilder::IsObjCIvar(const NamedDecl *ND) const { in IsObjCIvar()
1715 ResultBuilder &Results;
1725 ResultBuilder &Results, DeclContext *InitialLookupCtx, in CodeCompletionDeclConsumer()
1746 ResultBuilder::Result Result(ND, Results.getBasePriority(ND), nullptr, in FoundDecl()
1788 ResultBuilder &Results) { in AddTypeSpecifierResults()
1870 const LangOptions &LangOpts, ResultBuilder &Results) { in AddStorageSpecifiers()
1896 const LangOptions &LangOpts, ResultBuilder &Results) { in AddFunctionSpecifiers()
1931 static void AddObjCExpressionResults(ResultBuilder &Results, bool NeedAt);
1932 static void AddObjCStatementResults(ResultBuilder &Results, bool NeedAt);
1934 ResultBuilder &Results, bool NeedAt);
1936 ResultBuilder &Results, bool NeedAt);
1938 ResultBuilder &Results, bool NeedAt);
1939 static void AddObjCTopLevelResults(ResultBuilder &Results, bool NeedAt);
1941 static void AddTypedefResult(ResultBuilder &Results) { in AddTypedefResult()
1955 ResultBuilder &Results) { in AddUsingAliasResult()
2051 static void addThisCompletion(Sema &S, ResultBuilder &Results) { in addThisCompletion()
2066 ResultBuilder &Results, in AddStaticAssertResult()
2081 static void AddOverrideResults(ResultBuilder &Results, in AddOverrideResults()
2136 Scope *S, Sema &SemaRef, ResultBuilder &Results) { in AddOrdinaryNameResults()
4195 static void AddMacroResults(Preprocessor &PP, ResultBuilder &Results, in AddMacroResults()
4222 ResultBuilder &Results) { in AddPrettyFunctionResults()
4313 ResultBuilder &Results) { in MaybeAddOverrideCalls()
4373 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteModuleImport()
4418 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteOrdinaryName()
4436 Results.setFilter(&ResultBuilder::IsOrdinaryNonValueName); in CodeCompleteOrdinaryName()
4446 Results.setFilter(&ResultBuilder::IsOrdinaryName); in CodeCompleteOrdinaryName()
4448 Results.setFilter(&ResultBuilder::IsOrdinaryNonTypeName); in CodeCompleteOrdinaryName()
4510 ResultBuilder &Results);
4516 ResultBuilder Results( in CodeCompleteDeclSpec()
4545 Results.setFilter(&ResultBuilder::IsImpossibleToSatisfy); in CodeCompleteDeclSpec()
4604 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteAttribute()
4758 static void AddEnumerators(ResultBuilder &Results, ASTContext &Context, in AddEnumerators()
4803 static void AddLambdaCompletion(ResultBuilder &Results, in AddLambdaCompletion()
4852 ResultBuilder Results( in CodeCompleteExpression()
4863 Results.setFilter(&ResultBuilder::IsObjCCollection); in CodeCompleteExpression()
4865 Results.setFilter(&ResultBuilder::IsIntegralConstantValue); in CodeCompleteExpression()
4867 Results.setFilter(&ResultBuilder::IsOrdinaryName); in CodeCompleteExpression()
4869 Results.setFilter(&ResultBuilder::IsOrdinaryNonTypeName); in CodeCompleteExpression()
5002 AddedPropertiesSet &AddedProperties, ResultBuilder &Results, in AddObjCProperties()
5180 AddRecordMembersCompletionResults(Sema &SemaRef, ResultBuilder &Results, in AddRecordMembersCompletionResults()
5755 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteMemberReferenceExpr()
5757 &ResultBuilder::IsMember); in CodeCompleteMemberReferenceExpr()
5846 Results.setFilter(&ResultBuilder::IsObjCIvar); in CodeCompleteMemberReferenceExpr()
5890 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCClassPropertyRefExpr()
5892 &ResultBuilder::IsMember); in CodeCompleteObjCClassPropertyRefExpr()
5909 ResultBuilder::LookupFilter Filter = nullptr; in CodeCompleteTag()
5914 Filter = &ResultBuilder::IsEnum; in CodeCompleteTag()
5919 Filter = &ResultBuilder::IsUnion; in CodeCompleteTag()
5926 Filter = &ResultBuilder::IsClassOrStruct; in CodeCompleteTag()
5934 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteTag()
5946 Results.setFilter(&ResultBuilder::IsNestedNameSpecifier); in CodeCompleteTag()
5957 static void AddTypeQualifierResults(DeclSpec &DS, ResultBuilder &Results, in AddTypeQualifierResults()
5972 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteTypeQualifiers()
5985 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteFunctionQualifiers()
6072 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteCase()
6586 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteDesignator()
6601 ResultBuilder::Result Result(FD, Results.getBasePriority(FD)); in CodeCompleteDesignator()
6626 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteAfterIf()
6629 Results.setFilter(&ResultBuilder::IsOrdinaryName); in CodeCompleteAfterIf()
6710 ResultBuilder DummyResults(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteQualifiedId()
6737 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteQualifiedId()
6796 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteUsing()
6798 &ResultBuilder::IsNestedNameSpecifier); in CodeCompleteUsing()
6824 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteUsingDirective()
6827 &ResultBuilder::IsNamespaceOrAlias); in CodeCompleteUsingDirective()
6850 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteNamespaceDecl()
6855 &ResultBuilder::IsNamespace); in CodeCompleteNamespaceDecl()
6893 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteNamespaceAliasDecl()
6896 &ResultBuilder::IsNamespaceOrAlias); in CodeCompleteNamespaceAliasDecl()
6911 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteOperatorName()
6914 &ResultBuilder::IsType); in CodeCompleteOperatorName()
6951 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteConstructorInitializer()
7106 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteLambdaIntroducer()
7150 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteAfterFunctionEquals()
7200 ResultBuilder &Results, bool NeedAt) { in AddObjCImplementationResults()
7223 ResultBuilder &Results, bool NeedAt) { in AddObjCInterfaceResults()
7241 static void AddObjCTopLevelResults(ResultBuilder &Results, bool NeedAt) { in AddObjCTopLevelResults()
7293 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCAtDirective()
7309 static void AddObjCExpressionResults(ResultBuilder &Results, bool NeedAt) { in AddObjCExpressionResults()
7374 static void AddObjCStatementResults(ResultBuilder &Results, bool NeedAt) { in AddObjCStatementResults()
7421 ResultBuilder &Results, bool NeedAt) { in AddObjCVisibilityResults()
7431 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCAtVisibility()
7443 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCAtStatement()
7456 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCAtExpression()
7507 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCPropertyFlags()
7646 ResultBuilder &Results, bool InOriginalClass = true, in AddObjCMethods()
7745 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCPropertyGetter()
7774 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCPropertySetter()
7792 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCPassingType()
7854 Results.setFilter(&ResultBuilder::IsOrdinaryNonValueName); in CodeCompleteObjCPassingType()
7958 ResultBuilder &Results) { in AddSuperSendCompletion()
8058 ResultBuilder Results( in CodeCompleteObjCMessageReceiver()
8063 ? &ResultBuilder::IsObjCMessageReceiverOrLambdaCapture in CodeCompleteObjCMessageReceiver()
8064 : &ResultBuilder::IsObjCMessageReceiver); in CodeCompleteObjCMessageReceiver()
8160 static QualType getPreferredArgumentTypeForMessageSend(ResultBuilder &Results, in getPreferredArgumentTypeForMessageSend()
8196 ResultBuilder &Results) { in AddClassMessageCompletions()
8274 ResultBuilder Results( in CodeCompleteObjCClassMessage()
8347 ResultBuilder Results( in CodeCompleteObjCInstanceMessage()
8495 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCSelector()
8544 ResultBuilder &Results) { in AddProtocolResults()
8559 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCProtocolReferences()
8587 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCProtocolDecl()
8611 ResultBuilder &Results) { in AddInterfaceResults()
8626 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCInterfaceDecl()
8645 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCClassForwardDecl()
8665 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCSuperclass()
8690 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCImplementationDecl()
8712 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCInterfaceCategory()
8756 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCImplementationCategory()
8786 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCPropertyDefinition()
8825 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCPropertySynthesizeIvar()
9042 ResultBuilder &Results) { in AddObjCKeyValueCompletions()
9695 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCMethodDecl()
9847 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteObjCMethodDeclSelector()
9918 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompletePreprocessorDirective()
10096 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompletePreprocessorMacroName()
10124 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompletePreprocessorExpression()
10171 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteIncludedFile()
10310 ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), in CodeCompleteAvailabilityPlatformName()
10329 ResultBuilder Builder(SemaRef, Allocator, CCTUInfo, in GatherGlobalCodeCompletions()