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
Unfortunately, it looks like Sphinx doesn't support them.
Exception occurred:
File "/usr/local/lib/python3.7/site-packages/sphinx/domains/cpp.py", line 6099, in _parse_type
raise self._make_multi_error(prevErrors, header)
sphinx.util.cfamily.DefinitionError: Error when parsing function declaration.
If the function has no return type:
Invalid C++ declaration: Parameterized GNU style attribute not yet supported. [error at 25]
__attribute__ ((optimize(3))) void readMatrix(void)
-------------------------^
If the function has a return type:
Invalid C++ declaration: Parameterized GNU style attribute not yet supported. [error at 25]
__attribute__ ((optimize(3))) void readMatrix(void)
-------------------------^
I'm running Sphinx 3.1.1, though this functionality doesn't appear to have changed in 4.
I tried to get clever with the custom attribute support you offer, but can't seem to get that to work either.
Hi folks.
My C++ codebase uses GNU attributes for code like
__attribute__ ((optimize(3))) void readMatrix(void)
Unfortunately, it looks like Sphinx doesn't support them.
I'm running Sphinx 3.1.1, though this functionality doesn't appear to have changed in 4.
I tried to get clever with the custom attribute support you offer, but can't seem to get that to work either.
Is there a right way to do this? I'd honestly be fine having the attributes stripped entirely for doc generation if there isn't another option.
Even though I'm bumping up against a sharp edge, I really appreciate Sphinx. Thanks so much for making a useful tool.
The text was updated successfully, but these errors were encountered: