[libcxx-commits] [libcxx] Avoid using `__shifted` as an identifier (PR #82248)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 19 05:38:29 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 2fcfc9754a16805b81e541dc8222a8b5cf17a121...c7baba489e9f86465d08078cb8e2bfcc5a01433a 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-02-19 13:34:18.000000 +0000
+++ system_reserved_names.gen.py 2024-02-19 13:38:22.322440 +0000
@@ -15,11 +15,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++
@@ -173,6 +174,7 @@
static_assert(__builtin_strcmp(STRINGIFY(erase), STRINGIFY(SYSTEM_RESERVED_NAME)) == 0, "");
static_assert(__builtin_strcmp(STRINGIFY(refresh), STRINGIFY(SYSTEM_RESERVED_NAME)) == 0, "");
// __shifted is a reserved keyword on the LLVM Widberg compiler
#define __shifted SYSTEM_RESERVED_NAME
-""")
+"""
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/82248
More information about the libcxx-commits
mailing list