parameters: (line)
return_statement: return _RE_PATTERN_CLEANSE_LINE_C_COMMENTS.sub('', line)
docstring: Removes //-comments and single-line C-style /* */ comments.
  
      Args:
        line: A line of C++ source.
  
      Returns:
        The line with single-line comments removed.
docstring_summary: Removes //-comments and single-line C-style /* */ comments.
docstring_tokens: Removes // - comments and single - line C - style / * * / comments .
function: def cleanse_comments(line):
      """Removes //-comments and single-line C-style /* */ comments.
  
      Args:
        line: A line of C++ source.
  
      Returns:
        The line with single-line comments removed.
      """
      comment_position = line.find('//')
      if comment_position != -1 and not is_cpp_string(line[:comment_position]):
          line = line[:comment_position]
      # get rid of /* ... */
      return _RE_PATTERN_CLEANSE_LINE_C_COMMENTS.sub('', line)
function_tokens: def cleanse_comments ( line ) : comment_position = line . find ( '//' ) if comment_position != - 1 and not is_cpp_string ( line [ : comment_position ] ) : line = line [ : comment_position ] # get rid of /* ... */ return _RE_PATTERN_CLEANSE_LINE_C_COMMENTS . sub ( '' , line )