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 729063 - Missing link for item inside the same namespace
Missing link for item inside the same namespace
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.8.8
Other All
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks: 740218
 
 
Reported: 2014-04-27 14:53 UTC by David Mercklé
Modified: 2014-12-25 16:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test Case (27.28 KB, application/x-zip-compressed)
2014-11-17 03:03 UTC, Kevin McBride
Details

Description David Mercklé 2014-04-27 14:53:41 UTC
Consider the following piece of cpp code. The problem is described as a comment inside the code.

----------

/// this is the global namespace
namespace Namespace{

// uncomment to make the bug disappear :
//using namespace Namespace; 
  
/// this is a struct
struct Struct
{
};

/// this is a class
class Class
{
public:
  /// A function
  /// 
  /// Detailed description
  static void function( Struct s); // correct : link to Struct is present in the function documentation
};

/// A function in the namespace
/// 
/// Detailed description
void function( Struct s); // BUG : link to Struct is missing in the Function Documentation !

}

The missing link bug is illustrated HERE ("Struct" is not clickable, when it should be) :

http://prenomstat.com/doxygenNsLinkBug/namespace_namespace.html#a5d888a5b4762a99391bc79460452a662


Strangely enough :

- Within a class instead of a namespace, this problem does not appear
- The problem disappears when writing "using namespace Namespace;" after starting "namespace Namespace {" !! But of course this is not clean at all.

This problem has been observed with doxygen 1.8.6 and 1.8.7.

Hope you will find a solution.
Comment 1 Kevin McBride 2014-11-17 03:03:55 UTC
Created attachment 290827 [details]
Test Case

A sample project was not provided but with version 1.8.8 I was able to reproduce this bug.  Attached is a sample project with the basic Doxyfile generated by "doxygen -g"
Comment 2 Dimitri van Heesch 2014-12-23 15:42:30 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 3 Dimitri van Heesch 2014-12-25 16:03:14 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.9. 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 (preferrably in the form of a self-contained example).