qapi2texi: Generate descriptions for simple union tags
commitc19eaa64df7be01f060e04c0f13bba5de549c3f3
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Mar 2017 12:57:17 +0000 (15 13:57 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Mar 2017 06:13:03 +0000 (16 07:13 +0100)
treeabda143aa613ee2d90d0da40043c45af3f77f8d9
parent5169cd87673b99be8c017b1969583f0c729917d9
qapi2texi: Generate descriptions for simple union tags

Simple union tags carry no type information, because their type is
implicit.  Their description should make up for it, but many have
none.  Generate one automatically then.

Example change (qemu-qmp-ref.txt):

  -- Simple Union: ImageInfoSpecific

      A discriminated record of image format specific information
      structures.

      Members:
      'type'
-          Not documented
+          One of "qcow2", "vmdk", "luks"
      'data: ImageInfoSpecificQCow2' when 'type' is "qcow2"
      'data: ImageInfoSpecificVmdk' when 'type' is "vmdk"
      'data: QCryptoBlockInfoLUKS' when 'type' is "luks"

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-29-git-send-email-armbru@redhat.com>
scripts/qapi2texi.py