Skip to content

Signature help doesn't work for arguments after a lambda argument #12841

@Colengms

Description

@Colengms

Example code is:

void foo(int a, int b, int c);

void bar()
{
    foo(1, 2, 3);
    foo(1, []() { return 2; }(), 3);
}

If you type over the , before 3 in the first call to foo, signature help is displayed. In the second call to foo, no signature help is displayed. The current implementation of signature help is getting confused by the contents of the lambda.

I'd like to remove a function (involved in the matching), to complete #12795 . The problem doesn't occur in VS. They leverage the TU to detect the function to provide help for semantically. Using this issue to track fixing the bug by implementing an approach equivalent to what VS is doing.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions