Commit 22620e18 authored by Thomas Medioni's avatar Thomas Medioni

style: allow the use of initializer-lists in if

* tests/sanity/style.test: Allow initializer-lists in ifs.
parent d795955a
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment