Skip to content

Support Doxygen arbitrary alias\tags settings (example: use '\par' instead of '\param') #5700

Closed

Description

We have configured Doxygen to use \par instead of \param, can that somehow also be supported (probably through some setting?).
Also, for some reason we put our Doxygen comments in between the function signature and the opening {. Doxygen parses that just fine ... will that work here as well?

Originally posted by Patrick Reisert (@Boddlnagg) in #658 (comment)

Activity

  1. michelleangela commented on Jun 25, 2020

    @michelleangela
    ContributorAuthor

    Also, for some reason we put our Doxygen comments in between the function signature and the opening {. Doxygen parses that just fine ... will that work here as well?

    Patrick Reisert (@Boddlnagg)
    I'm not sure if I understand what you mean by "in between the function signature and the opening {". Could you provide an example for this?

  2. Boddlnagg commented on Jun 25, 2020

    @Boddlnagg

    I'm not sure if I understand what you mean by "in between the function signature and the opening {". Could you provide an example for this?

    Sure:

    int foobar(int a)
    /// \brief Foos the bar
    /// \par a Something
    /// \ret Something else (or not)
    {
        return a;
    }

    (forgot to mention that we also have defined ret as an abbreviation for return)

  3. Boddlnagg commented on Jun 26, 2020

    @Boddlnagg

    To elaborate on the original request: We also have defined aliases \in, \out, and \inout for \param[in], \param[out] and \param[in,out], respectively. So I think the feature would need to support arbitrary alias settings. Or the VSCode extension needs to read and the original Doxygen config and evaluate the ALIASES definitions (https://www.doxygen.nl/manual/config.html#cfg_aliases), but I don't know if that is feasible.

  4. changed the title [-]Add Doxygen setting to use "\par" instead of "\param"[/-] [+]Support Doxygen arbitrary alias settings (such as to use '\par[/+] on Jun 26, 2020
  5. changed the title [-]Support Doxygen arbitrary alias settings (such as to use '\par[/-] [+]Support Doxygen arbitrary alias\tags settings (example: use '\par' instead of '\param')[/+] on Jun 26, 2020
  6. michelleangela commented on Jun 26, 2020

    @michelleangela
    ContributorAuthor

    Patrick Reisert (@Boddlnagg)

    Thanks for the additional information.

    Please note that our team prioritizes actions on product features with broad customer impact based on telemetry data and/or upvotes of feature requests.

  7. bobbrow commented on Jun 26, 2020

    @bobbrow
    Contributor

    It looks like there are two requests in here (additional tags, and comment position). Should we split it into two issues?
    Also, does VS Code support collapsible sections in the tooltips? If so, we could potentially place the raw comment in there as a stop gap.

  8. J-Fields commented on Jul 22, 2020

    @J-Fields

    The formatted doxygen popup only recognizes \exception (not \throw or \throws), and \throws isn't even highlighted in the actual text.

  9. michelleangela commented on Jul 22, 2020

    @michelleangela
    ContributorAuthor

    The formatted doxygen popup only recognizes \exception (not \throw or \throws), and \throws isn't even highlighted in the actual text.

    To display other Doxygen comment tags, set the setting C_Cpp.simplifyStructuredComments to false. This setting was added to resolve issue #5706.

  10. added this to the 0.29.0 milestone on Aug 27, 2020
  11. bobbrow commented on Aug 27, 2020

    @bobbrow
    Contributor

    This was addressed in 0.29.0

  12. locked and limited conversation to collaborators on Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions