Skip to content

Fix function/variable parsing to allow comments in different places #9

@ghost

Description

Comments for functions do not not function as expected. I can give examples on request, but here are the issues I came across testing codedoc with a small file with just a single function defined.

  1. If the return type is not void, there is a comment before the function, and there isn't a comment after the return type, the comment before the function becomes documentation for the return type and not for the function itself.
  2. A multi-line comment after the return type breaks the documentation for the function itself.
  3. Documentation comments for arguments only work if the parameter contains a comma after the parameter name.
  4. Man pages do not show return type and parameter documentation.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions