]> Git Repo - qemu.git/commit - scripts/coccinelle/qobject.cocci
coccinelle: Add script to remove useless QObject casts
authorEric Blake <[email protected]>
Thu, 27 Apr 2017 21:58:14 +0000 (16:58 -0500)
committerMarkus Armbruster <[email protected]>
Mon, 8 May 2017 18:32:14 +0000 (20:32 +0200)
commita2f3453ebc64b1ebe094aeaf83f9e67896f90ac3
tree5549449efbf73347025a1e815d9bb8eb582a17e4
parent8f16de18f6d8d0c0b4982bbe13f7b6a048b0e876
coccinelle: Add script to remove useless QObject casts

We have macros in place to make it less verbose to add a subtype
of QObject to both QDict and QList. While we have made cleanups
like this in the past (see commit fcfcd8ffc, for example), having
it be automated by Coccinelle makes it easier to maintain.

The script is separate from the cleanups, for ease of review and
backporting.  A later patch will then add further possible cleanups.

Signed-off-by: Eric Blake <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Message-Id: <20170427215821[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
MAINTAINERS
scripts/coccinelle/qobject.cocci [new file with mode: 0644]
This page took 0.025311 seconds and 4 git commands to generate.