Skip to content

Cannot make explicit links to C++ const member functions [with test case] (Origin: bugzilla #739211) #5669

@doxygen

Description

@doxygen

status RESOLVED severity normal in component general for ---
Reported in version 1.8.8-GIT on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2014-10-26 15:53:16 +0000, Vladimír Vondruš wrote:

Created attachment 289352
Repro/test case

See attached ZIP file for minimal repro case or the following snippet:

/** @brief Foo */
struct Foo {
    /**
     * @brief Fun of two
     *
     * - fun() const
     * - @ref fun() const
     * - @ref fun() const "title"
     */
    static Foo fun(Foo a, Foo b);

    /** @brief Fun with itself */
    Foo fun() const;
};

It is not possible to make explicit link to Foo::fun() const with @ref. In the generated HTML docs the first (implicit) link is OK and also links to the right location, the second link is done only from foo() (and the const remains non-clickable in default font) and also improperly links to Foo::fun(Foo, Foo). The third one highlights fun() const and links to proper location, but the link title in quotes appears as "title" in default font after the link.

Tested with current Git (a31c9ff), but the issue appears for some time already. I'm currently working around this by using implicit reference, but I'd like to disable AUTOLINK_SUPPORT and have everything explicit to avoid having plain English words highlighted as links :)

On 2014-11-16 15:23:54 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2014-11-16 19:30:21 +0000, Vladimír Vondruš wrote:

Works now, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions