Skip to content

Doxygen comments to the right of members or fields do not parse if they span multiple lines #5811

@adrianghc

Description

@adrianghc

Type: LanguageService

Describe the bug

  • VS Code Version: 1.47.2
  • C/C++ Extension Version: 0.29.0

For struct members or class fields, I will often write a comment next to it instead of above it in order to reduce clutter. Since I use rulers, these comments very often extend across more than one line, e.g. something like

            module owner;   /** The owner of this instance. This determines e.g. which message queue
                                to listen to. */

Hovering above owner I would expect the comment to be shown, but this is not the case. It appears that this only works if the comment spans a single line instead of more than one. Multiline comments only work when the comment is above the field, not to its right.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions