All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] qapi: Minor fixes around feature names
@ 2022-05-10  6:16 Markus Armbruster
  2022-05-10  6:16 ` [PATCH 1/2] qapi/expr: Enforce feature naming rules again Markus Armbruster
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Markus Armbruster @ 2022-05-10  6:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: michael.roth, jsnow, eblake

Markus Armbruster (2):
  qapi/expr: Enforce feature naming rules again
  docs/devel/qapi-code-gen: Belatedly document feature naming rules

 docs/devel/qapi-code-gen.rst | 9 +++++----
 scripts/qapi/expr.py         | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)

-- 
2.35.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] qapi/expr: Enforce feature naming rules again
  2022-05-10  6:16 [PATCH 0/2] qapi: Minor fixes around feature names Markus Armbruster
@ 2022-05-10  6:16 ` Markus Armbruster
  2022-05-10  6:16 ` [PATCH 2/2] docs/devel/qapi-code-gen: Belatedly document feature naming rules Markus Armbruster
  2022-05-16  5:47 ` [PATCH 0/2] qapi: Minor fixes around feature names Markus Armbruster
  2 siblings, 0 replies; 4+ messages in thread
From: Markus Armbruster @ 2022-05-10  6:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: michael.roth, jsnow, eblake

Commit e42648dccd "qapi/expr.py: Remove single-letter variable"
accidentally removed the check for "only lower case letters and
hyphens".  Restore it.

Fixes: e42648dccdd1defe8f35f247966cd7283f865cd6
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 48578e1698..5a1782b57e 100644
--- a/scripts/qapi/expr.py
+++ b/scripts/qapi/expr.py
@@ -443,7 +443,7 @@ def check_features(features: Optional[object],
         check_keys(feat, info, source, ['name'], ['if'])
         check_name_is_str(feat['name'], info, source)
         source = "%s '%s'" % (source, feat['name'])
-        check_name_str(feat['name'], info, source)
+        check_name_lower(feat['name'], info, source)
         check_if(feat, info, source)
 
 
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] docs/devel/qapi-code-gen: Belatedly document feature naming rules
  2022-05-10  6:16 [PATCH 0/2] qapi: Minor fixes around feature names Markus Armbruster
  2022-05-10  6:16 ` [PATCH 1/2] qapi/expr: Enforce feature naming rules again Markus Armbruster
@ 2022-05-10  6:16 ` Markus Armbruster
  2022-05-16  5:47 ` [PATCH 0/2] qapi: Minor fixes around feature names Markus Armbruster
  2 siblings, 0 replies; 4+ messages in thread
From: Markus Armbruster @ 2022-05-10  6:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: michael.roth, jsnow, eblake

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 docs/devel/qapi-code-gen.rst | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/docs/devel/qapi-code-gen.rst b/docs/devel/qapi-code-gen.rst
index 7b968433a6..cd9b544376 100644
--- a/docs/devel/qapi-code-gen.rst
+++ b/docs/devel/qapi-code-gen.rst
@@ -739,10 +739,11 @@ Type names ending with ``Kind`` or ``List`` are reserved for the
 generator, which uses them for implicit union enums and array types,
 respectively.
 
-Command names, and member names within a type, should be all lower
-case with words separated by a hyphen.  However, some existing older
-commands and complex types use underscore; when extending them,
-consistency is preferred over blindly avoiding underscore.
+Command names, member names within a type, and feature names should be
+all lower case with words separated by a hyphen.  However, some
+existing older commands and complex types use underscore; when
+extending them, consistency is preferred over blindly avoiding
+underscore.
 
 Event names should be ALL_CAPS with words separated by underscore.
 
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] qapi: Minor fixes around feature names
  2022-05-10  6:16 [PATCH 0/2] qapi: Minor fixes around feature names Markus Armbruster
  2022-05-10  6:16 ` [PATCH 1/2] qapi/expr: Enforce feature naming rules again Markus Armbruster
  2022-05-10  6:16 ` [PATCH 2/2] docs/devel/qapi-code-gen: Belatedly document feature naming rules Markus Armbruster
@ 2022-05-16  5:47 ` Markus Armbruster
  2 siblings, 0 replies; 4+ messages in thread
From: Markus Armbruster @ 2022-05-16  5:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: michael.roth, jsnow, eblake

Queued.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-16  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10  6:16 [PATCH 0/2] qapi: Minor fixes around feature names Markus Armbruster
2022-05-10  6:16 ` [PATCH 1/2] qapi/expr: Enforce feature naming rules again Markus Armbruster
2022-05-10  6:16 ` [PATCH 2/2] docs/devel/qapi-code-gen: Belatedly document feature naming rules Markus Armbruster
2022-05-16  5:47 ` [PATCH 0/2] qapi: Minor fixes around feature names Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.