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 clang/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-03-12 17:00:15.000000 +0000
+++ lit.cfg.py 2026-03-12 17:02:06.320191 +0000
@@ -427,10 +427,11 @@
config.available_features.add("llvm-driver")
if config.clang_enable_cir:
config.available_features.add("cir-enabled")
+
# Tests that rely on chmod to restrict file permissions (e.g. write-permission
# checks) are unreliable when run as root, since root bypasses file
permissions.
def user_is_root():
# os.getuid() is not available on all platforms
try:
``````````
</details>
https://github.com/llvm/llvm-project/pull/186169
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits