MCPcopy Create free account
hub / github.com/alibaba/GraphScope / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

analytical_engine/misc/cpplint.py:1845–1853  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

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

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected