@@ -4538,6 +4538,7 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
45384538 struct S {
45394539 void foo1(int a);
45404540 void foo2(int a) const;
4541+ void foo2(this const S& self, float a);
45414542 void foo3(this const S& self, int a);
45424543 void foo4(this S& self, int a);
45434544 };
@@ -4587,6 +4588,8 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
45874588 snippetSuffix (" (${1:int a})" )),
45884589 AllOf (named (" foo2" ), signature (" (int a) const" ),
45894590 snippetSuffix (" (${1:int a})" )),
4591+ AllOf (named (" foo2" ), signature (" (float a) const" ),
4592+ snippetSuffix (" (${1:float a})" )),
45904593 AllOf (named (" foo3" ), signature (" (int a) const" ),
45914594 snippetSuffix (" (${1:int a})" )),
45924595 AllOf (named (" foo4" ), signature (" (int a)" ),
@@ -4599,6 +4602,8 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
45994602 Result.Completions ,
46004603 UnorderedElementsAre (AllOf (named (" foo2" ), signature (" (int a) const" ),
46014604 snippetSuffix (" (${1:int a})" )),
4605+ AllOf (named (" foo2" ), signature (" (float a) const" ),
4606+ snippetSuffix (" (${1:float a})" )),
46024607 AllOf (named (" foo3" ), signature (" (int a) const" ),
46034608 snippetSuffix (" (${1:int a})" ))));
46044609 }
@@ -4609,6 +4614,8 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
46094614 Result.Completions ,
46104615 UnorderedElementsAre (AllOf (named (" foo2" ), signature (" (int a) const" ),
46114616 snippetSuffix (" (${1:int a})" )),
4617+ AllOf (named (" foo2" ), signature (" (float a) const" ),
4618+ snippetSuffix (" (${1:float a})" )),
46124619 AllOf (named (" foo3" ), signature (" (int a) const" ),
46134620 snippetSuffix (" (${1:int a})" ))));
46144621 }
@@ -4621,6 +4628,8 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
46214628 snippetSuffix (" (${1:int a})" )),
46224629 AllOf (named (" foo2" ), signature (" (int a) const" ),
46234630 snippetSuffix (" (${1:int a})" )),
4631+ AllOf (named (" foo2" ), signature (" (float a) const" ),
4632+ snippetSuffix (" (${1:float a})" )),
46244633 AllOf (named (" foo3" ), signature (" (int a) const" ),
46254634 snippetSuffix (" (${1:int a})" )),
46264635 AllOf (named (" foo4" ), signature (" (int a)" ),
@@ -4635,6 +4644,8 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
46354644 snippetSuffix (" (${1:int a})" )),
46364645 AllOf (named (" foo2" ), signature (" (int a) const" ),
46374646 snippetSuffix (" (${1:int a})" )),
4647+ AllOf (named (" foo2" ), signature (" (float a) const" ),
4648+ snippetSuffix (" (${1:float a})" )),
46384649 AllOf (named (" foo3" ), signature (" (int a) const" ),
46394650 snippetSuffix (" (${1:int a})" )),
46404651 AllOf (named (" foo4" ), signature (" (int a)" ),
@@ -4647,6 +4658,8 @@ TEST(CompletionTest, ListExplicitObjectOverloads) {
46474658 Result.Completions ,
46484659 UnorderedElementsAre (AllOf (named (" foo2" ), signature (" (int a) const" ),
46494660 snippetSuffix (" (${1:int a})" )),
4661+ AllOf (named (" foo2" ), signature (" (float a) const" ),
4662+ snippetSuffix (" (${1:float a})" )),
46504663 AllOf (named (" foo3" ), signature (" (int a) const" ),
46514664 snippetSuffix (" (${1:int a})" ))));
46524665 }
0 commit comments