Lines Matching refs:ResultBuilder
43 class ResultBuilder {
49 typedef bool (ResultBuilder::*LookupFilter)(const NamedDecl *) const;
172 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator,
347 class ResultBuilder::ShadowMapEntry::iterator {
417 ResultBuilder::ShadowMapEntry::iterator
418 ResultBuilder::ShadowMapEntry::begin() const {
428 ResultBuilder::ShadowMapEntry::iterator
429 ResultBuilder::ShadowMapEntry::end() const {
493 bool ResultBuilder::isInterestingDecl(const NamedDecl *ND,
528 if (Filter == &ResultBuilder::IsNestedNameSpecifier ||
530 Filter != &ResultBuilder::IsNamespace &&
531 Filter != &ResultBuilder::IsNamespaceOrAlias &&
540 (Filter != &ResultBuilder::IsMember ||
553 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext,
709 unsigned ResultBuilder::getBasePriority(const NamedDecl *ND) {
748 void ResultBuilder::AdjustResultPriorityForDecl(Result &R) {
774 void ResultBuilder::MaybeAddConstructorResults(Result R) {
812 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) {
930 void ResultBuilder::AddResult(Result R, DeclContext *CurContext,
968 else if (Filter == &ResultBuilder::IsMember && !R.Qualifier && InBaseClass &&
1014 void ResultBuilder::AddResult(Result R) {
1021 void ResultBuilder::EnterNewScope() { ShadowMaps.emplace_back(); }
1024 void ResultBuilder::ExitScope() {
1036 bool ResultBuilder::IsOrdinaryName(const NamedDecl *ND) const {
1054 bool ResultBuilder::IsOrdinaryNonTypeName(const NamedDecl *ND) const {
1070 bool ResultBuilder::IsIntegralConstantValue(const NamedDecl *ND) const {
1083 bool ResultBuilder::IsOrdinaryNonValueName(const NamedDecl *ND) const {
1097 bool ResultBuilder::IsNestedNameSpecifier(const NamedDecl *ND) const {
1106 bool ResultBuilder::IsEnum(const NamedDecl *ND) const {
1111 bool ResultBuilder::IsClassOrStruct(const NamedDecl *ND) const {
1126 bool ResultBuilder::IsUnion(const NamedDecl *ND) const {
1138 bool ResultBuilder::IsNamespace(const NamedDecl *ND) const {
1144 bool ResultBuilder::IsNamespaceOrAlias(const NamedDecl *ND) const {
1149 bool ResultBuilder::IsType(const NamedDecl *ND) const {
1159 bool ResultBuilder::IsMember(const NamedDecl *ND) const {
1200 bool ResultBuilder::IsObjCMessageReceiver(const NamedDecl *ND) const {
1209 bool ResultBuilder::IsObjCMessageReceiverOrLambdaCapture(const NamedDecl *ND) const {
1220 bool ResultBuilder::IsObjCCollection(const NamedDecl *ND) const {
1235 bool ResultBuilder::IsImpossibleToSatisfy(const NamedDecl *ND) const {
1241 bool ResultBuilder::IsObjCIvar(const NamedDecl *ND) const {
1249 ResultBuilder &Results;
1253 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext)
1262 ResultBuilder::Result Result(ND, Results.getBasePriority(ND), nullptr,
1271 ResultBuilder &Results) {
1353 ResultBuilder &Results) {
1364 ResultBuilder &Results) {
1398 static void AddObjCExpressionResults(ResultBuilder &Results, bool NeedAt);
1399 static void AddObjCStatementResults(ResultBuilder &Results, bool NeedAt);
1401 ResultBuilder &Results,
1404 ResultBuilder &Results,
1407 ResultBuilder &Results,
1409 static void AddObjCTopLevelResults(ResultBuilder &Results, bool NeedAt);
1411 static void AddTypedefResult(ResultBuilder &Results) {
1501 static void addThisCompletion(Sema &S, ResultBuilder &Results) {
1521 ResultBuilder &Results) {
3088 static void AddMacroResults(Preprocessor &PP, ResultBuilder &Results,
3116 ResultBuilder &Results) {
3202 ResultBuilder &Results) {
3269 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
3320 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
3338 Results.setFilter(&ResultBuilder::IsOrdinaryNonValueName);
3347 Results.setFilter(&ResultBuilder::IsOrdinaryName);
3349 Results.setFilter(&ResultBuilder::IsOrdinaryNonTypeName);
3409 ResultBuilder &Results);
3415 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
3436 Results.setFilter(&ResultBuilder::IsImpossibleToSatisfy);
3488 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
3492 Results.setFilter(&ResultBuilder::IsObjCCollection);
3494 Results.setFilter(&ResultBuilder::IsIntegralConstantValue);
3496 Results.setFilter(&ResultBuilder::IsOrdinaryName);
3498 Results.setFilter(&ResultBuilder::IsOrdinaryNonTypeName);
3569 ResultBuilder &Results) {
3676 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
3679 &ResultBuilder::IsMember);
3739 Results.setFilter(&ResultBuilder::IsObjCIvar);
3759 ResultBuilder::LookupFilter Filter = nullptr;
3764 Filter = &ResultBuilder::IsEnum;
3769 Filter = &ResultBuilder::IsUnion;
3776 Filter = &ResultBuilder::IsClassOrStruct;
3784 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
3795 Results.setFilter(&ResultBuilder::IsNestedNameSpecifier);
3804 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
3890 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4159 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4162 Results.setFilter(&ResultBuilder::IsOrdinaryName);
4239 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4271 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4274 &ResultBuilder::IsNestedNameSpecifier);
4299 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4302 &ResultBuilder::IsNamespaceOrAlias);
4324 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4329 &ResultBuilder::IsNamespace);
4366 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4369 &ResultBuilder::IsNamespaceOrAlias);
4383 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4386 &ResultBuilder::IsType);
4422 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4536 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4583 ResultBuilder &Results,
4607 ResultBuilder &Results,
4626 static void AddObjCTopLevelResults(ResultBuilder &Results, bool NeedAt) {
4677 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4693 static void AddObjCExpressionResults(ResultBuilder &Results, bool NeedAt) {
4758 static void AddObjCStatementResults(ResultBuilder &Results, bool NeedAt) {
4805 ResultBuilder &Results,
4816 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4828 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4841 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
4891 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5021 ResultBuilder &Results,
5120 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5148 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5165 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5227 Results.setFilter(&ResultBuilder::IsOrdinaryNonValueName);
5330 ResultBuilder &Results) {
5434 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5438 ? &ResultBuilder::IsObjCMessageReceiverOrLambdaCapture
5439 : &ResultBuilder::IsObjCMessageReceiver);
5533 static QualType getPreferredArgumentTypeForMessageSend(ResultBuilder &Results,
5570 ResultBuilder &Results) {
5650 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5722 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5869 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5917 ResultBuilder &Results) {
5931 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5959 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
5983 ResultBuilder &Results) {
5997 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
6017 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
6042 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
6065 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
6109 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
6139 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
6180 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
6399 ResultBuilder &Results) {
7069 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
7216 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
7269 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
7434 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
7462 ResultBuilder Results(*this, CodeCompleter->getAllocator(),
7506 ResultBuilder Builder(*this, Allocator, CCTUInfo,