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/tools/include-mapping/gen_std.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
--- gen_std.py 2026-06-11 18:49:55.000000 +0000
+++ gen_std.py 2026-06-11 18:51:35.113564 +0000
@@ -86,12 +86,11 @@
group_size = sum(SymbolTableRowSize(row) for row in symbol_group)
if group_size + 2 > MAX_SYMBOL_TABLE_STRING_BYTES:
raise ValueError("symbol mapping group exceeds string table limit")
if (
current_string_table
- and current_string_table_size + group_size
- > MAX_SYMBOL_TABLE_STRING_BYTES
+ and current_string_table_size + group_size >
MAX_SYMBOL_TABLE_STRING_BYTES
):
string_tables.append(current_string_table)
current_string_table = []
current_string_table_size = 2
current_string_table.extend(symbol_group)
@@ -105,14 +104,11 @@
for table_index, string_table in enumerate(string_tables):
if table_index:
print("SYMBOL_MAP_PARTITION(%d, %d)" % (table_index - 1,
table_index))
for name, namespace, header in string_table:
print("SYMBOL(%s, %s, %s)" % (name, namespace, header))
- print(
- "SYMBOL_MAP_END(%d, %d)"
- % (len(string_tables) - 1, len(string_tables))
- )
+ print("SYMBOL_MAP_END(%d, %d)" % (len(string_tables) - 1,
len(string_tables)))
def ParseArg():
parser = argparse.ArgumentParser(description="Generate StdGen file")
parser.add_argument(
``````````
</details>
https://github.com/llvm/llvm-project/pull/202663
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits