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 690741 - friend class wrongly placed in global namespace
friend class wrongly placed in global namespace
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: general
1.8.3-SVN
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
Depends on:
Blocks:
 
 
Reported: 2012-12-26 17:25 UTC by Matthew Woehlke
Modified: 2018-07-30 10:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
complete example demonstrating the problem (2.48 KB, application/octet-stream)
2012-12-26 17:25 UTC, Matthew Woehlke
Details

Description Matthew Woehlke 2012-12-26 17:25:42 UTC
Created attachment 232247 [details]
complete example demonstrating the problem

Given some code like:

namespace animals
{
  template <typename T> class milk_provider;

  /// Moo!
  class cow
  {
    template <typename T> friend class milk_provider;
  };
}

Doxygen wrongly believes that milk_provider lives in the global namespace. As a result, a bogus class entry is generated, and links within the friending class are wrong.

Complete example attached. Note that two entries are created for 'milk_provider'; one in the 'animals' namespace (the correct one, from the definition and documentation of the class), and one in the global namespace (wrong, from the friend declaration in 'cow').
Comment 1 André Klapper 2018-07-30 10:24:28 UTC
As discussed in https://github.com/doxygen/doxygen/pull/734 , Doxygen has moved its issue tracking to 

   https://github.com/doxygen/doxygen/issues

All Doxygen tickets in GNOME Bugzilla have been migrated to Github. You can subscribe and participate in the new ticket in Github. You can find the corresponding Github ticket by searching for its Bugzilla ID (number) in Github.

Hence I am closing this GNOME Bugzilla ticket.
Please use the corresponding ticket in Github instead. Thanks a lot!