Fix a sanity check.
* tests/sanity/style.test: Allow parenthesis after 'operator delete'.
This commit is contained in:
parent
9a1e411502
commit
e8a3f62491
1 changed files with 2 additions and 1 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue