[clang] 7851670 - [clang] SyntaxWarning: invalid escape sequence '\s' with Python3.12 (#78036)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 14 02:13:57 PST 2024
Author: Jie Fu (傅杰)
Date: 2024-01-14T18:13:54+08:00
New Revision: 785167070982a75d1b123fbbf0917cc457846ec1
URL: https://github.com/llvm/llvm-project/commit/785167070982a75d1b123fbbf0917cc457846ec1
DIFF: https://github.com/llvm/llvm-project/commit/785167070982a75d1b123fbbf0917cc457846ec1.diff
LOG: [clang] SyntaxWarning: invalid escape sequence '\s' with Python3.12 (#78036)
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 at gmail.com>
Added:
Modified:
clang/tools/libclang/linker-script-to-export-list.py
Removed:
################################################################################
diff --git a/clang/tools/libclang/linker-script-to-export-list.py b/clang/tools/libclang/linker-script-to-export-list.py
index 745996028d835f..9c7b6a98a34b55 100644
--- a/clang/tools/libclang/linker-script-to-export-list.py
+++ b/clang/tools/libclang/linker-script-to-export-list.py
@@ -6,6 +6,6 @@
output_file = open(sys.argv[2], "w")
for line in input_file:
- m = re.search("^\s+(clang_[^;]+)", line)
+ m = re.search(r"^\s+(clang_[^;]+)", line)
if m:
output_file.write(m.group(1) + "\n")
More information about the cfe-commits
mailing list