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
Classes not being added to groups #8638
Comments
This is causing bugs in the docs for libstdc++ as noted at gcc-mirror/gcc@6963c3b Some classes that are defined in |
It seems that adding I don't know why that makes any difference, Doxygen is clearly able to tell that the comment block is for that class, because it puts the text on the page for the class. But if I tell it what it already knows, then this bug goes away. |
Using the example from the documentation on grouping, I find that adding any non-whitespace content to a class stops it from being included in the group:
This behaviour started with v1.8.17. |
I tried the code you supplied with the 1.8.16, 1.8.17 and 1.9.1 versions of doxygen and the configuration file from the group example, but I don't see a difference. What did I oversee? (maybe enlighten with some images?) Also (always): Can you please attach a, small, self contained example (source+configuration file in a tar or zip) that allows us to reproduce the problem? Please don't add external links as they might not be persistent. |
@jwakely For the Diagnostics and 1.9.1 I see (file html/a00023.html): For the Diagnostics and master I see (file html/a00023.html): For the Exceptions and 1.9.1 I see (file html/a00026.html): For the Exceptions and master I see (file html/a00026.html): Are these the problems you meant? |
@albert-github yes I can confirm the same results (I have a Is the root cause of the bug understood? Is the commit that fixed it known, so I can look into backporting it to the Fedora RPMs? Are there tests to prevent regressions? |
Setting the issue to fixed but not released.
|
Thanks for looking at it. I'm now worried mine is a separate issue, and I'm muddying the waters, but here is a tiny example that reproduces the problem. Importantly, it looks like this only happens if |
At first glance it does look like muddying the waters, though: with the current master(1.9.2 (97dffa0)) I see again: Also in this case the fix is by the
so there was no muddying, but it was helpful that it was with this issue... |
Good news! I'll build from source for now, then. Cheers! |
Understood. Thanks for the commit ID. |
This issue was previously marked 'fixed but not released', |
I bisected it and confirmed that b3cefe5 fixed my issue. I also determined that my issue only happened with |
Before Doxygen version 1.9.2 this option is broken (see doxygen/doxygen#8638 for more details) and classes are not added to the correct groups by @InGroup and @addtogroup. Also remove the obsolete CLASS_DIAGRAMS option that causes a warning. libstdc++-v3/ChangeLog: * doc/doxygen/user.cfg.in (GROUP_NESTED_COMPOUNDS): Set to NO. (CLASS_DIAGRAMS): Remove obsolete option. (cherry picked from commit 9c3a8fe)
Describe the bug
C++ classes are sometimes not documented under the "module" that they are added to by using grouping commands such as
\defgroup
or\addtogroup
or explicit\ingroup
commands.Expected behavior
In the attached reproducer, the
std::bad_exception
andstd::system_error
classes should be in the "Exceptions" module. Thestd::error_code
andstd::error_condition
classes should be in the Diagnostics module. They are all documented (you can find them in the Class Index) but they are not grouped where they should be.To Reproduce
doxygen-groups-bug.tar.gz
Extract attached tarball, then run
doxygen
Version
1.9.1
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 34 (Thirty Four)
Release: 34
Codename: ThirtyFour
Using the default Fedora package, doxygen-1.9.1-10.fc34.x86_64
The text was updated successfully, but these errors were encountered: