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

Spurious links generated for C++ keywords and template parameters #10797

Open
marktsuchida opened this issue Apr 14, 2024 · 3 comments
Open

Spurious links generated for C++ keywords and template parameters #10797

marktsuchida opened this issue Apr 14, 2024 · 3 comments
Labels
bug C/C++ fixed but not released Bug is fixed in github, but still needs to make its way to an official release

Comments

@marktsuchida
Copy link

Under conditions that I don't fully understand, things that shouldn't be links (such as the C++ keywords auto, void, template, and template parameter names) become links to some (seemingly randomly chosen, but reproducible) documentation page. The spurious links occur in both brief and detailed function and typedef docs, among other places. Minimal repro below.

Screenshot
image
In this example (the reproduction attached below), the void keyword on member function a() is a link to the page for namespace myproject. This void keyword is also contained in a ref element in the XML output.

In other cases, the link target was sometimes a topic page or a particular function. It looked like all of the spurious links in the project went to the same page or anchor, but the target did change several times as I was minimizing the example.

To Reproduce
Run doxygen in the directory extracted from repro.tgz.
I minimized this from a medium-sized project in which all sorts of items turn into links to a particular page.

Expected behavior
These keywords and template parameters should not be links at all.

Version
All of the following reproduced the bug:
master (eb11063), self-built, macOS arm64.
1.10.0, from Homebrew, macOS arm64.
1.9.8 (c2fe5c3), macOS arm64, from the GitHub Releases .dmg (using the embedded doxygen from the command line).

@albert-github
Copy link
Collaborator

Looks like a regression on (found by bisection):

Commit: 9a8b3dad55672e36f59c04bbfcb29621394c5e5a [9a8b3da]

Date: Sunday, June 18, 2023 8:15:42 PM

issue #7580 No autolink for template functions

With the issue #7580 I also see that there still looks like to be an issue.

@doxygen
Copy link
Owner

doxygen commented Apr 16, 2024

@marktsuchida Please verify if the referenced commit fixes the problem for you. Do not close the issue, this will be done automatically when the next official release becomes available.

@marktsuchida
Copy link
Author

@doxygen Yes, it does indeed fix the problem. Thank you so much for the fast fix!

@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 Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug C/C++ fixed but not released Bug is fixed in github, but still needs to make its way to an official release
Projects
None yet
Development

No branches or pull requests

3 participants