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 
24d5c54cf52d38e63d365275f913285908aa9c9a...ae991f8c88c21a0872a5fa63219b3cb9b2787d9a
 clang/test/Driver/ftime-trace-sections.py
``````````

</details>

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

``````````diff
--- ftime-trace-sections.py     2024-07-10 15:52:55.000000 +0000
+++ ftime-trace-sections.py     2024-07-10 15:56:32.203967 +0000
@@ -14,11 +14,13 @@
 def is_before(range1, range2):
     b = range1["ts"] + range1["dur"]
     c = range2["ts"]
     return b <= c
 
+
 instantiation_pattern = re.compile("^.*<.*>@.*.cpp$")
+
 
 def is_valid_instantiation(instantiation):
     return instantiation_pattern.match(instantiation["args"]["detail"])
 
 
@@ -53,12 +55,7 @@
         for backend in backends
     ]
 ):
     sys.exit("Not all Frontend section are before all Backend sections!")
 
-if not all(
-    [
-        is_valid_instantiation(instantiation)
-        for instantiation in instantiations
-    ]
-):
+if not all([is_valid_instantiation(instantiation) for instantiation in 
instantiations]):
     sys.exit("Not all Frontend section are before all Backend sections!")

``````````

</details>


https://github.com/llvm/llvm-project/pull/98320
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to