Skip to content

Commit

Permalink
style: Allow parens on a new line
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Sep 22, 2015
1 parent 2da3c7a commit 6948838
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,10 +1621,7 @@ def CheckSpacingForFunctionCall(filename, line, linenum, error):
if Search(r'[^)]\s+\)\s*[^{\s]', fncall):
# If the closing parenthesis is preceded by only whitespaces,
# try to give a more descriptive error message.
if Search(r'^\s+\)', fncall):
error(filename, linenum, 'whitespace/parens', 2,
'Closing ) should be moved to the previous line')
else:
if not Search(r'^\s+\)', fncall):
error(filename, linenum, 'whitespace/parens', 2,
'Extra space before )')

Expand Down

0 comments on commit 6948838

Please sign in to comment.