Open marxin opened 2 years ago
I think this is a duplicate of https://github.com/sphinx-doc/sphinx/issues/7740. The current xref lookup in both the C++ and C domains currently only use the parent symbol as reference, not the relative position inside each declaration. Additionally, neither domain yet makes a difference between tagged names and ordinary identifiers. For the C domain there is https://github.com/sphinx-doc/sphinx/pull/8313 which was stalled due to breakage of intersphinx lookups.
Describe the bug
In the following example:
There's a wrongly created a hyperlink to the function (after
enum
keyword):How to Reproduce
Build the snippet.
Expected behavior
No response
Your project
Build the snippet
Screenshots
No response
OS
Linux
Python version
3.8
Sphinx version
4.3.1
Sphinx extensions
No response
Extra tools
No response
Additional context
No response