mirror of https://gitee.com/openkylin/qemu.git
qapi: Enforce feature naming rules
Feature names should use '-', not '_'. Enforce this. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-24-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
9af4b6b9e8
commit
e744708a77
|
@ -213,7 +213,7 @@ def check_features(features, info):
|
|||
check_keys(f, info, source, ['name'], ['if'])
|
||||
check_name_is_str(f['name'], info, source)
|
||||
source = "%s '%s'" % (source, f['name'])
|
||||
check_name_lower(f['name'], info, source, permit_underscore=True)
|
||||
check_name_lower(f['name'], info, source)
|
||||
check_if(f, info, source)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue