You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a C++ function parameter or return type contains a qualified name, then xref resolution fails by attempting to generate a link for the namespace name.
Expected: The foo::something parameter type generates a hyperlink to the something class defined within the foo namespace.
Actual: /.../repro/index.rst:8: WARNING: cpp:identifier reference target not found: foo [ref.identifier]
Using a qualified name in an inline reference (e.g. cpp:class or cpp:any) will resolve the object just fine. It appears that the generated signature nodes contain a reference to some foo (the namespace), which has no link target.
This usually will silently fail unless nitpicky mode is enabled.
How to Reproduce
An empty conf.py is sufficient. The following index.rst will fail to render when nitpicky-mode is enabled:
Describe the bug
If a C++ function parameter or return type contains a qualified name, then xref resolution fails by attempting to generate a link for the namespace name.
Given
Expected: The
foo::something
parameter type generates a hyperlink to thesomething
class defined within thefoo
namespace.Actual:
/.../repro/index.rst:8: WARNING: cpp:identifier reference target not found: foo [ref.identifier]
Using a qualified name in an inline reference (e.g.
cpp:class
orcpp:any
) will resolve the object just fine. It appears that the generated signature nodes contain a reference to somefoo
(the namespace), which has no link target.This usually will silently fail unless nitpicky mode is enabled.
How to Reproduce
An empty
conf.py
is sufficient. The followingindex.rst
will fail to render when nitpicky-mode is enabled:Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: