[libcxx-commits] [libcxx] [libc++] Fix missing and incorrect push/pop macros (PR #79204)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 23 12:21:02 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 bb8a8770e203ba027d141cd1200e93809ea66c8f...77cd06e04b932d182a61893fe3430fb927650f35 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-23 20:18:02.000000 +0000
+++ system_reserved_names.gen.py	2024-01-23 20:20:54.116393 +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++
 
@@ -178,6 +179,7 @@
 static_assert(is_equal(STRINGIFY(min), STRINGIFY(SYSTEM_RESERVED_NAME)), "");
 static_assert(is_equal(STRINGIFY(max), STRINGIFY(SYSTEM_RESERVED_NAME)), "");
 static_assert(is_equal(STRINGIFY(move), STRINGIFY(SYSTEM_RESERVED_NAME)), "");
 static_assert(is_equal(STRINGIFY(erase), STRINGIFY(SYSTEM_RESERVED_NAME)), "");
 static_assert(is_equal(STRINGIFY(refresh), STRINGIFY(SYSTEM_RESERVED_NAME)), "");
-""")
+"""
+    )

``````````

</details>


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


More information about the libcxx-commits mailing list