[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 16/16] qapi: Divorce QAPIDoc from QAPIParseError
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 16/16] qapi: Divorce QAPIDoc from QAPIParseError |
Date: |
Tue, 20 Feb 2024 15:25:38 +0000 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Fri, Feb 16, 2024 at 03:58:40PM +0100, Markus Armbruster wrote:
> QAPIDoc stores a reference to QAPIParser just to pass it to
> QAPIParseError. The resulting error position depends on the state of
> the parser. It happens to be the current comment line. Servicable,
> but action at a distance.
>
> The commit before previous moved most uses of QAPIParseError from
> QAPIDoc to QAPIParser. There are just three left. Convert them to
> QAPISemError. This involves passing info to a few methods. Then drop
> the reference to QAPIParser.
>
> The three errors lose the column number. Not really interesting here:
> it's the comment line's indentation.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> scripts/qapi/parser.py | 66 +++++++++------------
> tests/qapi-schema/doc-duplicated-arg.err | 2 +-
> tests/qapi-schema/doc-duplicated-return.err | 2 +-
> tests/qapi-schema/doc-duplicated-since.err | 2 +-
> tests/qapi-schema/doc-empty-arg.err | 2 +-
> 5 files changed, 32 insertions(+), 42 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- Re: [PATCH 11/16] qapi: Recognize section tags and 'Features:' only after blank line, (continued)
- [PATCH 06/16] qapi: Improve error position for bogus invalid "Returns" section, Markus Armbruster, 2024/02/16
- [PATCH 01/16] tests/qapi-schema: Fix test 'QAPI rST doc', Markus Armbruster, 2024/02/16
- [PATCH 05/16] qapi: Improve error position for bogus argument descriptions, Markus Armbruster, 2024/02/16
- [PATCH 13/16] qapi: Merge adjacent untagged sections, Markus Armbruster, 2024/02/16
- [PATCH 16/16] qapi: Divorce QAPIDoc from QAPIParseError, Markus Armbruster, 2024/02/16
- Re: [PATCH 16/16] qapi: Divorce QAPIDoc from QAPIParseError,
Daniel P . Berrangé <=
- [PATCH 03/16] tests/qapi-schema: Cover 'Features:' not followed by descriptions, Markus Armbruster, 2024/02/16
- [PATCH 15/16] qapi: Reject multiple and empty feature descriptions, Markus Armbruster, 2024/02/16
- [PATCH 08/16] qapi: Rename QAPIDoc.Section.name to .tag, Markus Armbruster, 2024/02/16
- [PATCH 02/16] tests/qapi-schema: Cover duplicate 'Features:' line, Markus Armbruster, 2024/02/16
- [PATCH 12/16] qapi: Call QAPIDoc.check() always, Markus Armbruster, 2024/02/16