brintos

brintos / llvm-project-archived public Read only

0
0
Text · 226 B · 9c7b6a9 Raw
12 lines · python
1import re2import os3import sys4 5input_file = open(sys.argv[1])6output_file = open(sys.argv[2], "w")7 8for line in input_file:9    m = re.search(r"^\s+(clang_[^;]+)", line)10    if m:11        output_file.write(m.group(1) + "\n")12