]> git.ipfire.org Git - thirdparty/systemd.git/commit
coccinelle: introduce drop-braces transformation
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 9 Oct 2020 10:45:03 +0000 (12:45 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 9 Oct 2020 13:02:20 +0000 (15:02 +0200)
commit44e66de0f25e65d5bd8b2f7f848e0fc7b98199ed
treee1a32aca3455f122345b4334453baa1a4d50b4d5
parent7e97526421b0a1180fb16fbfcf8a758e48d529e6
coccinelle: introduce drop-braces transformation

to drop braces around single-line if statements. Also, prefix it with
zz- so it runs as the last one, so it's able to fix stuff tweaked by
previous transformations.
coccinelle/zz-drop-braces.cocci [new file with mode: 0644]