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
Describe the bug
I have a C function definition with a trailing macro which specifies the function as "noreturn" and this gives an error during build, even when this keyword is defined in c_id_attributes.
/home/v01d/coding/nuttx_docs/nuttx/doc/reference/os/arch.rst:225: WARNING: Invalid C declaration: Expected end of definition. [error at 25]
void up_exit(int status) noreturn_function;
-------------------------^
Expected behavior
The macro should be ignored while parsing the function declaration.
Thanks! Attributes can appear in many different places, and parsing of them was simply not added to this position. It should be in the next version (#8078), so your code should work then.
Note though that custom attributes are not ignored by the parser, but are rendered in the output.
Describe the bug
I have a C function definition with a trailing macro which specifies the function as "noreturn" and this gives an error during build, even when this keyword is defined in
c_id_attributes
.To Reproduce
I have the following on an RST:
And this on the config:
And during build I get:
Expected behavior
The macro should be ignored while parsing the function declaration.
Your project
https://github.com/v01d/incubator-nuttx/tree/docs/doc
Environment info
The text was updated successfully, but these errors were encountered: