[llvm] [gn] use action() instead of copy() for libcxx headers (PR #195948)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 14:47:38 PDT 2026
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 llvm/utils/gn/build/sync_source_dir.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
--- sync_source_dir.py 2026-05-05 21:45:33.000000 +0000
+++ sync_source_dir.py 2026-05-05 21:47:02.643733 +0000
@@ -17,18 +17,18 @@
return f.read()
def main():
parser = argparse.ArgumentParser(
- description=__doc__,
- formatter_class=argparse.RawDescriptionHelpFormatter)
- parser.add_argument("--stamp", required=True,
- help="name of a file whose mtime is updated on run")
+ description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
+ )
+ parser.add_argument(
+ "--stamp", required=True, help="name of a file whose mtime is updated on run"
+ )
parser.add_argument("--source-dir", required=True)
parser.add_argument("--output-dir", required=True)
- parser.add_argument("--except", dest="exceptions", action="append",
- default=[])
+ parser.add_argument("--except", dest="exceptions", action="append", default=[])
parser.add_argument("rspfile")
args = parser.parse_args()
files = shlex.split(read(args.rspfile))
``````````
</details>
https://github.com/llvm/llvm-project/pull/195948
More information about the llvm-commits
mailing list