summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2017-03-15 13:57:02 +0100
committerMarkus Armbruster <armbru@redhat.com>2017-03-16 07:13:02 +0100
commit4636211e4dddfc798d9e9072546a87f9adf7ce5a (patch)
treec3045ede480e8b5274c1a522423e6152d177b1af /scripts
parent8c0aa61318a63d42099ee0e3d40e80e8108cbc21 (diff)
downloadqemu-4636211e4dddfc798d9e9072546a87f9adf7ce5a.tar.gz
qapi: Fix QAPISchemaEnumType.is_implicit() for 'QType'
Missed in commit 7264f5c. Harmless, because nothing checks whether an enumeration type is implicit so far. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1489582656-31133-14-git-send-email-armbru@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/qapi.py b/scripts/qapi.py
index fb10d937aa..dd083b703c 100644
--- a/scripts/qapi.py
+++ b/scripts/qapi.py
@@ -1152,8 +1152,8 @@ class QAPISchemaEnumType(QAPISchemaType):
v.check_clash(self.info, seen)
def is_implicit(self):
- # See QAPISchema._make_implicit_enum_type()
- return self.name.endswith('Kind')
+ # See QAPISchema._make_implicit_enum_type() and ._def_predefineds()
+ return self.name.endswith('Kind') or self.name == 'QType'
def c_type(self):
return c_name(self.name)