MCPcopy Create free account
hub / github.com/BVLC/caffe / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

scripts/cpp_lint.py:1127–1135  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

1125
1126
1127def FindNextMultiLineCommentStart(lines, lineix):
1128 """Find the beginning marker for a multiline comment."""
1129 while lineix < len(lines):
1130 if lines[lineix].strip().startswith('/*'):
1131 # Only return this marker if the comment goes beyond this line
1132 if lines[lineix].strip().find('*/', 2) < 0:
1133 return lineix
1134 lineix += 1
1135 return len(lines)
1136
1137
1138def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected