mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
qapi: Call QAPIDoc.check() always
We currently call QAPIDoc.check() only for definition documentation. Calling it for free-form documentation as well is simpler. No change, because it doesn't actually do anything there. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240216145841.2099240-13-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
66227e9047
commit
fedc04c9fc
1 changed files with 2 additions and 5 deletions
|
@ -95,10 +95,6 @@ class QAPISchemaEntity:
|
||||||
for f in self.features:
|
for f in self.features:
|
||||||
doc.connect_feature(f)
|
doc.connect_feature(f)
|
||||||
|
|
||||||
def check_doc(self):
|
|
||||||
if self.doc:
|
|
||||||
self.doc.check()
|
|
||||||
|
|
||||||
def _set_module(self, schema, info):
|
def _set_module(self, schema, info):
|
||||||
assert self._checked
|
assert self._checked
|
||||||
fname = info.fname if info else QAPISchemaModule.BUILTIN_MODULE_NAME
|
fname = info.fname if info else QAPISchemaModule.BUILTIN_MODULE_NAME
|
||||||
|
@ -1223,9 +1219,10 @@ class QAPISchema:
|
||||||
for ent in self._entity_list:
|
for ent in self._entity_list:
|
||||||
ent.check(self)
|
ent.check(self)
|
||||||
ent.connect_doc()
|
ent.connect_doc()
|
||||||
ent.check_doc()
|
|
||||||
for ent in self._entity_list:
|
for ent in self._entity_list:
|
||||||
ent.set_module(self)
|
ent.set_module(self)
|
||||||
|
for doc in self.docs:
|
||||||
|
doc.check()
|
||||||
|
|
||||||
def visit(self, visitor):
|
def visit(self, visitor):
|
||||||
visitor.visit_begin(self)
|
visitor.visit_begin(self)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue