diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-12-13 16:37:21 +0400 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-12-14 06:52:48 +0100 |
commit | 8867bf08087a3d508a0ecce661f7e430c1747022 (patch) | |
tree | c9404cc5c0afe4469cc1fedd60c810332b71743d /scripts | |
parent | a35c9bf82aff4e80a90f0adfc7383d03749db0b6 (diff) | |
download | qemu-8867bf08087a3d508a0ecce661f7e430c1747022.zip qemu-8867bf08087a3d508a0ecce661f7e430c1747022.tar.gz qemu-8867bf08087a3d508a0ecce661f7e430c1747022.tar.bz2 |
qapi: add 'If:' condition to struct members documentation
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-20-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/qapi/doc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/qapi/doc.py b/scripts/qapi/doc.py index ab36b9d..b6f834b 100755 --- a/scripts/qapi/doc.py +++ b/scripts/qapi/doc.py @@ -143,10 +143,10 @@ def texi_member(member, desc, suffix): """Format a table of members item for an object type member""" typ = member.type.doc_type() membertype = ': ' + typ if typ else '' - return '@item @code{%s%s}%s%s\n%s' % ( + return '@item @code{%s%s}%s%s\n%s%s' % ( member.name, membertype, ' (optional)' if member.optional else '', - suffix, desc) + suffix, desc, texi_if(member.ifcond, prefix='@*')) def texi_members(doc, what, base, variants, member_func): |