summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/error.py
diff options
context:
space:
mode:
authorMarkus Armbruster2021-10-28 12:25:16 +0200
committerMarkus Armbruster2021-10-29 18:23:09 +0200
commita130728554d0cc19ef0ed4c1c824305c1682e64b (patch)
tree0922ae397f9bfdcb5a308b215b951a88177fad60 /scripts/qapi/error.py
parentqapi: Tools for sets of special feature flags in generated code (diff)
downloadqemu-a130728554d0cc19ef0ed4c1c824305c1682e64b.tar.gz
qemu-a130728554d0cc19ef0ed4c1c824305c1682e64b.tar.xz
qemu-a130728554d0cc19ef0ed4c1c824305c1682e64b.zip
qapi: Generalize struct member policy checking
The generated visitor functions call visit_deprecated_accept() and visit_deprecated() when visiting a struct member with special feature flag 'deprecated'. This makes the feature flag visible to the actual visitors. I want to make feature flag 'unstable' visible there as well, so I can add policy for it. To let me make it visible, replace these functions by visit_policy_reject() and visit_policy_skip(), which take the member's special features as an argument. Note that the new functions have the opposite sense, i.e. the return value flips. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20211028102520.747396-6-armbru@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> [Unbreak forward visitor]
Diffstat (limited to 'scripts/qapi/error.py')
0 files changed, 0 insertions, 0 deletions