Skip to content

Commit 7302e56

Browse files
author
thk123
committed
Fixed a bug in all caps functions without function comment headers
There is an exception to the function comment header rule that was being incorrectly applied in, for example line 236 for java_bytecode_convert_method.cpp. The problem was incorrect indentation causing the code to be run even when the function shouldn't have been checked.
1 parent e56fb21 commit 7302e56

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)