Home
last modified time | relevance | path

Searched hist:"6 d3a3cfc2f1ca323b671ecdb48f4b9ec73583ea4" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/scripts/
H A Dkernel-doc6d3a3cfc2f1ca323b671ecdb48f4b9ec73583ea4 Tue Nov 17 10:52:59 CST 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org> scripts: kernel-doc: make it more compatible with Sphinx 3.x

With Sphinx 3.x, the ".. c:type:" tag was changed to accept either:

.. c:type:: typedef-like declaration
.. c:type:: name

Using it for other types (including functions) don't work anymore.

So, there are newer tags for macro, enum, struct, union, and others,
which doesn't exist on older versions.

Add a check for the Sphinx version and change the produced tags
accordingly.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20201117165312.118257-17-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>