MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / RemoveMultiLineCommentsFromRange

Function RemoveMultiLineCommentsFromRange

util/cpplint.py:1358–1363  ·  view source on GitHub ↗

Clears a range of lines for multi-line comments.

(lines, begin, end)

Source from the content-addressed store, hash-verified

1356
1357
1358def RemoveMultiLineCommentsFromRange(lines, begin, end):
1359 """Clears a range of lines for multi-line comments."""
1360 # Having // dummy comments makes the lines non-empty, so we will not get
1361 # unnecessary blank line warnings later in the code.
1362 for i in range(begin, end):
1363 lines[i] = '/**/'
1364
1365
1366def RemoveMultiLineComments(filename, lines, error):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected