2021-07-27 07:36:32 +08:00
|
|
|
import re
|
|
|
|
import os
|
2021-07-27 08:04:35 +08:00
|
|
|
import sys
|
2021-07-27 07:36:32 +08:00
|
|
|
|
|
|
|
input_file = open(sys.argv[1])
|
2021-07-27 09:20:14 +08:00
|
|
|
output_file = open(sys.argv[2], 'w')
|
2021-07-27 07:36:32 +08:00
|
|
|
|
|
|
|
for line in input_file:
|
2021-07-27 09:20:14 +08:00
|
|
|
m = re.search('^\s+(clang_[^;]+)', line)
|
2021-07-27 07:36:32 +08:00
|
|
|
if m:
|
2021-07-27 09:20:14 +08:00
|
|
|
output_file.write(m.group(1) + "\n")
|