qapi: Improve error position for bogus argument descriptions
commit15333abed9112f99e0b1af4327154af733b987d3
authorMarkus Armbruster <armbru@redhat.com>
Fri, 16 Feb 2024 14:58:29 +0000 (16 15:58 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 26 Feb 2024 09:43:56 +0000 (26 10:43 +0100)
tree91739126eb386685656c7e30dcc2fffae826d2ed
parente51e80ccf671dc285d0f868fff38aedb01694ae9
qapi: Improve error position for bogus argument descriptions

When documented arguments don't exist, the error message points to the
beginning of the definition comment.  Point to the first bogus
argument description instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240216145841.2099240-6-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/qapi/parser.py
tests/qapi-schema/doc-bad-alternate-member.err
tests/qapi-schema/doc-bad-boxed-command-arg.err
tests/qapi-schema/doc-bad-command-arg.err
tests/qapi-schema/doc-bad-enum-member.err
tests/qapi-schema/doc-bad-event-arg.err
tests/qapi-schema/doc-bad-feature.err
tests/qapi-schema/doc-bad-union-member.err