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 libclc/test/lit.cfg.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
--- lit.cfg.py 2026-08-05 12:34:06.000000 +0000
+++ lit.cfg.py 2026-08-05 12:38:33.575458 +0000
@@ -100,13 +100,24 @@
config.substitutions.append(("%libclc-run", loader))
config.available_features.add("libclc-native-run")
# Register the OpenCL features and extensions the compiler advertises.
probe = subprocess.run(
- [clang, f"--target={config.libclc_target}", f"-march={test_arch}",
- "-cl-std=CL3.0", "-x", "cl", "-dM", "-E", "-"],
- input="", capture_output=True, text=True,
+ [
+ clang,
+ f"--target={config.libclc_target}",
+ f"-march={test_arch}",
+ "-cl-std=CL3.0",
+ "-x",
+ "cl",
+ "-dM",
+ "-E",
+ "-",
+ ],
+ input="",
+ capture_output=True,
+ text=True,
)
for line in probe.stdout.splitlines():
tokens = line.split()
if len(tokens) >= 2 and tokens[0] == "#define":
name = tokens[1]
``````````
</details>
https://github.com/llvm/llvm-project/pull/214217
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits