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 622471 - Typedef in Namespace Not Recognized Despite Valid Using Specifier
Typedef in Namespace Not Recognized Despite Valid Using Specifier
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.7.0
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-06-23 08:11 UTC by chad.partridge
Modified: 2010-10-09 08:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description chad.partridge 2010-06-23 08:11:00 UTC
Below is valid C++ code that was correctly processed by doxygen for versions up to 1.5.7.1. However, from every version 1.5.8 on (we tested even 1.7.0 too), doxygen fails to produce documentation for the action() method because the UInt8 is not recognized as part of the a namespace even though 'using a' was correctly used prior to the action() definition. We believe this to be a significant regression issue that would greatly affect those that make significant use of typedefs in namespaces for large projects. If the cause of the problem is understood, any feedback would be appreciated as we would like to take advantage of any resolution even before the fix finds its way into a future release. Thanks in advance.


namespace a {
    typedef unsigned char UInt8;
}

namespace b
{
    class Example
    {
        public:
            Example() {};
            virtual ~Example() {};

            bool action(a::UInt8 input);
    };
}


/// \class b::Example
/// Example class


using namespace b;
using namespace a;


//  action (public)
/// Performs an action.
/// \param input The input
/// \return True if successful and false otherwise
//
bool Example::action(UInt8 input)
{
    return false;
}
Comment 1 Dimitri van Heesch 2010-06-23 11:28:17 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 2 Dimitri van Heesch 2010-06-25 11:49:07 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.1. 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.
Comment 3 Dimitri van Heesch 2010-10-09 08:20:09 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.2. 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.