Skip to content

Support ///-style doc comments (and possibly also others) #233

@ruifengx

Description

@ruifengx

First, thanks for your work!

I believe clang already has support for this, i.e., it already combines consecutive single-line doc-comments together. Therefore, it should be a matter of stripping /// prefixes in hawkmoth.docstring. And FYI in the slides here (page 9-ish) there are some examples for which comment gets attached to which entity:

/// comment
void f();             int a; ///< comment
/** comment */
void g();             int b; /**< comment */
/*! comment */
void h();             int c; /*!< comment */

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions