[libcxx-commits] [libcxx] [libc++] Automatically detect the libc++ hardening mode from the test suite (PR #172505)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 16 07:55:32 PST 2025


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 origin/main...HEAD libcxx/utils/libcxx/test/features/libcxx_macros.py libcxx/utils/libcxx/test/params.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
--- features/libcxx_macros.py	2025-12-16 15:48:53.000000 +0000
+++ features/libcxx_macros.py	2025-12-16 15:55:01.474767 +0000
@@ -85,8 +85,8 @@
         #endif
     """
     features.append(
         Feature(
             name=f"libcpp-hardening-mode={mode}",
-            when=lambda cfg: programSucceeds(cfg, check_program)
+            when=lambda cfg: programSucceeds(cfg, check_program),
         )
     )

``````````

</details>


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


More information about the libcxx-commits mailing list