summary refs log tree commit diff stats
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-04-21 14:20:29 -0400
committerMarkus Armbruster <armbru@redhat.com>2021-04-30 12:59:54 +0200
commit79e4fd14fb0f9e145413c6813dc541fdb50e3923 (patch)
treeab7a4d4f2742687915b3b98980e23db3716735a1 /scripts/qapi/commands.py
parent328e8ca71abb9be7084ba16baad2a770c4e32d92 (diff)
downloadfocaccia-qemu-79e4fd14fb0f9e145413c6813dc541fdb50e3923.tar.gz
focaccia-qemu-79e4fd14fb0f9e145413c6813dc541fdb50e3923.zip
qapi/expr: Only explicitly prohibit 'Kind' nor 'List' for type names
Per list review: qapi-code-gen.txt reserves suffixes Kind and
List only for type names, but the code rejects them for events and
commands, too.

It turns out we reject them earlier anyway: In check_name_upper() for
event names, and in check_name_lower() for command names.

Still, adjust the code for clarity over what precisely we are guarding
against.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210421182032.3521476-15-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions