breathe
breathe copied to clipboard
dropping enum member of struct, just showing type
I'm having trouble getting breathe (latest release) to document a member of a c struct which is an enum:
struct struct_a{
int member_a;
enum ENUM_TYPE {
ENUM_A = 1,
ENUM_B = 2
} member_b;
};
Doxygen lists both member_a
and member_b
as public members. Is also lists ENUM_TYPE
as a public type, both in the HTML and XML outputs. But after going trough breathe, member_b
seems to get dropped from the documentation. The type is still listed though. Surprisingly, an anonymous struct, i.e.
struct struct_a{
int member_a;
enum {
ENUM_A = 1,
ENUM_B = 2
} member_b;
};
works fine. It appears as an anonymous type and as a member with that anonymous type. I've attached two screenshots which show the rendered output for the two cases.
This looks like a bug to me unless I'm missing something.
with an anonymous enum:
with a named enum:
This might be fixed with #512, released in Breathe v4.17.0. Note that you also need Sphinx 3.x for recent Breathe versions. Could someone try and post results?