Lines Matching full:lines
5 # Update lit FileCheck files by replacing the 'CHECK:' lines by the actual output of the 'RUN:' command.
35 def ltrim_emptylines(lines, meta=None):
36 while len(lines) and emptyline.fullmatch(lines[0]):
37 del lines[0]
42 def rtrim_emptylines(lines):
43 while len(lines) and emptyline.fullmatch(lines[-1]):
44 del lines[-1]
47 def trim_emptylines(lines):
48 ltrim_emptylines(lines)
49 rtrim_emptylines(lines)
68 def common_indent(lines):
69 indentions = (indention(line) for line in lines)
80 def classyfier1(lines):
81 i = iter(lines)
202 def classyfier2(lines):
203 i = iter(lines)
235 parser = argparse.ArgumentParser(description="Update CHECK lines")
243 help="What kind of checks lines to generate",
249 help="Where to add the CHECK lines into the file; 'autodetect' searches for the first 'CHECK' line ind inserts it there",
255 help="What parts of the output lines to check; use syntax 'CHECK=include' to apply to one CHECK-prefix only (by default, everything)",
494 def writelines(lines):
495 for line in lines: