diff options
author | Marc-André Lureau | 2018-12-13 13:37:22 +0100 |
---|---|---|
committer | Markus Armbruster | 2018-12-14 06:52:48 +0100 |
commit | 01ae9cc2544f03299bb8b9923dec5da3d94f7c57 (patch) | |
tree | 19d2cf1fc7ed259d536f225b97c528a5b78cc783 /scripts | |
parent | qapi: add 'If:' condition to struct members documentation (diff) | |
download | qemu-01ae9cc2544f03299bb8b9923dec5da3d94f7c57.tar.gz qemu-01ae9cc2544f03299bb8b9923dec5da3d94f7c57.tar.xz qemu-01ae9cc2544f03299bb8b9923dec5da3d94f7c57.zip |
qapi: add condition to variants documentation
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-21-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 b6f834b917..c03b690161 100755 --- a/scripts/qapi/doc.py +++ b/scripts/qapi/doc.py @@ -168,8 +168,8 @@ def texi_members(doc, what, base, variants, member_func): items += '@item The members of @code{%s}\n' % base.doc_type() if variants: for v in variants.variants: - when = ' when @code{%s} is @t{"%s"}' % ( - variants.tag_member.name, v.name) + when = ' when @code{%s} is @t{"%s"}%s' % ( + variants.tag_member.name, v.name, texi_if(v.ifcond, " (", ")")) if v.type.is_implicit(): assert not v.type.base and not v.type.variants for m in v.type.local_members: |