]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Added syntax-check rule for return with parentheses
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 23 Mar 2012 07:34:09 +0000 (08:34 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 26 Mar 2012 20:50:48 +0000 (14:50 -0600)
commitf0944525261b4aaed0fbfe6b0d7de622b2a935c7
treecbb1461c7db6ff1b6ccec7d8c984283ac9c1dd6a
parent9943276fd2d068756a5f11c4e1aa22e915ddb0c9
Added syntax-check rule for return with parentheses

After cleanup introduced with previous commit, there is a need for
syntax-check rule taking care of return(). Regexp used in 'prohibit'
parameter is taken from the cleanup commit and modified so it fits
'grep -E' format. Semicolon at the end is needed, otherwise the regexp
could match return with cast.

Exception is created for python source files because we don't have any
documentation restricting the use of return that matches this case.
cfg.mk