MCPcopy Create free account
hub / github.com/alibaba/GraphScope / RemoveMultiLineCommentsFromRange

Function RemoveMultiLineCommentsFromRange

analytical_engine/misc/cpplint.py:1865–1870  ·  view source on GitHub ↗

Clears a range of lines for multi-line comments.

(lines, begin, end)

Source from the content-addressed store, hash-verified

1863
1864
1865def RemoveMultiLineCommentsFromRange(lines, begin, end):
1866 """Clears a range of lines for multi-line comments."""
1867 # Having // <empty> comments makes the lines non-empty, so we will not get
1868 # unnecessary blank line warnings later in the code.
1869 for i in range(begin, end):
1870 lines[i] = '/**/'
1871
1872
1873def RemoveMultiLineComments(filename, lines, error):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected