MCPcopy Create free account
hub / github.com/SIPp/sipp / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

cpplint.py:926–934  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

924
925
926def FindNextMultiLineCommentStart(lines, lineix):
927 """Find the beginning marker for a multiline comment."""
928 while lineix < len(lines):
929 if lines[lineix].strip().startswith('/*'):
930 # Only return this marker if the comment goes beyond this line
931 if lines[lineix].strip().find('*/', 2) < 0:
932 return lineix
933 lineix += 1
934 return len(lines)
935
936
937def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected