style: allow the use of initializer-lists in if
* tests/sanity/style.test: Allow initializer-lists in ifs.
This commit is contained in:
parent
d795955aaa
commit
22620e185c
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
|
|||
$GREP '[ ]if(' $tmp &&
|
||||
diag 'Missing space after "if"'
|
||||
|
||||
$GREP '[ ]if (.*).*{' $tmp &&
|
||||
$GREP '[ ]if ([^()]*).*{' $tmp &&
|
||||
diag 'Opening { should be on its own line.'
|
||||
|
||||
$GREP '[ ]if (.*).*;' $tmp &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue