[libc-commits] [libc] [libc][hdrgen] Fix `includes` sorting in JSON emission (PR #165460)
via libc-commits
libc-commits at lists.llvm.org
Tue Oct 28 11:57:30 PDT 2025
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 libc/utils/hdrgen/hdrgen/header.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
--- header.py 2025-10-28 18:53:44.000000 +0000
+++ header.py 2025-10-28 18:57:01.695953 +0000
@@ -239,9 +239,7 @@
def json_data(self):
return {
"name": self.name,
"standards": self.standards,
- "includes": sorted(
- str(file) for file in {COMMON_HEADER} | self.includes()
- ),
+ "includes": sorted(str(file) for file in {COMMON_HEADER} | self.includes()),
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/165460
More information about the libc-commits
mailing list