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 584194 - links to typedefs go to the source of the typedef instead
links to typedefs go to the source of the typedef instead
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.7.4
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
: 659249 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-29 10:18 UTC by Joachim Reichel
Modified: 2013-01-03 10:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joachim Reichel 2009-05-29 10:18:54 UTC
Steps to reproduce:

/// template vector class
template <class T>
class Vector { };

/** \defgroup typedefs Typedefs */

/// vector with floats
/// \ingroup typedefs
typedef Vector<float> FloatVector;

/// vector with doubles
/// \ingroup typedefs
typedef Vector<double> DoubleVector;

/// some class
class MyClass
{
public:
  /// some method
  void foo (FloatVector&);
};

Actual results:

The FloatVector parameter of MyClass::foo() links to Vector<T> (such that the user does not know how FloatVector relates to Vector<T>).

Expected results:

The FloatVector parameter of MyClass::foo() should link to typedef of FloatVector.

Observed with the default config file of doxygen 1.5.9
Comment 1 Joachim Reichel 2010-06-09 07:49:11 UTC
This bug still exists in doxygen 1.6.3.
Comment 2 Joachim Reichel 2010-06-29 08:51:01 UTC
This bug still exists in doxygen 1.7.1.
Comment 3 Joachim Reichel 2010-10-11 09:26:05 UTC
This bug still exists in doxygen 1.7.2.
Comment 4 Joachim Reichel 2010-11-10 16:51:46 UTC
If "#FloatVector" appears in running text (e.g. documentation of foo()), then it gets linked to the typedef of FloatVector as expected. However, as parameter of foo() it gets linked to Vector<T> (as reported initially).

BTW why does "FloatVector" (without #) not get linked automatically?
Comment 5 Joachim Reichel 2011-01-12 08:22:17 UTC
This bug still exists in doxygen 1.7.3.
Comment 6 Joachim Reichel 2011-03-31 13:47:13 UTC
This bug still exists in doxygen 1.7.4.
Comment 7 Joachim Reichel 2011-08-15 07:37:44 UTC
Fixed in 1.7.5.
Comment 8 Kjell Ahlstedt 2013-01-03 10:06:27 UTC
*** Bug 659249 has been marked as a duplicate of this bug. ***