qapi: Add feature flags to enum members
commitb6c18755e41f7b40aad4c2c8188fb1719535699d
authorMarkus Armbruster <armbru@redhat.com>
Mon, 25 Oct 2021 04:24:02 +0000 (25 06:24 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 27 Oct 2021 15:18:55 +0000 (27 17:18 +0200)
tree461b80ebb2bd36703020099c09172d5c1fb544bf
parent75ecee7262548d21a9e20c12f0b3b12f8a51d5c6
qapi: Add feature flags to enum members

This is quite similar to commit 84ab008687 "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>
13 files changed:
docs/devel/qapi-code-gen.rst
qapi/compat.json
qapi/introspect.json
scripts/qapi/expr.py
scripts/qapi/introspect.py
scripts/qapi/schema.py
tests/qapi-schema/doc-good.json
tests/qapi-schema/doc-good.out
tests/qapi-schema/doc-good.txt
tests/qapi-schema/enum-dict-member-unknown.err
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema/test-qapi.py