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
When an anonymous structure is nested within another structure and the same name is used in the anonymous structure a duplicate declaration warning occurs. Here's a simplified example of the code structure:
In this code, the name field is declared in both the main_structure struct and the anonymous struct inside main_structure. These are in different scopes and are not technically duplicates, but Breathe considers them as such and throws a duplicate declaration warning. These fields are in different scopes and can be accessed independently. However, Breathe doesn't seem to distinguish between these scopes when generating the documentation.
I'm looking for a way to resolve this issue. Is there a way to configure Breathe or Doxygen to handle this situation better?
When an anonymous structure is nested within another structure and the same name is used in the anonymous structure a duplicate declaration warning occurs. Here's a simplified example of the code structure:
In this code, the
name
field is declared in both themain_structure
struct and the anonymous struct insidemain_structure
. These are in different scopes and are not technically duplicates, but Breathe considers them as such and throws a duplicate declaration warning. These fields are in different scopes and can be accessed independently. However, Breathe doesn't seem to distinguish between these scopes when generating the documentation.I'm looking for a way to resolve this issue. Is there a way to configure Breathe or Doxygen to handle this situation better?
Real example: https://github.com/LizardByte/Sunshine/blob/a11a795c9643003ccbdbd78eff0e4a5b779bb270/src/video.h#L85-L153
Readthedocs build: https://readthedocs.org/projects/sunshinestream/builds/23577583/
The text was updated successfully, but these errors were encountered: