MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

steps/cpplint.py:1856–1864  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

1854
1855
1856def FindNextMultiLineCommentStart(lines, lineix):
1857 """Find the beginning marker for a multiline comment."""
1858 while lineix < len(lines):
1859 if lines[lineix].strip().startswith('/*'):
1860 # Only return this marker if the comment goes beyond this line
1861 if lines[lineix].strip().find('*/', 2) < 0:
1862 return lineix
1863 lineix += 1
1864 return len(lines)
1865
1866
1867def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected