MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / RemoveMultiLineCommentsFromRange

Function RemoveMultiLineCommentsFromRange

steps/cpplint.py:1876–1881  ·  view source on GitHub ↗

Clears a range of lines for multi-line comments.

(lines, begin, end)

Source from the content-addressed store, hash-verified

1874
1875
1876def RemoveMultiLineCommentsFromRange(lines, begin, end):
1877 """Clears a range of lines for multi-line comments."""
1878 # Having // dummy comments makes the lines non-empty, so we will not get
1879 # unnecessary blank line warnings later in the code.
1880 for i in range(begin, end):
1881 lines[i] = '/**/'
1882
1883
1884def RemoveMultiLineComments(filename, lines, error):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected