After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776988 - Too greedy behavior of @ref const matching
Too greedy behavior of @ref const matching
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2017-01-07 16:42 UTC by Vladimír Vondruš
Modified: 2017-12-25 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vladimír Vondruš 2017-01-07 16:42:37 UTC
Running Doxygen (version doesn't matter) on the following snippet:

    /**
    @brief A class

    See @ref A::A() constructor for details.
    */
    class A {
        /** @brief Constructor with the details */
        A();
    };

Produces the following warning:

    a.cpp:2: warning: unable to resolve reference to `A::A() const' for \ref command

(Yes, it may seem like a really bad improbable corner case case but it really occurred to me in practice a few times.) Currently I'm working around this by providing explicit link text in "", but it would be nice if I wouldn't need to. Suggested solution could be to match `const` only if it is a complete word and not a prefix.

Thanks a lot!
Comment 1 Dimitri van Heesch 2017-01-17 20:37:03 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2017-12-25 18:43:45 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.14. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).