]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: Fix detection of bogus member documentation
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Mar 2017 12:57:26 +0000 (13:57 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Mar 2017 06:13:04 +0000 (07:13 +0100)
commit816a57cd6ebb6fe820766ac12478a56a5fa33d52
tree1f6d4f1946a0c1dcef1fb56d3ae4446426ad2697
parentf641d06ad63773ae524fb073b2f8639e1db1462c
qapi: Fix detection of bogus member documentation

check_definition_doc() checks for member documentation without a
matching member.  It laboriously second-guesses what members
QAPISchema._def_exprs() will create.  That's a stupid game.

Move the check into QAPISchema.check(), where the members are known.
Delegate the actual checking to new QAPIDoc.check().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-38-git-send-email-armbru@redhat.com>
scripts/qapi.py
tests/qapi-schema/doc-bad-union-member.err
tests/qapi-schema/doc-bad-union-member.exit
tests/qapi-schema/doc-bad-union-member.out