qapi: Fix minor bugs, require boxed for conditional arguments
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | qapi: Fix error message format regressionscripts/ | +1 | 1 reply | |
| 2/14 | qapi/schema: Use super()scripts/ | +1 | 1 reply | |
| 3/14 | qapi: Clean up after removal of simple unionsscripts/ | +1 | 1 reply | |
| 4/14 | qapi: Split up check_type()scripts/ | +67 | 2 replies | |
| 5/14 | qapi: Improve error message for unexpected array typesscripts/ tests/ tests/ | +2 | 1 reply | |
| 6/14 | qapi: Simplify code a bit after previous commitscripts/ | +3 | 2 replies | |
| 7/14 | qapi: Fix error message when type name or array is expectedscripts/ tests/ tests/ +2 more | +11 | 1 reply | |
| 8/14 | qapi: Fix to reject 'data': 'mumble' in structscripts/ tests/ tests/ +2 more | +20 | 2 replies | |
| 9/14 | tests/qapi-schema: Improve union discriminator coveragetests/ tests/ | +3 | 2 replies | |
| 10/14 | tests/qapi-schema: Rename a few conditionalstests/ tests/ | +12 | 1 reply | |
| 11/14 | tests/qapi-schema: Clean up positive test for conditionalstests/ tests/ | +6 | 4 replies | |
| 12/14 | tests/qapi-schema: Cover optional conditional struct membertests/ tests/ | +4 | 1 reply | |
| 13/14 | qapi: Fix code generated for optional conditional struct memberscripts/ | +2 | 1 reply | |
| 14/14 | qapi: Require boxed for conditional command and event argumentsdocs/ scripts/ scripts/ +13 more | +48 | 1 reply |
Reviews trailers per patch
All 14 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé | Eric Blake |
|---|---|---|
| 1/14 | R-b | |
| 2/14 | R-b | |
| 3/14 | R-b | |
| 4/14 | R-b | |
| 5/14 | R-b | |
| 6/14 | R-b | |
| 7/14 | R-b | |
| 8/14 | R-b | |
| 9/14 | R-b | |
| 10/14 | R-b | |
| 11/14 | R-b | |
| 12/14 | R-b | |
| 13/14 | R-b | |
| 14/14 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] qapi: Fix minor bugs, require boxed for conditional arguments
PATCH 01-08 fix a few minor bugs I found on the way. Could be a separate series, but keeping them here seems simpler.
PATCH 09-12 improve tests for 'if' conditionals.
PATCH 13 fixes a code generation regression, and PATCH 14 rejects uses conditionals that never worked and aren't worth fixing.
Markus Armbruster (14):
qapi: Fix error message format regression qapi/schema: Use super()
qapi: Clean up after removal of simple unions
qapi: Split up check_type()
qapi: Improve error message for unexpected array types
qapi: Simplify code a bit after previous commit
qapi: Fix error message when type name or array is expected
qapi: Fix to reject 'data': 'mumble' in struct tests/qapi-schema: Improve union discriminator coverage tests/qapi-schema: Rename a few conditionals tests/qapi-schema: Clean up positive test for conditionals tests/qapi-schema: Cover optional conditional struct member
qapi: Fix code generated for optional conditional struct member
qapi: Require boxed for conditional command and event arguments
docs/devel/qapi-code-gen.rst | 5 +- scripts/qapi/commands.py | 1 + scripts/qapi/expr.py | 115 ++++++++++-------- scripts/qapi/gen.py | 1 + scripts/qapi/main.py | 2 +- scripts/qapi/schema.py | 16 ++- scripts/qapi/visit.py | 2 + tests/qapi-schema/args-if-implicit.err | 2 + tests/qapi-schema/args-if-implicit.json | 4 + tests/qapi-schema/args-if-implicit.out | 0 tests/qapi-schema/args-if-unboxed.err | 2 + tests/qapi-schema/args-if-unboxed.json | 6 + tests/qapi-schema/args-if-unboxed.out | 0 tests/qapi-schema/bad-data.err | 2 +- tests/qapi-schema/event-args-if-unboxed.err | 2 + tests/qapi-schema/event-args-if-unboxed.json | 4 + tests/qapi-schema/event-args-if-unboxed.out | 0 tests/qapi-schema/event-nest-struct.err | 2 +- tests/qapi-schema/meson.build | 3 + tests/qapi-schema/nested-struct-data.err | 2 +- tests/qapi-schema/qapi-schema-test.json | 20 +-- tests/qapi-schema/qapi-schema-test.out | 32 ++--- tests/qapi-schema/returns-dict.err | 2 +- tests/qapi-schema/struct-data-typename.err | 2 + tests/qapi-schema/struct-data-typename.json | 2 + tests/qapi-schema/struct-data-typename.out | 0 tests/qapi-schema/struct-member-invalid.err | 2 +- tests/qapi-schema/union-array-branch.err | 2 +- .../union-invalid-discriminator.err | 2 +- .../union-invalid-discriminator.json | 4 +- 30 files changed, 141 insertions(+), 98 deletions(-) create mode 100644 tests/qapi-schema/args-if-implicit.err create mode 100644 tests/qapi-schema/args-if-implicit.json create mode 100644 tests/qapi-schema/args-if-implicit.out create mode 100644 tests/qapi-schema/args-if-unboxed.err create mode 100644 tests/qapi-schema/args-if-unboxed.json create mode 100644 tests/qapi-schema/args-if-unboxed.out create mode 100644 tests/qapi-schema/event-args-if-unboxed.err create mode 100644 tests/qapi-schema/event-args-if-unboxed.json create mode 100644 tests/qapi-schema/event-args-if-unboxed.out create mode 100644 tests/qapi-schema/struct-data-typename.err create mode 100644 tests/qapi-schema/struct-data-typename.json create mode 100644 tests/qapi-schema/struct-data-typename.out
Signature · 1 line
2.39.2