[libcxx-commits] [libcxx] [libc++] Regenerate transitive include. (PR #202001)

Connector Switch via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 5 22:30:12 PDT 2026


c8ef wrote:

It looks like the affected headers are disabled, but the regeneration process doesn't filter them out.

- regenerate for all public headers

```python
if regenerate_expected_results:
    print(
        f"""\
//--- generate-transitive-includes.sh.cpp
// RUN: mkdir %t
"""
    )

    all_traces = []
    for header in sorted(public_headers):
        if header.is_C_compatibility() or header.is_internal():
            continue

        normalized_header = re.sub("/", "_", str(header))
        print(
            f"""\
// RUN: echo "#include <{header}>" | %{{cxx}} -xc++ - %{{flags}} %{{compile_flags}} -D_LIBCPP_KEEP_TRANSITIVE_INCLUDES_LLVM23 --trace-includes -fshow-skipped-includes --preprocess > /dev/null 2> %t/trace-includes.{normalized_header}.txt
"""
        )
        all_traces.append(f"%t/trace-includes.{normalized_header}.txt")

    print(
        f"""\
// RUN: %{{python}} %{{libcxx-dir}}/test/libcxx/transitive_includes/to_csv.py {' '.join(all_traces)} > %{{libcxx-dir}}/test/libcxx/transitive_includes/%{{cxx_std}}.csv
"""
    )
```

- check has some unsuported

```c
// UNSUPPORTED: no-localization, no-wide-characters, no-threads, no-filesystem, libcpp-has-no-experimental-tzdb
```

https://github.com/llvm/llvm-project/pull/202001


More information about the libcxx-commits mailing list