[libcxx-commits] [libcxx] [libc++] Improves type-safety in generator script. (PR #101880)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 4 06:52:55 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 2fe08ed35a968dcfd797cbd31ae56bb0b1447faf...171b6710b5f41f8f546913196964305a437e27f7 libcxx/test/libcxx/feature_test_macro/ftm_metadata.sh.py libcxx/test/libcxx/feature_test_macro/version_header_implementation.sh.py libcxx/utils/generate_feature_test_macro_components.py
``````````

</details>

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

``````````diff
--- utils/generate_feature_test_macro_components.py	2024-08-04 13:48:43.000000 +0000
+++ utils/generate_feature_test_macro_components.py	2024-08-04 13:52:27.410581 +0000
@@ -1924,11 +1924,14 @@
         f.write(doc_str)
 
 
 Std = NewType("Std", str)  # Standard version number
 Ftm = NewType("Ftm", str)  # The name of a feature test macro
-Value = NewType("Value", str)  # The value of a feature test macro including the L suffix
+Value = NewType(
+    "Value", str
+)  # The value of a feature test macro including the L suffix
+
 
 @dataclass
 class Metadata:
     headers: list[str] = None
     test_suite_guard: str = None

``````````

</details>


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


More information about the libcxx-commits mailing list