Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
e8a3f624
Commit
e8a3f624
authored
Dec 01, 2016
by
Maximilien Colange
Browse files
Fix a sanity check.
* tests/sanity/style.test: Allow parenthesis after 'operator delete'.
parent
9a1e4115
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/sanity/style.test
View file @
e8a3f624
...
...
@@ -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
&&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment