Lines Matching full:line
19 # - False: don't skip the next line.
20 # - 'skip_suppression_name': the next line is a suppression name, skip.
21 # - 'skip_param': the next line is a system call parameter error, skip.
25 for line, line_num in zip(f.NewContents(),
27 line = line.lstrip()
28 if line.startswith('#') or not line:
33 if 'insert_a_suppression_name_here' in line:
36 if suppressions.has_key(line):
37 if f.LocalPath() == suppressions[line][1]:
38 errors.append('suppression with name "%s" at %s line %s '
39 'has already been defined at line %s' %
40 (line, f.LocalPath(), line_num,
41 suppressions[line][1]))
43 errors.append('suppression with name "%s" at %s line %s '
44 'has already been defined at %s line %s' %
45 (line, f.LocalPath(), line_num,
46 suppressions[line][0], suppressions[line][1]))
48 suppressions[line] = (f, line_num)
53 if not line.startswith('Memcheck:'):
54 errors.append('"%s" should be "Memcheck:..." in %s line %s' %
55 (line, f.LocalPath(), line_num))
57 if line == '{':
60 if line == "Memcheck:Param":
64 if (line.startswith('fun:') or line.startswith('obj:') or
65 line.startswith('Memcheck:') or line == '}' or
66 line == '...'):
68 errors.append('"%s" is probably wrong: %s line %s' % (line, f.LocalPath(),