[libcxx-commits] [libcxx] [libc++][test] Adds backdeployment shorthands. (PR #78204)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 15 11:09:32 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 270c6cbda2acf1f60891e10667af6d9741b62009...48b805e9ec9c2f72fcebae45e23a8ed97475719b libcxx/utils/libcxx/test/features.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- features.py	2024-01-15 18:55:17.000000 +0000
+++ features.py	2024-01-15 19:09:25.218822 +0000
@@ -533,121 +533,113 @@
     Feature(
         name="using-built-library-before-llvm-11",
         when=lambda cfg: BooleanExpression.evaluate(
             "stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.9|10.10|10.11|10.12|10.13|10.14|10.15|11.0)(.0)?}}",
             cfg.available_features,
-        )
+        ),
     ),
     Feature(
         name="using-built-library-before-llvm-12",
         when=lambda cfg: BooleanExpression.evaluate(
             "using-built-library-before-llvm-11 || (stdlib=apple-libc++ && target={{.+}}-apple-macosx{{12.(0|1|2)}})",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     Feature(
         name="using-built-library-before-llvm-13",
         when=lambda cfg: BooleanExpression.evaluate(
             "using-built-library-before-llvm-12 || (stdlib=apple-libc++ && target={{.+}}-apple-macosx{{((12.(3|4|5|6|7))|(13.(0|1|2|3)))}})",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     Feature(
         name="using-built-library-before-llvm-14",
         when=lambda cfg: BooleanExpression.evaluate(
             "using-built-library-before-llvm-13",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     Feature(
         name="using-built-library-before-llvm-15",
         when=lambda cfg: BooleanExpression.evaluate(
             "using-built-library-before-llvm-14 || (stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(13.(4|5|6))}})",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     Feature(
         name="using-built-library-before-llvm-16",
         when=lambda cfg: BooleanExpression.evaluate(
             "using-built-library-before-llvm-15 || (stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(14.(0|1|2|3))}})",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     Feature(
         name="using-built-library-before-llvm-17",
         when=lambda cfg: BooleanExpression.evaluate(
             "using-built-library-before-llvm-16",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     Feature(
         name="using-built-library-before-llvm-18",
         when=lambda cfg: BooleanExpression.evaluate(
             # For now, no released version of macOS contains LLVM 18
             # TODO(ldionne) Please provide the correct value.
             "using-built-library-before-llvm-17 || stdlib=apple-libc++ && target={{.+}}-apple-macosx{{.+}}",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     Feature(
         name="using-built-library-before-llvm-19",
         when=lambda cfg: BooleanExpression.evaluate(
             # For now, no released version of macOS contains LLVM 19
             # TODO(ldionne) Please provide the correct value.
             "using-built-library-before-llvm-18 || stdlib=apple-libc++ && target={{.+}}-apple-macosx{{.+}}",
             cfg.available_features,
-        )
-    ),
-
+        ),
+    ),
     # Tests that require std::to_chars(floating-point) in the built library
     Feature(
         name="availability-fp_to_chars-missing",
         when=lambda cfg: BooleanExpression.evaluate(
-            #"stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
+            # "stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
             "using-built-library-before-llvm-13",
             cfg.available_features,
         ),
     ),
     # Tests that require https://wg21.link/P0482 support in the built library
     Feature(
         name="availability-char8_t_support-missing",
         when=lambda cfg: BooleanExpression.evaluate(
-            #"stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0)(.0)?}}",
+            # "stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0)(.0)?}}",
             "using-built-library-before-llvm-11",
             cfg.available_features,
         ),
     ),
     # Tests that require __libcpp_verbose_abort support in the built library
     Feature(
         name="availability-verbose_abort-missing",
         when=lambda cfg: BooleanExpression.evaluate(
-            #"stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
+            # "stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
             "using-built-library-before-llvm-13",
             cfg.available_features,
         ),
     ),
     # Tests that require std::pmr support in the built library
     Feature(
         name="availability-pmr-missing",
         when=lambda cfg: BooleanExpression.evaluate(
-            #"stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
+            # "stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
             "using-built-library-before-llvm-13",
             cfg.available_features,
         ),
     ),
     # Tests that require std::filesystem support in the built library
     Feature(
         name="availability-filesystem-missing",
         when=lambda cfg: BooleanExpression.evaluate(
-            #"stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{(13|14)(.0)?}}",
+            # "stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{(13|14)(.0)?}}",
             "using-built-library-before-llvm-16",
             cfg.available_features,
         ),
     ),
     # Tests that require the C++20 synchronization library (P1135R6 implemented by https://llvm.org/D68480) in the built library
@@ -660,20 +652,20 @@
     ),
     # Tests that require time zone database support in the built library
     Feature(
         name="availability-tzdb-missing",
         when=lambda cfg: BooleanExpression.evaluate(
-            #"(stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}})",
+            # "(stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}})",
             "using-built-library-before-llvm-16",
             cfg.available_features,
         ),
     ),
     # Tests that require support for <print> and std::print in <ostream> in the built library.
     Feature(
         name="availability-print-missing",
         when=lambda cfg: BooleanExpression.evaluate(
-            #"stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.9|10.10|10.11|10.12|10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
+            # "stdlib=apple-libc++ && target={{.+}}-apple-macosx{{(10.9|10.10|10.11|10.12|10.13|10.14|10.15|11.0|12.0|13.0)(.0)?}}",
             "using-built-library-before-llvm-16",
             cfg.available_features,
         ),
     ),
 ]

``````````

</details>


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


More information about the libcxx-commits mailing list