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>
Showing
- scripts/qapi.py 13 additions, 25 deletionsscripts/qapi.py
- tests/qapi-schema/doc-bad-union-member.err 1 addition, 0 deletionstests/qapi-schema/doc-bad-union-member.err
- tests/qapi-schema/doc-bad-union-member.exit 1 addition, 1 deletiontests/qapi-schema/doc-bad-union-member.exit
- tests/qapi-schema/doc-bad-union-member.out 0 additions, 11 deletionstests/qapi-schema/doc-bad-union-member.out
Loading
Please register or sign in to comment