Skip to content

Generate definition/declaration from undefined function usage #13427

Closed as not planned
Closed as not planned

Description

Feature Request

Hello, team!

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)

Image

Activity

  1. sean-mcmanus commented on Mar 26, 2025

    @sean-mcmanus
    Contributor

    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.

  2. Omcsesz commented on Mar 26, 2025

    @Omcsesz
    Author

    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.

  3. bobbrow commented on Mar 26, 2025

    @bobbrow
    Contributor

    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).

  4. changed the title [-]additional feature related to "Create declaration/definition"[/-] [+]Generate definition/declaration from undefined function usage[/+] on Mar 26, 2025
  5. github-actions commented on May 27, 2025

    @github-actions

    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.

  6. added this to the Triage milestone on May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions