[libcxx-commits] [libcxx] fix(libcxx/**.py): fix invalid escape sequences (PR #94032)
Eisuke Kawashima via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jun 9 15:50:06 PDT 2024
https://github.com/e-kwsm updated https://github.com/llvm/llvm-project/pull/94032
>From 9c7adfae6529a96632240125c1bb51ae73bc611d Mon Sep 17 00:00:00 2001
From: Eisuke Kawashima <e-kwsm at users.noreply.github.com>
Date: Sat, 11 May 2024 02:39:21 +0900
Subject: [PATCH] fix(libcxx/**.py): fix invalid escape sequences
---
libcxx/utils/generate_escaped_output_table.py | 2 +-
libcxx/utils/generate_width_estimation_table.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libcxx/utils/generate_escaped_output_table.py b/libcxx/utils/generate_escaped_output_table.py
index c0b21f7731f64..9dcecaa5575cd 100755
--- a/libcxx/utils/generate_escaped_output_table.py
+++ b/libcxx/utils/generate_escaped_output_table.py
@@ -84,7 +84,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
return result
-DATA_ARRAY_TEMPLATE = """
+DATA_ARRAY_TEMPLATE = r"""
/// The entries of the characters to escape in format's debug string.
///
/// Contains the entries for [format.string.escaped]/2.2.1.2.1
diff --git a/libcxx/utils/generate_width_estimation_table.py b/libcxx/utils/generate_width_estimation_table.py
index 2fe51490449dd..f4cce1071d1f1 100644
--- a/libcxx/utils/generate_width_estimation_table.py
+++ b/libcxx/utils/generate_width_estimation_table.py
@@ -99,7 +99,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
return result
-DATA_ARRAY_TEMPLATE = """
+DATA_ARRAY_TEMPLATE = r"""
/// The entries of the characters with an estimated width of 2.
///
/// Contains the entries for [format.string.std]/12
More information about the libcxx-commits
mailing list