code: def CleanseComments(line):
    
    commentpos = line.find('//')
    if commentpos != -1 and not IsCppString(line[:commentpos]):
      line = line[:commentpos].rstrip()
    # get rid of /* ... */
    return _RE_PATTERN_CLEANSE_LINE_C_COMMENTS.sub('', line)
docs: Removes //-comments and single-line C-style /* */ comments.
  
    Args:
      line: A line of C++ source.
  
    Returns:
      The line with single-line comments removed.