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 700709 - typedef warning when "using" some operator functions
typedef warning when "using" some operator functions
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: documentation
1.8.4
Other Windows
: Normal trivial
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-05-20 12:41 UTC by geoff
Modified: 2013-08-23 15:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example header and settings. (3.37 KB, application/zip)
2013-05-20 12:41 UTC, geoff
Details

Description geoff 2013-05-20 12:41:34 UTC
Created attachment 244768 [details]
Example header and settings.

I have something like the following (slightly odd, but legitimate C++11 (according to gcc at least) and the reason for it is more apparent in the full code):

/*! \brief This class is documented.*/
class ABaseClass {
public:
    bool operator==(const ABaseClass& arhs) const noexcept;
    bool operator!=(const ABaseClass& arhs) const noexcept;
    bool operator<(const ABaseClass& arhs) const noexcept;
    bool operator<=(const ABaseClass& arhs) const noexcept;
    bool operator>(const ABaseClass& arhs) const noexcept;
    bool operator>=(const ABaseClass& arhs) const noexcept;
};

/*! \brief This class is documented.*/
class ADerivedClass : public ABaseClass {
public:
    using ABaseClass::operator==;
    using ABaseClass::operator!=;
    using ABaseClass::operator<;
    using ABaseClass::operator<=;
    using ABaseClass::operator>;
    using ABaseClass::operator>=;
};


Doygen gives the following warnings:

demodox.hpp:21: Warning: documented symbol `typedef ADerivedClass::ABaseClass::operator' was not declared or defined.
demodox.hpp:22: Warning: documented symbol `typedef ADerivedClass::ABaseClass::operator' was not declared or defined.
demodox.hpp:24: Warning: documented symbol `typedef ADerivedClass::ABaseClass::operator' was not declared or defined.
demodox.hpp:26: Warning: documented symbol `typedef ADerivedClass::ABaseClass::operator' was not declared or defined.

Notice that it complains about only four of the six using statements (==, !=, <=, >=).  It causes no actual problems that I can see, just the unwanted warnings.

Example header and settings file in attachment.  Settings use EXTRACT_ALL=YES to avoid having to add unnecessary documentation to the example).
Comment 1 Dimitri van Heesch 2013-05-20 17:54:33 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 2 Dimitri van Heesch 2013-08-23 15:04:42 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.