[libc-commits] [libc] [libc][docs] adds macro handling, POSIX status, and validation to docgen (PR #89421)
via libc-commits
libc-commits at lists.llvm.org
Mon Apr 22 14:08:33 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 b8adf169bb86f8226978e1262443e2ffd94298ce...0833de193ad21a1f83587dfcde61a458d6a018a4 libc/utils/docgen/__init__.py libc/utils/docgen/header.py libc/utils/docgen/docgen.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- docgen.py 2024-04-22 21:04:33.000000 +0000
+++ docgen.py 2024-04-22 21:08:07.119936 +0000
@@ -17,11 +17,11 @@
class DocgenAPIFormatError(Exception):
"""Raised on fatal formatting errors with a description of a formatting error"""
-
+
def check_api(header: Header, api: Dict):
"""
Checks that docgen json files are properly formatted. If there are any
fatal formatting errors, raises exceptions with error messages useful for
fixing formatting. Warnings are printed to stderr on non-fatal formatting
--- header.py 2024-04-22 21:04:33.000000 +0000
+++ header.py 2024-04-22 21:08:07.142149 +0000
@@ -5,10 +5,11 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# ==-------------------------------------------------------------------------==#
from pathlib import Path
from typing import Generator
+
class Header:
"""
Maintains implementation information about a standard header file:
* where does its implementation dir live
``````````
</details>
https://github.com/llvm/llvm-project/pull/89421
More information about the libc-commits
mailing list