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 608359 - unnamed class results in copy_doc not finding target in totally unrelated files
unnamed class results in copy_doc not finding target in totally unrelated files
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.6.2
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-01-28 17:28 UTC by Torsten Robitzki
Modified: 2010-06-15 11:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
reproducer (421 bytes, application/octet-stream)
2010-01-28 17:28 UTC, Torsten Robitzki
Details
doxyfile (9.75 KB, text/plain)
2010-01-28 17:29 UTC, Torsten Robitzki
Details

Description Torsten Robitzki 2010-01-28 17:28:40 UTC
Created attachment 152501 [details]
reproducer

This might seem a little esoteric, but this is real code and it was quit hard to find what was triggering the bug. The attached file copy_doc.h contains a little example that reproduces the bug and I've used Comeau C/C++ Online to make sure, that this is valid C++.

The two classes data::abs_interface and data::totally_unrelated and the object foo might be in parts of the project that seems to be totally unrelated. When I implement the interface data::abs_interface with an unnamed class, this will cause doxygen to not find the @copydoc target in class data::totally_unrelated.

A working workaround is to give the class of foo a name. 

best regards
Torsten
Comment 1 Torsten Robitzki 2010-01-28 17:29:13 UTC
Created attachment 152502 [details]
doxyfile
Comment 2 Torsten Robitzki 2010-03-18 21:03:02 UTC
I've debug the issue a little bit and what I've found so far is, that the anonymous class gets added as a class named "@0::data" and this seems to hide data::totally_unrelated when the copydoc command looks up f1().
Comment 3 Dimitri van Heesch 2010-04-20 12:24:29 UTC
Confirmed. This should be corrected in the latest subversion update.
Comment 4 Dimitri van Heesch 2010-06-15 11:22:16 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.0. 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.