style: allow the use of initializer-lists in if

* tests/sanity/style.test: Allow initializer-lists in ifs.
This commit is contained in:
Thomas Medioni 2017-05-05 13:33:14 +02:00
parent d795955aaa
commit 22620e185c

View file

@ -155,7 +155,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
$GREP '[ ]if(' $tmp && $GREP '[ ]if(' $tmp &&
diag 'Missing space after "if"' diag 'Missing space after "if"'
$GREP '[ ]if (.*).*{' $tmp && $GREP '[ ]if ([^()]*).*{' $tmp &&
diag 'Opening { should be on its own line.' diag 'Opening { should be on its own line.'
$GREP '[ ]if (.*).*;' $tmp && $GREP '[ ]if (.*).*;' $tmp &&