Bigcheese added a comment. Here's a version that actually works (python 3, not sure if it's valid in 2), although I would much prefer we not write to the source directory during a build.
import re import os import sys input_file = open(sys.argv[1]) with open(sys.argv[2], "w") as output_file: for line in input_file: m = re.search('clang_[^;]+', line) if m: output_file.write(m.group(0) + '\n') Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105527/new/ https://reviews.llvm.org/D105527 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits