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 700696 - Template static member functions duplicated as non-static public
Template static member functions duplicated as non-static public
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: documentation
1.8.4
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
: 700202 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-05-20 08:44 UTC by geoff
Modified: 2013-08-23 15:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example header and settings file. (3.35 KB, application/zip)
2013-05-20 08:44 UTC, geoff
Details

Description geoff 2013-05-20 08:44:14 UTC
Created attachment 244759 [details]
Example header and settings file.

A template static member function, whether public or protected, will duplicate in the documentation as non-static public.  You get a warning about the member not being documented even though it is.  Documentation attaches to the invalid non-static public rather than the correct static method.  Example that generates the problem:

/*! \brief This class is documented.*/
class AClass {
public:
    template<typename C> static char* astaticfunc(C ainput);
};

/*! \brief This function is documented */
template<typename C>
char* AClass::astaticfunc(C achar)
{ return nullptr; }

This above included in attachment with relevant settings file.
Comment 1 geoff 2013-05-20 08:45:32 UTC
It may be worth cross-referencing with my previous report: https://bugzilla.gnome.org/show_bug.cgi?id=700693  because that is also a duplicate documentation issue related to templates, so it seems possible the problems may be related.
Comment 2 Dimitri van Heesch 2013-05-20 10:50:03 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 3 Dimitri van Heesch 2013-05-20 18:03:13 UTC
*** Bug 700202 has been marked as a duplicate of this bug. ***
Comment 4 Dimitri van Heesch 2013-08-23 15:04:52 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.5. 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.