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

Function FindNextMultiLineCommentEnd

util/cpplint.py:1349–1355  ·  view source on GitHub ↗

We are inside a comment, find the end marker.

(lines, lineix)

Source from the content-addressed store, hash-verified

1347
1348
1349def FindNextMultiLineCommentEnd(lines, lineix):
1350 """We are inside a comment, find the end marker."""
1351 while lineix < len(lines):
1352 if lines[lineix].strip().endswith('*/'):
1353 return lineix
1354 lineix += 1
1355 return len(lines)
1356
1357
1358def RemoveMultiLineCommentsFromRange(lines, begin, end):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected