Commit e8a3f624 authored by Maximilien Colange's avatar Maximilien Colange
Browse files

Fix a sanity check.

* tests/sanity/style.test: Allow parenthesis after 'operator delete'.
parent 9a1e4115
......@@ -248,7 +248,8 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do
$GREP '^[^()]{[^()]*{[^()]$' $tmp &&
diag 'No two { on the same line.'
$GREP 'delete[ ]*[(][^(]*[)];' $tmp &&
$GREP 'delete[ ]*[(][^(]*[)];' $tmp |
$GREP -v 'operator[ ]*delete[ ]*[(][^(]*[)];' &&
diag 'No useless parentheses after delete.'
$GREP 'return[ ]*[(][^(]*[)];' $tmp &&
Supports Markdown
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