]> www.infradead.org Git - users/dwmw2/qemu.git/commit
qapi: Improve error message for empty doc sections
authorMarkus Armbruster <armbru@redhat.com>
Fri, 16 Feb 2024 14:58:31 +0000 (15:58 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 26 Feb 2024 09:43:56 +0000 (10:43 +0100)
commit573e2223f91a1662dad3c4ab5f6724bbe2633eff
treef0b5120853594459b4874852ffb4cdea92100f21
parentbf00dc19f3aacf014b308d57bb0debf250339396
qapi: Improve error message for empty doc sections

Improve the message for an empty tagged section from

    empty doc section 'Note'

to

    text required after 'Note:'

and the message for an empty argument or feature description from

    empty doc section 'foo'

to

    text required after '@foo:'

Improve the error position to refer to the beginning of the empty
section instead of its end.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240216145841.2099240-8-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/sphinx/qapidoc.py
scripts/qapi/parser.py
tests/qapi-schema/doc-empty-section.err