New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherited documentation doesn't work in case of multiple inheritance (Origin: bugzilla #625531) #3873

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.7.1 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2010-07-28 22:38:36 +0000, Lénaïc Huard wrote:

Created attachment 166745
Example case that reproduces the issue.


Since my upgrade to Doxygen 1.7.1, when a class member is not documented but it re-implements a documented member of a base class, the documentation of the base class is not re-used in the derived class anymore.
This seems to occur only in case of multiple inheritance for all the base classes but the last one.
This used to work with Doxygen 1.6.3 and 1.5.7. This behavior seems to be a regression of the 1.7 version.

Please find attached a test case that reproduces the issue.

Doxygen 1.7.1 produces the following warning:
all.hpp:20: warning: Member receiveWithoutCopy() (function) of class ReadableSharedQueue is not documented.
whereas previous versions didn't.

On 2010-07-28 22:39:34 +0000, Lénaïc Huard wrote:

Created attachment 166746
The Doxyfile used to reproduce

On 2010-08-02 21:04:58 +0000, Samuel Nobs wrote:


i'm facing the same issue. however, it seems like Lénaïc's observation
regarding lack of re-use of the documentation is only partially true: if there
is more than one base class, only the documentation for members of the
last base class in the list is used. my attached test case illustrates this (built using the doxyfile obtained via doxygen -g)

On 2010-08-02 21:05:50 +0000, Samuel Nobs wrote:

Created attachment 167013
testcase multiple inheritance

On 2010-08-03 20:06:03 +0000, Jon Harvie wrote:

I have seen the same issue with some code using multiple inheritance that used to work with older versions of Doxygen.

On 2010-08-04 20:34:20 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next subversion update.
If possible, please try the following patch and let me know if it indeed
fixes the problem.

--- ../../doxygen-svn/src/classdef.cpp 2010-07-28 20:45:28.000000000 +0200
+++ classdef.cpp 2010-08-04 22:30:55.000000000 +0200
@@ -2172,20 +2172,18 @@
if (baseClasses())

  • //BaseClassListIterator bcli(*baseClasses());
  • //for ( ; bcli.current() && !found ; ++bcli)
  • BaseClassDef *bcdi = baseClasses()->first();
  • while (bcdi)
  • // Beware: trying to optimise the iterator away using ->first() & ->next()
  • // causes bug 625331
  • BaseClassListIterator bcli(*baseClasses());
  • for ( ; bcli.current() && !found ; ++bcli)
  •  //ClassDef *ccd=bcli.current()->classDef;
  •  ClassDef *ccd=bcdi->classDef;
  •  ClassDef *ccd=bcli.current()->classDef;
     if (!followInstances && ccd->templateMaster()) ccd=ccd->templateMaster();
     //printf("isBaseClass() baseclass %s\n",ccd->name().data());
     if (ccd==bcd) 
  •  bcdi = baseClasses()->next();

On 2010-08-04 21:57:47 +0000, Samuel Nobs wrote:


thanks, this patch works both in my stripped down test case and my huge real-world case.

On 2010-08-04 22:30:25 +0000, Lénaïc Huard wrote:


Same as Samuel: this patch fixes both my stripped down test case and my real-world case.

Thanks you very much.

On 2010-08-05 17:45:48 +0000, Jon Harvie wrote:

The patch works for my code too.

Thank you very much for such a quick resolution.

On 2010-08-05 20:45:51 +0000, Lénaïc Huard wrote:

Hello Dimitri,

There is only one typo in the patch... in the comments. You are referencing
that bug, but there is a typo in the number: its 625531 and not 625331.

That's all. ;-)
Thanks again for your reactivity and your efficiency!

On 2010-08-06 20:14:01 +0000, Dimitri van Heesch wrote:

Hi Lénaïc, thanks for the review and thank you both for the feedback.

On 2010-08-14 19:08:31 +0000, Dimitri van Heesch wrote:

*** Bug 626037 has been marked as a duplicate of this bug. ***

On 2010-10-09 08:19:17 +0000, Dimitri van Heesch wrote:

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.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment