Skip to content

Commit 692c4f3

Browse files
author
Lukasz A.J. Wrona
committed
Remove brace checking from cpplint
1 parent d344dd9 commit 692c4f3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

scripts/cpplint.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3972,14 +3972,6 @@ def CheckBracesSpacing(filename, clean_lines, linenum, nesting_state, error):
39723972
error(filename, linenum, 'whitespace/braces', 5,
39733973
'Missing space before {')
39743974

3975-
# Make sure '} else {' has spaces.
3976-
# if Search(r'}else', line):
3977-
# error(filename, linenum, 'whitespace/braces', 5,
3978-
# 'Missing space before else')
3979-
if (Search(r'^.*[^\s].*}$', line) or Search(r'^.*[^\s].*{$', line)) and not(Search(r'{[^}]*}', line)):
3980-
error(filename, linenum, 'whitespace/braces', 5,
3981-
'Put braces on a separate next line')
3982-
39833975
# You shouldn't have a space before a semicolon at the end of the line.
39843976
# There's a special case for "for" since the style guide allows space before
39853977
# the semicolon there.

0 commit comments

Comments
 (0)