diff options
| author | Roland McGrath <mcgrathr@google.com> | 2025-02-13 16:07:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-13 16:07:06 -0800 |
| commit | 6d3bfddb9d5458bf650fe4bf1da5db5848e7eb84 (patch) | |
| tree | 2e50ecd58f69a314a256dd50a120a06952edbbea /libc/utils/hdrgen/tests/input | |
| parent | 3c2ba68915b268fd3b7d39bf62e19199b2cb8995 (diff) | |
[libc] Make hdrgen support macro_header YAML field. (#123265)
A macro can specify macro_header instead of macro_value to
indicate that an llvm-libc-macros/ header file is supposed to
define this macro. This is used for dlfcn.h, which previously
bogusly redefined the RTLD_* macros to empty.
Diffstat (limited to 'libc/utils/hdrgen/tests/input')
| -rw-r--r-- | libc/utils/hdrgen/tests/input/test_small.h.def | 1 | ||||
| -rw-r--r-- | libc/utils/hdrgen/tests/input/test_small.yaml | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libc/utils/hdrgen/tests/input/test_small.h.def b/libc/utils/hdrgen/tests/input/test_small.h.def index 075be957b813..587b163b68d9 100644 --- a/libc/utils/hdrgen/tests/input/test_small.h.def +++ b/libc/utils/hdrgen/tests/input/test_small.h.def @@ -11,7 +11,6 @@ #include "__llvm-libc-common.h" #include "llvm-libc-macros/float16-macros.h" -#include "llvm-libc-macros/test_small-macros.h" #include "llvm-libc-types/float128.h" %%public_api() diff --git a/libc/utils/hdrgen/tests/input/test_small.yaml b/libc/utils/hdrgen/tests/input/test_small.yaml index 1d4b2990a300..d5bb2bbfe446 100644 --- a/libc/utils/hdrgen/tests/input/test_small.yaml +++ b/libc/utils/hdrgen/tests/input/test_small.yaml @@ -5,6 +5,11 @@ macros: macro_value: 1 - macro_name: MACRO_B macro_value: 2 + - macro_name: MACRO_C + - macro_name: MACRO_D + macro_header: test_small-macros.h + - macro_name: MACRO_E + macro_header: test_more-macros.h types: - type_name: type_a - type_name: type_b |
