[llvm] fix(llvm/**.py): fix invalid escape sequences (PR #94035)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 01:01:38 PDT 2024


================
@@ -17,8 +17,8 @@
 USAGE = """Example usage:
     find -type f clang/test/CodeCompletion | grep -v /Inputs/ | \\
     xargs relative_lines.py --dry-run --verbose --near=100 \\
-    --pattern='-code-completion-at[ =]%s:(\d+)' \\
-    --pattern='requires fix-it: {(\d+):\d+-(\d+):\d+}'
+    --pattern='-code-completion-at[ =]%s:(\\d+)' \\
+    --pattern='requires fix-it: {(\\d+):\\d+-(\\d+):\\d+}'
----------------
nikic wrote:

Can use raw string here as well if you replace the existing `\\` with `\`?

https://github.com/llvm/llvm-project/pull/94035


More information about the llvm-commits mailing list