Skip to content

Commit 88184e5

Browse files
authored
[libc++] Fix invalid escape sequences in Python comments (#94032)
1 parent 3f6fe4e commit 88184e5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libcxx/include/__format/escaped_output_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr uint32_t __entries[711] = {
833833
/// more details.
834834

835835
///
836-
/// \pre The code point is a valid Unicode code point.
836+
/// \\pre The code point is a valid Unicode code point.
837837
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr bool __needs_escape(const char32_t __code_point) noexcept {
838838

839839
// The entries in the gap at the end.

libcxx/include/__format/width_estimation_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ inline constexpr uint32_t __table_upper_bound = 0x0003fffd;
237237

238238
/// Returns the estimated width of a Unicode code point.
239239
///
240-
/// \pre The code point is a valid Unicode code point.
240+
/// \\pre The code point is a valid Unicode code point.
241241
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr int __estimated_width(const char32_t __code_point) noexcept {
242242
// Since __table_upper_bound contains the unshifted range do the
243243
// comparison without shifting.

libcxx/utils/generate_escaped_output_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
8484
return result
8585

8686

87-
DATA_ARRAY_TEMPLATE = """
87+
DATA_ARRAY_TEMPLATE = r"""
8888
/// The entries of the characters to escape in format's debug string.
8989
///
9090
/// Contains the entries for [format.string.escaped]/2.2.1.2.1

libcxx/utils/generate_width_estimation_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
9999
return result
100100

101101

102-
DATA_ARRAY_TEMPLATE = """
102+
DATA_ARRAY_TEMPLATE = r"""
103103
/// The entries of the characters with an estimated width of 2.
104104
///
105105
/// Contains the entries for [format.string.std]/12

0 commit comments

Comments
 (0)