[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 23/28] qapi: Enforce feature naming rules
From: |
Eric Blake |
Subject: |
Re: [PATCH 23/28] qapi: Enforce feature naming rules |
Date: |
Tue, 23 Mar 2021 10:16:01 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 3/23/21 4:40 AM, Markus Armbruster wrote:
> Feature names should use '-', not '_'. Enforce this.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> scripts/qapi/expr.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thankfully no offenders ;)
Reviewed-by: Eric Blake <eblake@redhat.com>
>
> diff --git a/scripts/qapi/expr.py b/scripts/qapi/expr.py
> index ce37b426c9..01a994412d 100644
> --- a/scripts/qapi/expr.py
> +++ b/scripts/qapi/expr.py
> @@ -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)
>
>
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- [PATCH 24/28] qapi: Enforce command naming rules, (continued)
- [PATCH 24/28] qapi: Enforce command naming rules, Markus Armbruster, 2021/03/23
- [PATCH 25/28] tests/qapi-schema: Switch member name clash test to struct, Markus Armbruster, 2021/03/23
- [PATCH 16/28] qapi: Factor out QAPISchemaParser._check_pragma_list_of_str(), Markus Armbruster, 2021/03/23
- [PATCH 27/28] qapi: Enforce enum member naming rules, Markus Armbruster, 2021/03/23
- [PATCH 23/28] qapi: Enforce feature naming rules, Markus Armbruster, 2021/03/23
- Re: [PATCH 23/28] qapi: Enforce feature naming rules,
Eric Blake <=
- [PATCH 21/28] tests-qmp-cmds: Drop unused and incorrect qmp_TestIfCmd(), Markus Armbruster, 2021/03/23
- [PATCH 18/28] tests/qapi-schema: Rename returns-whitelist to returns-bad-type, Markus Armbruster, 2021/03/23
- [PATCH 28/28] qapi: Enforce union and alternate branch naming rules, Markus Armbruster, 2021/03/23
- [PATCH 13/28] qapi: Enforce event naming rules, Markus Armbruster, 2021/03/23