MCPcopy Create free account
hub / github.com/alibaba/libgrape-lite / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

misc/cpplint.py:1841–1849  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

1839
1840
1841def FindNextMultiLineCommentStart(lines, lineix):
1842 """Find the beginning marker for a multiline comment."""
1843 while lineix < len(lines):
1844 if lines[lineix].strip().startswith('/*'):
1845 # Only return this marker if the comment goes beyond this line
1846 if lines[lineix].strip().find('*/', 2) < 0:
1847 return lineix
1848 lineix += 1
1849 return len(lines)
1850
1851
1852def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected