[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 23/28] qapi: Enforce feature naming rules
From: |
Markus Armbruster |
Subject: |
[PATCH 23/28] qapi: Enforce feature naming rules |
Date: |
Tue, 23 Mar 2021 10:40:20 +0100 |
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(-)
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)
--
2.26.3
- Re: [PATCH 04/28] tests/qapi-schema: Belatedly update comment on alternate clash, (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 <=
- [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