You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate definition/declaration from undefined function usage #13427
I would like to request the following addition to the "Create declaration/definition" functionality: it would be useful if it could generate the declaration/definition where an undefined function is called (#13425)
Sweidan Omár (@Omcsesz) That doesn't seem possible to me -- if it's undefined, then we don't know what signature to use to create it, right? Or am I misunderstanding something (I didn't read the linked thread). The reason create declaration/definition works is that it has one of either the declaration or definition and it uses that info to create the other one.
Sean McManus (@sean-mcmanus) What I thought is that it could take the parameter list of the undefined function at the place of it's call, and the return value could be the same as the type of the variable it is assigned to. I don't know if this could be realized.
changed the title [-]additional feature related to "Create declaration/definition"[/-][+]Generate definition/declaration from undefined function usage[/+]on Mar 26, 2025
This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.
Activity
sean-mcmanus commentedon Mar 26, 2025
Sweidan Omár (@Omcsesz) That doesn't seem possible to me -- if it's undefined, then we don't know what signature to use to create it, right? Or am I misunderstanding something (I didn't read the linked thread). The reason create declaration/definition works is that it has one of either the declaration or definition and it uses that info to create the other one.
Omcsesz commentedon Mar 26, 2025
Sean McManus (@sean-mcmanus) What I thought is that it could take the parameter list of the undefined function at the place of it's call, and the return value could be the same as the type of the variable it is assigned to. I don't know if this could be realized.
bobbrow commentedon Mar 26, 2025
As part of the lightbulb we could also provide choices to make it a free function or a member function (if currently within a member function).
[-]additional feature related to "Create declaration/definition"[/-][+]Generate definition/declaration from undefined function usage[/+]github-actions commentedon May 27, 2025
This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.