]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bracket-spacing: Add syntax-check for unnecessary curly brackets
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 12 Nov 2014 16:22:27 +0000 (17:22 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 14 Nov 2014 16:13:36 +0000 (17:13 +0100)
commit995ef7804c43018a1eba327d0aaf5855d5fe5487
treece8fcaa9d501b69b855258d12c40d6b3e9adb45f
parent343e53abdc7e0e2a024729df29feffd84260d7e6
bracket-spacing: Add syntax-check for unnecessary curly brackets

We're looking for three consecutive lines, first one is a if/for/while
with a condition and start of body, second one is a body with one and
only semicolon and third is end of the body by itself.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
build-aux/bracket-spacing.pl