[libcxx-commits] [libcxx] [libc++] Don't commit libcxx.imp (PR #89391)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Apr 19 07:48:01 PDT 2024
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 9a07d7ea9b37a5b537fc8099cc5744f44da29abc...c16349d707f6cd1023b5559bf2878801baf4124a libcxx/utils/generate_iwyu_mapping.py libcxx/utils/libcxx/header_information.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- generate_iwyu_mapping.py 2024-04-19 14:43:17.000000 +0000
+++ generate_iwyu_mapping.py 2024-04-19 14:47:37.629746 +0000
@@ -51,14 +51,20 @@
elif re.match("__(.+?)/.+", header):
return [re.match("__(.+?)/.+", header).group(1)]
else:
return None
+
def main(argv: typing.List[str]):
parser = argparse.ArgumentParser()
- parser.add_argument("-o", help="File to output the IWYU mappings into",
- type=argparse.FileType('w'), required=True, dest="output")
+ parser.add_argument(
+ "-o",
+ help="File to output the IWYU mappings into",
+ type=argparse.FileType("w"),
+ required=True,
+ dest="output",
+ )
args = parser.parse_args(argv)
mappings = [] # Pairs of (header, public_header)
for header in libcxx.header_information.all_headers:
public_headers = IWYU_mapping(header)
``````````
</details>
https://github.com/llvm/llvm-project/pull/89391
More information about the libcxx-commits
mailing list