MCPcopy Index your code
hub / github.com/cpplint/cpplint / FindNextMultiLineCommentStart

Function FindNextMultiLineCommentStart

cpplint.py:2012–2020  ·  view source on GitHub ↗

Find the beginning marker for a multiline comment.

(lines, lineix)

Source from the content-addressed store, hash-verified

2010
2011
2012def FindNextMultiLineCommentStart(lines, lineix):
2013 """Find the beginning marker for a multiline comment."""
2014 while lineix < len(lines):
2015 if lines[lineix].strip().startswith("/*"):
2016 # Only return this marker if the comment goes beyond this line
2017 if lines[lineix].strip().find("*/", 2) < 0:
2018 return lineix
2019 lineix += 1
2020 return len(lines)
2021
2022
2023def FindNextMultiLineCommentEnd(lines, lineix):

Callers 1

RemoveMultiLineCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected