Skip to content

Commit 8ef7511

Browse files
author
Daniel Kroening
authored
Merge pull request #408 from thk123/bug/lint-crash-on-non-standard-function
Fixed a bug in all caps functions without function bodies
2 parents ccb696a + 7302e56 commit 8ef7511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/cpplint.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3152,9 +3152,9 @@ def CheckForFunctionCommentHeaders(filename, raw_lines, error):
31523152
body_found = False
31533153
break
31543154

3155-
# body found, i.e. not a declaration
3156-
if body_found:
3157-
CheckForFunctionCommentHeader(filename, raw_lines, linenum, function_name, error)
3155+
# body found, i.e. not a declaration
3156+
if body_found:
3157+
CheckForFunctionCommentHeader(filename, raw_lines, linenum, function_name, error)
31583158
linenum += 1
31593159

31603160
def CheckForFunctionCommentHeader(filename, raw_lines, linenum, function_name, error):

0 commit comments

Comments
 (0)