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:
Markus Armbruster 2021-03-23 10:40:20 +01:00
parent 9af4b6b9e8
commit e744708a77
1 changed files with 1 additions and 1 deletions

View File

@ -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)