mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 21:46:05 +00:00

llvm-project/clang/tools/libclang/linker-script-to-export-list.py:9: SyntaxWarning: invalid escape sequence '\s' m = re.search("^\s+(clang_[^;]+)", line) Co-authored-by: cor3ntin <corentinjabot@gmail.com>
12 lines
226 B
Python
12 lines
226 B
Python
import re
|
|
import os
|
|
import sys
|
|
|
|
input_file = open(sys.argv[1])
|
|
output_file = open(sys.argv[2], "w")
|
|
|
|
for line in input_file:
|
|
m = re.search(r"^\s+(clang_[^;]+)", line)
|
|
if m:
|
|
output_file.write(m.group(1) + "\n")
|