def CheckForMultilineCommentsAndStrings(filename, clean_lines, linenum, error):
 line = clean_lines.elided[linenum]
 line = line.replace('\\\\', '')
 if (line.count('/*') > line.count('*/')):
  error(filename, linenum, 'readability/multiline_comment', 5, 'Complex multi-line /*...*/-style comment found. Lint may give bogus warnings.  Consider replacing these with //-style comments, with #if 0...#endif, or with more clearly structured multi-line comments.')
 if ((line.count('"') - line.count('\\"')) % 2):
  error(filename, linenum, 'readability/multiline_string', 5, 'Multi-line string ("...") found.  This lint script doesn\'t do well with such strings, and may give bogus warnings.  Use C++11 raw strings or concatenation instead.')

def CheckForMultilineCommentsAndStrings ( filename , clean_lines , linenum , error ) : line = clean_lines . elided [ linenum ] line = line . replace ( '\\\\' , '' ) if ( line . count ( '/*' ) > line . count ( '*/' ) ) : error ( filename , linenum , 'readability/multiline_comment' , 5 , 'Complex multi-line /*...*/-style comment found. Lint may give bogus warnings.  Consider replacing these with //-style comments, with #if 0...#endif, or with more clearly structured multi-line comments.' ) if ( ( line . count ( '"' ) - line . count ( '\\"' ) ) % 2 ) : error ( filename , linenum , 'readability/multiline_string' , 5 , 'Multi-line string ("...") found.  This lint script doesn\'t do well with such strings, and may give bogus warnings.  Use C++11 raw strings or concatenation instead.' )
logs an error if we see /* .