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
I am not sure if this holds true for all types but I know it definitely does for structures.
typedefstructsome_struct_t {
...
} some_struct_t;
produces this error
WARNING: Duplicate C++ declaration, also defined at API/misc/lv_lru:8.
Declaration is '.. cpp:struct:: some_struct_t'.
I am not 100% sure how Breathe makes the connections but technically speaking if this is done...
typedefstruct {
...
} some_struct_t;
There should be no link formed when using ":cpp:type:`some_struct_t`" and ":c:struct:`some_struct_t`" shouldn't work either. This is because the structure is anonymous. If what is done in the first code block is done then both of those should link back to the structure without issue and there should not be an error that is generated.
":c:struct:`some_struct_t`" will actually link to the structure which it shouldn't technically speaking. It should not provide a link because there is no structure that has the name some_struct_t There is a type that has that name. I can understand having it link like it does which is fine. However, it does need to allow having the type name be the same as the structure name. This would also hold true for enums and unions as well.
The text was updated successfully, but these errors were encountered:
Thank you for the clear bug report. I'm afraid there isn't much work being done on the project at the moment. Please see the new issue on project funding.
In the mean time, I would be grateful if you could try to provide clearer titles for the two bugs you have reported as they are a little bit casual :)
I am not sure if this holds true for all types but I know it definitely does for structures.
produces this error
I am not 100% sure how Breathe makes the connections but technically speaking if this is done...
There should be no link formed when using ":cpp:type:`some_struct_t`" and ":c:struct:`some_struct_t`" shouldn't work either. This is because the structure is anonymous. If what is done in the first code block is done then both of those should link back to the structure without issue and there should not be an error that is generated.
This code
is simply shorthand for this..
But if I use this code...
":c:struct:`some_struct_t`" will actually link to the structure which it shouldn't technically speaking. It should not provide a link because there is no structure that has the name
some_struct_t
There is a type that has that name. I can understand having it link like it does which is fine. However, it does need to allow having the type name be the same as the structure name. This would also hold true for enums and unions as well.The text was updated successfully, but these errors were encountered: