MCPcopy Create free account
hub / github.com/apache/mesos / RemoveMultiLineCommentsFromRange

Function RemoveMultiLineCommentsFromRange

support/cpplint.py:1389–1394  ·  view source on GitHub ↗

Clears a range of lines for multi-line comments.

(lines, begin, end)

Source from the content-addressed store, hash-verified

1387
1388
1389def RemoveMultiLineCommentsFromRange(lines, begin, end):
1390 """Clears a range of lines for multi-line comments."""
1391 # Having // dummy comments makes the lines non-empty, so we will not get
1392 # unnecessary blank line warnings later in the code.
1393 for i in range(begin, end):
1394 lines[i] = '/**/'
1395
1396
1397def RemoveMultiLineComments(filename, lines, error):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected