qapi: Add feature flags to enum members
This is quite similar to commit 84ab0086 "qapi: Add feature flags to struct members", only for enums instead of structs. Special feature flag 'deprecated' is silently ignored there. This is okay only because it will be implemented shortly. Signed-off-by:Markus Armbruster <armbru@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com> Message-Id: <20211025042405.3762351-3-armbru@redhat.com> Reviewed-by:
John Snow <jsnow@redhat.com>
Showing
- docs/devel/qapi-code-gen.rst 11 additions, 5 deletionsdocs/devel/qapi-code-gen.rst
- qapi/compat.json 2 additions, 0 deletionsqapi/compat.json
- qapi/introspect.json 4 additions, 1 deletionqapi/introspect.json
- scripts/qapi/expr.py 2 additions, 1 deletionscripts/qapi/expr.py
- scripts/qapi/introspect.py 3 additions, 2 deletionsscripts/qapi/introspect.py
- scripts/qapi/schema.py 20 additions, 2 deletionsscripts/qapi/schema.py
- tests/qapi-schema/doc-good.json 4 additions, 1 deletiontests/qapi-schema/doc-good.json
- tests/qapi-schema/doc-good.out 3 additions, 0 deletionstests/qapi-schema/doc-good.out
- tests/qapi-schema/doc-good.txt 3 additions, 0 deletionstests/qapi-schema/doc-good.txt
- tests/qapi-schema/enum-dict-member-unknown.err 1 addition, 1 deletiontests/qapi-schema/enum-dict-member-unknown.err
- tests/qapi-schema/qapi-schema-test.json 2 additions, 1 deletiontests/qapi-schema/qapi-schema-test.json
- tests/qapi-schema/qapi-schema-test.out 1 addition, 0 deletionstests/qapi-schema/qapi-schema-test.out
- tests/qapi-schema/test-qapi.py 1 addition, 0 deletionstests/qapi-schema/test-qapi.py
Loading
Please register or sign in to comment