Skip to content

Commit 62cd050

Browse files
authored
[libc] Move hdrgen yaml files into include/ (#121443)
The .yaml files should live next to the corresponding .h.def files in libc/include/, rather than next to the implementation of the tool in libc/utils/hdrgen/. As with the .h.def files, there is no need for a yaml/ subdirectory under include/. This simpler layout is more natural for maintenance and also simplifies build integration outside the LLVM CMake build.
1 parent cd23949 commit 62cd050

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+59
-59
lines changed

libc/docs/dev/header_generation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ To add through the command line:
4545
.. code-block:: none
4646
4747
python3 libc/utils/hdrgen/yaml_to_classes.py
48-
libc/utils/hdrgen/yaml/[yaml_file.yaml] --add_function "<return_type>" <function_name> "<function_arg1, function_arg2>" <standard> <guard> <attribute>
48+
libc/include/[yaml_file.yaml] --add_function "<return_type>" <function_name> "<function_arg1, function_arg2>" <standard> <guard> <attribute>
4949
5050
Example:
5151

5252
.. code-block:: none
5353
5454
python3 libc/utils/hdrgen/yaml_to_classes.py
55-
libc/utils/hdrgen/yaml/ctype.yaml --add_function "char" example_function
55+
libc/include/ctype.yaml --add_function "char" example_function
5656
"int, void, const void" stdc example_float example_attribute
5757
5858
Keep in mind only the return_type and arguments have quotes around them. If
@@ -118,7 +118,7 @@ Common Errors
118118
missing. Ensure the correct style and required files are present:
119119

120120
| ``[header_name]``
121-
| ``[../libc/utils/hdrgen/yaml/[yaml_file.yaml]``
121+
| ``[../libc/include/[yaml_file.yaml]``
122122
| ``[header_name.h.def]``
123123
| ``[header_name.h]``
124124
| ``DEPENDS``

0 commit comments

Comments
 (0)