diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-08 23:03:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-09 08:20:20 +0200 |
commit | ece174c5439021e32ebcc858842de9586072c006 (patch) | |
tree | b469235d6c4b195a6b53c7c5d97c0e516bfb4bc6 /coccinelle/empty-if.cocci | |
parent | 76ef789d264f9eb7d7624b994aa6eead1dacfac4 (diff) |
tree-wide: drop {} from one-line if blocks
Patch via coccinelle.
Diffstat (limited to 'coccinelle/empty-if.cocci')
-rw-r--r-- | coccinelle/empty-if.cocci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/coccinelle/empty-if.cocci b/coccinelle/empty-if.cocci new file mode 100644 index 0000000000..ebd0bfddce --- /dev/null +++ b/coccinelle/empty-if.cocci @@ -0,0 +1,19 @@ +@@ +expression e, f; +statement s, t; +@@ +( +if (e) { +if (f) s +} +| +if (e) { +if (f) s +else t +} +| +- if (e) { ++ if (e) +s +- } +) |