[libcxx] [llvm] [libcxx] Provide locale conversions to tests through lit substitution (PR #86649)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 03:32:41 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 6a6f9bf38e65ec45b32da4b578e2830341a9b364...e400580b635f29b2292746ef998e6c652398f1c1 libcxx/utils/libcxx/test/features.py llvm/utils/lit/lit/TestRunner.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- libcxx/utils/libcxx/test/features.py 2024-03-26 10:28:53.000000 +0000
+++ libcxx/utils/libcxx/test/features.py 2024-03-26 10:32:12.571005 +0000
@@ -354,10 +354,11 @@
and "_LIBCPP_HAS_NO_WIDE_CHARACTERS" not in compilerMacros(cfg)
else [],
),
)
+
# Provide environment locale conversions through substitutions to avoid platform specific
# maintenance.
def _getLocaleFlagsAction(cfg, locale, alts, members):
alts_list = ",".join([f'"{l}"' for l in alts])
get_member_list = ",".join([f"lc->{m}" for m in members])
``````````
</details>
https://github.com/llvm/llvm-project/pull/86649
More information about the llvm-commits
mailing list