MCPcopy Index your code
hub / github.com/cpplint/cpplint / RemoveMultiLineCommentsFromRange

Function RemoveMultiLineCommentsFromRange

cpplint.py:2032–2037  ·  view source on GitHub ↗

Clears a range of lines for multi-line comments.

(lines, begin, end)

Source from the content-addressed store, hash-verified

2030
2031
2032def RemoveMultiLineCommentsFromRange(lines, begin, end):
2033 """Clears a range of lines for multi-line comments."""
2034 # Having // <empty> comments makes the lines non-empty, so we will not get
2035 # unnecessary blank line warnings later in the code.
2036 for i in range(begin, end):
2037 lines[i] = "/**/"
2038
2039
2040def RemoveMultiLineComments(filename, lines, error):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected