Skip to content

Asciidoc: description for overload sets merged in single line for long Javadoc comments #803

Closed
@anarthal

Description

@anarthal
namespace repro {

/// A struct.
struct S
{
    /**
     * \brief Integer overload.
     * \details More info
     */
    void f(int) {}

    /**
     * \brief C string overload.
     * \details More info
     */
    void f(const char*) {}
};

}  // namespace repro

Renders:

Image

Merging two distinct descriptions in a single paragraph is confusing.

If we use the brief-only Javadoc format, things work:

namespace repro {

/// A struct.
struct S
{
    /// Integer overload.
    void f(int) {}

    /// C string overload.
    void f(const char*) {}
};

}  // namespace repro

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions