[libcxx-commits] [libcxx] [NFC] Renames a template parameter to avoid clashes with userspace names. (PR #76829)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 3 08:48:25 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r b3d26426b06ee74bf79f766375a37c384aa0132b...6ef0e0582cd348952c2f9c4a1c480945e7b643f4 libcxx/test/libcxx/system_reserved_names.gen.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- system_reserved_names.gen.py 2024-01-03 16:24:32.000000 +0000
+++ system_reserved_names.gen.py 2024-01-03 16:48:16.118311 +0000
@@ -14,11 +14,12 @@
import sys
sys.path.append(sys.argv[1])
from libcxx.header_information import lit_header_restrictions, public_headers
for header in public_headers:
- print(f"""\
+ print(
+ f"""\
//--- {header}.compile.pass.cpp
{lit_header_restrictions.get(header, '')}
#define SYSTEM_RESERVED_NAME This name should not be used in libc++
@@ -158,6 +159,7 @@
#define move SYSTEM_RESERVED_NAME
#define erase SYSTEM_RESERVED_NAME
#define refresh SYSTEM_RESERVED_NAME
#include <{header}>
-""")
+"""
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/76829
More information about the libcxx-commits
mailing list