-
-
Notifications
You must be signed in to change notification settings - Fork 203
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 error with function pointer as template argument #652
Comments
This is quite an icky bug. The XML for <compounddef id="classC" kind="class" language="C++" prot="public">
<compoundname>C</compoundname>
<includes refid="test_8hpp" local="no">test.hpp</includes>
<templateparamlist>
<param>
<type>void(*)()</type>
<declname>F</declname>
<defname>F</defname>
</param>
</templateparamlist>
...
</compounddef> I don't see a generic way of getting the parameter name |
Yes, I think it's impossible to do this without parsing the type. I'm not familiar with the Sphinx C++ parser - is that in some way configurable by the end-user or would this require changes to the parser implementation? |
Uses internals in the C++ domain. Needs Sphinx 4.1. Fixes breathe-doc#652
Uses internals in the C++ domain. Needs Sphinx 4.1. Fixes breathe-doc#652
Uses internals in the C++ domain. Needs Sphinx 4.1. Fixes breathe-doc#652
Uses internals in the C++ domain. Needs Sphinx 4.1. Fixes breathe-doc#652
Describe the bug
For this:
Sphinx complains thusly:
To Reproduce
Copy source snippet above into .h file and run Sphinx with Breathe extension enabled (see project files)
Expected behavior
Don't throw an error and produce the right type names. (When the error is thrown some types are assigned names with
PhonyNameDueToError
.)Your project
sphinx-templates.zip
Environment info
(From sphinx-doc/sphinx#8953)
The text was updated successfully, but these errors were encountered: