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

Function FindNextMultiLineCommentStart

util/cpplint.py:1338–1346  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

1336
1337
1338def FindNextMultiLineCommentStart(lines, lineix):
1339 """Find the beginning marker for a multiline comment."""
1340 while lineix < len(lines):
1341 if lines[lineix].strip().startswith('/*'):
1342 # Only return this marker if the comment goes beyond this line
1343 if lines[lineix].strip().find('*/', 2) < 0:
1344 return lineix
1345 lineix += 1
1346 return len(lines)
1347
1348
1349def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected