From patchwork Mon Oct 2 14:13:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 820536 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@gnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y5Pj12wyWz9sPk for ; Tue, 3 Oct 2017 01:30:45 +1100 (AEDT) Received: from localhost ([::1]:52584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz1k3-0003FV-Gf for incoming@patchwork.ozlabs.org; Mon, 02 Oct 2017 10:30:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz1Tk-00070j-VN for qemu-devel@nongnu.org; Mon, 02 Oct 2017 10:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz1Tf-0003bP-CD for qemu-devel@nongnu.org; Mon, 02 Oct 2017 10:13:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42954) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dz1Tf-0003ar-6e for qemu-devel@nongnu.org; Mon, 02 Oct 2017 10:13:47 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4A8C27EA84 for ; Mon, 2 Oct 2017 14:13:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4A8C27EA84 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=armbru@redhat.com Received: from blackfin.pond.sub.org (ovpn-116-91.ams2.redhat.com [10.36.116.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6EAD15B806; Mon, 2 Oct 2017 14:13:43 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id D1D7D1132D34; Mon, 2 Oct 2017 16:13:41 +0200 (CEST) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Mon, 2 Oct 2017 16:13:30 +0200 Message-Id: <20171002141341.24616-1-armbru@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 02 Oct 2017 14:13:46 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 00/11] qapi: Cleanups around qapi2texi X-BeenThere: qemu-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@gnu.org Sender: "Qemu-devel" Markus Armbruster (11): qapi-schema: Fix query-vm-generation-id's doc comment markup qapi: Stop rejecting #optional qapi: Eliminate QAPISchemaParser.__init__()'s local fname qapi: Make cur_doc local to QAPISchemaParser.__init__() tests/qapi-schema/doc-bad-section: New, factored out of doc-good qapi2texi: Clean up texi_sections() qapi: Unify representation of doc section without name qapi: Simplify representation of QAPIDoc section text qapi2texi: Simplify representation of section text qapi: Rename QAPIDoc.parser, .section to ._parser, ._section qapi2texi: De-duplicate code to add blank line before symbol qapi-schema.json | 2 +- scripts/qapi.py | 107 +++++++++++++++------------------ scripts/qapi2texi.py | 65 +++++++++----------- tests/Makefile.include | 3 +- tests/qapi-schema/doc-bad-section.err | 0 tests/qapi-schema/doc-bad-section.exit | 1 + tests/qapi-schema/doc-bad-section.json | 11 ++++ tests/qapi-schema/doc-bad-section.out | 13 ++++ tests/qapi-schema/doc-good.json | 1 - tests/qapi-schema/doc-good.out | 4 +- tests/qapi-schema/doc-good.texi | 11 +--- tests/qapi-schema/test-qapi.py | 6 +- 12 files changed, 110 insertions(+), 114 deletions(-) create mode 100644 tests/qapi-schema/doc-bad-section.err create mode 100644 tests/qapi-schema/doc-bad-section.exit create mode 100644 tests/qapi-schema/doc-bad-section.json create mode 100644 tests/qapi-schema/doc-bad-section.out