[libcxx-commits] [libcxx] [libc++][test] Improves substitution naming (PR #80471)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 2 10:20:35 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 7ecfb66c77ad77dabbb705cbb1f3b17a3d1391a4...bdfaf7a1f606f4674c89b3231c3fffeac88663eb libcxx/test/libcxx/assertions/headers_declare_verbose_abort.gen.py libcxx/test/libcxx/clang_modules_include.gen.py libcxx/test/libcxx/clang_tidy.gen.py libcxx/test/libcxx/double_include.gen.py libcxx/test/libcxx/header_inclusions.gen.py libcxx/test/libcxx/headers_in_modulemap.sh.py libcxx/test/libcxx/libcpp_version.gen.py libcxx/test/libcxx/module_std.gen.py libcxx/test/libcxx/module_std_compat.gen.py libcxx/test/libcxx/no_assert_include.gen.py libcxx/test/libcxx/system_reserved_names.gen.py libcxx/test/libcxx/transitive_includes.gen.py libcxx/utils/libcxx/test/features.py libcxx/utils/libcxx/test/format.py
``````````

</details>

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

``````````diff
--- utils/libcxx/test/features.py	2024-02-02 18:15:07.000000 +0000
+++ utils/libcxx/test/features.py	2024-02-02 18:20:27.928276 +0000
@@ -25,11 +25,16 @@
 
 
 def _getSuitableClangTidy(cfg):
     try:
         # If we didn't build the libcxx-tidy plugin via CMake, we can't run the clang-tidy tests.
-        if runScriptExitCode(cfg, ["stat %{test-tools-dir}/clang_tidy_checks/libcxx-tidy.plugin"]) != 0:
+        if (
+            runScriptExitCode(
+                cfg, ["stat %{test-tools-dir}/clang_tidy_checks/libcxx-tidy.plugin"]
+            )
+            != 0
+        ):
             return None
 
         # TODO MODULES require ToT due module specific fixes.
         if runScriptExitCode(cfg, ['clang-tidy-18 --version']) == 0:
           return 'clang-tidy-18'

``````````

</details>


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


More information about the libcxx-commits mailing list