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
compiler-rt/test/tsan_deadlock/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-07-29 11:20:20.000000 +0000
+++ lit.cfg.py 2026-07-29 11:42:17.800916 +0000
@@ -17,19 +17,24 @@
if default_tsan_deadlock_opts:
config.environment["TSAN_DEADLOCK_OPTIONS"] = default_tsan_deadlock_opts
default_tsan_deadlock_opts += ":"
config.substitutions.append(
- ("%env_tsan_deadlock_opts=", "env TSAN_DEADLOCK_OPTIONS=" +
default_tsan_deadlock_opts)
+ (
+ "%env_tsan_deadlock_opts=",
+ "env TSAN_DEADLOCK_OPTIONS=" + default_tsan_deadlock_opts,
+ )
)
clang_tsan_deadlock_cflags = (
["-fsanitize=thread-deadlock", "-Wall", "-pthread"]
+ [config.target_cflags]
+ config.debug_info_flags
)
-clang_tsan_deadlock_cxxflags = config.cxx_mode_flags +
clang_tsan_deadlock_cflags + ["-std=c++14"]
+clang_tsan_deadlock_cxxflags = (
+ config.cxx_mode_flags + clang_tsan_deadlock_cflags + ["-std=c++14"]
+)
def build_invocation(compile_flags):
return " " + " ".join([config.clang] + compile_flags) + " "
``````````
</details>
https://github.com/llvm/llvm-project/pull/212748
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits