MCPcopy Create free account
hub / github.com/apache/mesos / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

support/cpplint.py:1369–1377  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

1367
1368
1369def FindNextMultiLineCommentStart(lines, lineix):
1370 """Find the beginning marker for a multiline comment."""
1371 while lineix < len(lines):
1372 if lines[lineix].strip().startswith('/*'):
1373 # Only return this marker if the comment goes beyond this line
1374 if lines[lineix].strip().find('*/', 2) < 0:
1375 return lineix
1376 lineix += 1
1377 return len(lines)
1378
1379
1380def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected