[libcxx-commits] [libcxx] [libc++] Use a different smart ptr type alias (PR #102089)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 6 12:54:23 PDT 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 1fb1a5d8e2c5a0cbaeb39ead68352e5e55752a6d...7aea4ecc113213554a1d9c0316df8694a1552db7 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-08-06 19:50:15.000000 +0000
+++ system_reserved_names.gen.py	2024-08-06 19:53:58.049764 +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++
 
@@ -182,6 +183,7 @@
 static_assert(__builtin_strcmp(STRINGIFY(min), STRINGIFY(SYSTEM_RESERVED_NAME)) == 0, "");
 static_assert(__builtin_strcmp(STRINGIFY(max), STRINGIFY(SYSTEM_RESERVED_NAME)) == 0, "");
 static_assert(__builtin_strcmp(STRINGIFY(move), STRINGIFY(SYSTEM_RESERVED_NAME)) == 0, "");
 static_assert(__builtin_strcmp(STRINGIFY(erase), STRINGIFY(SYSTEM_RESERVED_NAME)) == 0, "");
 static_assert(__builtin_strcmp(STRINGIFY(refresh), STRINGIFY(SYSTEM_RESERVED_NAME)) == 0, "");
-""")
+"""
+    )

``````````

</details>


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


More information about the libcxx-commits mailing list