Fix a sanity check.

* tests/sanity/style.test: Allow parenthesis after 'operator delete'.
This commit is contained in:
Maximilien Colange 2016-12-01 11:51:49 +01:00
parent 9a1e411502
commit e8a3f62491

View file

@ -248,7 +248,8 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
$GREP '^[^()]{[^()]*{[^()]$' $tmp && $GREP '^[^()]{[^()]*{[^()]$' $tmp &&
diag 'No two { on the same line.' diag 'No two { on the same line.'
$GREP 'delete[ ]*[(][^(]*[)];' $tmp && $GREP 'delete[ ]*[(][^(]*[)];' $tmp |
$GREP -v 'operator[ ]*delete[ ]*[(][^(]*[)];' &&
diag 'No useless parentheses after delete.' diag 'No useless parentheses after delete.'
$GREP 'return[ ]*[(][^(]*[)];' $tmp && $GREP 'return[ ]*[(][^(]*[)];' $tmp &&