gtkdoc: fix gtkdoc header script for structs with inline types
commit0bafb067b9ce0b1d5218f7523473052bcd0dab75
authorThomas Martitz <kugel@rockbox.org>
Mon, 14 Mar 2016 07:26:45 +0000 (14 08:26 +0100)
committerThomas Martitz <kugel@rockbox.org>
Mon, 14 Mar 2016 07:26:45 +0000 (14 08:26 +0100)
treed6fe12111a3001e2b0bef44e161c84277d139789
parent40e15c388bc835fd4aa548d4b07f4314aec08b3d
gtkdoc: fix gtkdoc header script for structs with inline types

Doxygen adds unhandled xml output for structs that define types inline, for
example struct Foo { enum { FOO, BAR } baz; }. A type definitions precedes the
members. The script wrongly assumed the first sectiondef child of compounddef
would contain all members, but actually this is the case for sectiondefs with
kind=public-attrib (the sectiondef defining the type has kind=public-type).
scripts/gen-api-gtkdoc.py