]> git.proxmox.com Git - mirror_qemu.git/commit - MAINTAINERS
scripts: Coccinelle script to use ERRP_GUARD()
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 7 Jul 2020 16:50:31 +0000 (18:50 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 10 Jul 2020 13:18:09 +0000 (15:18 +0200)
commit8220f3ac74a4698b0734aa882e74c5d9337e3d99
treeca9761b7bc7ca6e9dc618b57511cc2b6422dab88
parentae7c80a7bd73685437bf6ba9d7c26098351f4166
scripts: Coccinelle script to use ERRP_GUARD()

Script adds ERRP_GUARD() macro invocations where appropriate and
does corresponding changes in code (look for details in
include/qapi/error.h)

Usage example:
spatch --sp-file scripts/coccinelle/errp-guard.cocci \
 --macro-file scripts/cocci-macro-file.h --in-place --no-show-diff \
 --max-width 80 FILES...

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200707165037.1026246-3-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[ERRP_AUTO_PROPAGATE() renamed to ERRP_GUARD(), and
auto-propagated-errp.cocci to errp-guard.cocci]
MAINTAINERS
include/qapi/error.h
scripts/coccinelle/errp-guard.cocci [new file with mode: 0644]