codeconverter: script for automating QOM code cleanups
commit94dfc0f3435241021eb5f6471025389fee92e218
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 31 Aug 2020 21:07:28 +0000 (31 17:07 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 8 Sep 2020 21:29:19 +0000 (8 17:29 -0400)
treeaa080b9a64eafada28878c0f1566cab7962d665e
parentad09bed1cfc554d919f3a1a71985801b9988a0ad
codeconverter: script for automating QOM code cleanups

This started as a simple script that scanned for regular
expressions, but became more and more complex when exceptions to
the rules were found.

I don't know if this should be maintained in the QEMU source tree
long term (maybe it can be reused for other code transformations
that Coccinelle can't handle).  In either case, this is included
as part of the patch series to document how exactly the automated
code transformations in the next patches were done.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20200831210740.126168-7-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
MAINTAINERS
scripts/codeconverter/codeconverter/__init__.py [new file with mode: 0644]
scripts/codeconverter/codeconverter/patching.py [new file with mode: 0644]
scripts/codeconverter/codeconverter/qom_macros.py [new file with mode: 0644]
scripts/codeconverter/codeconverter/qom_type_info.py [new file with mode: 0644]
scripts/codeconverter/codeconverter/regexps.py [new file with mode: 0644]
scripts/codeconverter/codeconverter/test_patching.py [new file with mode: 0644]
scripts/codeconverter/codeconverter/test_regexps.py [new file with mode: 0644]
scripts/codeconverter/codeconverter/utils.py [new file with mode: 0644]
scripts/codeconverter/converter.py [new file with mode: 0755]