Lines Matching refs:line
17 def is_valid_line(line): argument
18 if (line.startswith("#") and not line.startswith("#include")):
20 if (line.startswith("#include \"deprecated.h\"")):
22 if (line.startswith(" CEED_QFUNCTION_ATTR")):
24 if (line.startswith(" static const char")):
26 if (line.endswith('\\\n')):
28 if ("CeedErrorImpl" in line):
30 if (r'const char *, ...);' in line):
32 if (line.startswith("CEED_EXTERN const char *const")):
34 if (ceed_version_ge.match(line)):
57 lines += [line.strip() for line in f if is_valid_line(line)]
58 lines = [line.replace("CEED_EXTERN", "extern") for line in lines]
61 for line in lines:
62 if re.search("ceed-f32.h", line) is not None:
63 insert_index = lines.index(line) + 1
67 elif re.search("ceed-f64.h", line) is not None:
68 insert_index = lines.index(line) + 1
75 lines = [line for line in lines if not line.startswith("#include")]