Skip to content
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

Friend functions returning decltype(auto) not inserted in the "friends" group (Origin: bugzilla #782262) #6202

Closed
doxygen opened this issue Jul 2, 2018 · 3 comments
Labels
bug C/C++ C++11 For features introduced in the 2011 spec of C++

Comments

@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status NEW severity normal in component general for ---
Reported in version 1.8.13-GIT on platform Other
Assigned to: Dimitri van Heesch

On 2017-05-06 11:53:03 +0000, raskolnikov@gnu.org wrote:

Normally, friend functions are documented in a "friends" section (`
<sectiondef kind="friend">` in the XML output).

For an example, let's look at this file:
https://github.com/arximboldi/immer/blob/SHA:
f10703a66d4f0ee8d52c29a0fe28601773d9afd6/immer/flex_vector.hpp

It has various `operator+` overloads. The ones that return a named type are
correctly inserted in the `friends` section, but the ones returning
`decltype(auto)` are not.

Here is a link to the generated XML output:
https://gist.github.com/arximboldi/c3e4d4f6024d2d3e94238a5ac6517a8a

I am using Doxygen Version: 1.8.13-4+b1 (Debian Sid).
albert-github added a commit to albert-github/doxygen that referenced this issue Jul 16, 2021
…the "friends" group

Also know as issue doxygen#6202

- In case of a decltype the content of the name buffer was not added to the type (as normally done by means of the `addType` function) and thhe name buffer contains the word "friend" in this case.
- colored the word "decltype" in the code properly
@albert-github albert-github added bug C++11 For features introduced in the 2011 spec of C++ C/C++ labels Jul 16, 2021
@albert-github
Copy link
Collaborator

I've just pushed a proposed patch, pull request #8675

@albert-github albert-github added the fixed but not released Bug is fixed in github, but still needs to make its way to an official release label Jul 17, 2021
@albert-github
Copy link
Collaborator

Code has been integrated in master on github (please don't close the issue as this will be done at the moment of an official release).

@doxygen
Copy link
Owner Author

doxygen commented Aug 18, 2021

This issue was previously marked 'fixed but not released',
which means it should be fixed in doxygen version 1.9.2.
Please verify if this is indeed the case. Reopen the
issue if you think it is not fixed and please include any additional information
that you think can be relevant (preferably in the form of a self-contained example).

@doxygen doxygen removed the fixed but not released Bug is fixed in github, but still needs to make its way to an official release label Aug 18, 2021
@doxygen doxygen closed this as completed Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug C/C++ C++11 For features introduced in the 2011 spec of C++
Projects
None yet
Development

No branches or pull requests

2 participants