mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qapi: Reject section heading in the middle of a doc comment
docs/devel/qapi-code-gen.txt claims "A heading line must be the first line of the documentation comment block" since commit55ec69f8b1
(docs/devel/qapi-code-gen.txt: Update to new rST backend conventions). Not true, we have code to make it work anywhere in a free-form doc comment: commitdcdc07a97c
(qapi: Make section headings start a new doc comment block). Make it true, for simplicity's sake. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240216145841.2099240-10-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
31c54b92ad
commit
56c64dd60a
5 changed files with 13 additions and 4 deletions
|
@ -440,9 +440,9 @@ class QAPISchemaParser:
|
|||
self,
|
||||
"unexpected '=' markup in definition documentation")
|
||||
if cur_doc.body.text:
|
||||
cur_doc.end_comment()
|
||||
docs.append(cur_doc)
|
||||
cur_doc = QAPIDoc(self, info)
|
||||
raise QAPIParseError(
|
||||
self,
|
||||
"'=' heading must come first in a comment block")
|
||||
cur_doc.append(self.val)
|
||||
self.accept(False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue