Received: from eggs.gnu.org ([2001:4830:134:3::10]:50955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2dLV-0002ci-Cy for qemu-devel@nongnu.org; Fri, 04 Nov 2016 08:11:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2dLS-0004EL-1C for qemu-devel@nongnu.org; Fri, 04 Nov 2016 08:11:45 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:36274) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2dLR-0004DO-PV for qemu-devel@nongnu.org; Fri, 04 Nov 2016 08:11:41 -0400 Date: Fri, 4 Nov 2016 08:11:40 -0400 (EDT) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <1426137426.3795605.1478261500743.JavaMail.zimbra@redhat.com> In-Reply-To: <87insfme3y.fsf@dusky.pond.sub.org> References: <20160925181836.18293-1-marcandre.lureau@redhat.com> <20160925181836.18293-3-marcandre.lureau@redhat.com> <87insfme3y.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 02/11] qapi: fix schema symbol sections List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , qemu-devel@nongnu.org Hi ----- Original Message ----- > Marc-Andr=C3=A9 Lureau writes: >=20 > > According to documentation, there needs to be '##' to start a symbol >=20 > Suggest to be explicit, and say "According to docs/qapi-code-gen.txt". >=20 ok > > section, that's also what the documentation parser expects. >=20 > Does the doc parser complain when its expectation isn't met? I haven't > reviewed it, yet... I have improved the error reporting in the next iteration, it will raise an= error in this case and others. >=20 > In my opinion, qapi-code-gen.txt should demand everything the doc parser > needs (it may demand more), and the doc parser should complain about > everything qapi-code-gen.txt demands and the schema doesn't provide. >=20 > > Signed-off-by: Marc-Andr=C3=A9 Lureau >=20 > The patch fixes all missing '##' at the beginning of definition comment > blocks. Good. >=20 > qapi-code-gen.txt also demands '##' at the end. Does the parser rely on > it? Offenders: fixed >=20 > diff --git a/qapi-schema.json b/qapi-schema.json > index fc732cb..0cc9ee6 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -780,6 +780,7 @@ > # command. > # > # Since: 2.5 > +## > { 'command': 'migrate-start-postcopy' } > =20 > ## > @@ -4429,7 +4430,7 @@ > # > # @DIMM: memory slot > # @CPU: logical CPU slot (since 2.7) > -# > +## > { 'enum': 'ACPISlotType', 'data': [ 'DIMM', 'CPU' ] } > =20 > ## >=20