Skip to content

Commit 75a94d2

Browse files
ldionnecopybara-github
authored andcommitted
[libc++] Rewrite the IWYU generation (#78295)
This simplifies the IWYU generation script by treating everything as a file, instead of dealing with directories and files separately. This has the downside that the `libcxx.imp` file is a lot larger than it used to be, however we now have the flexibility of mapping files under detail directories to different public headers. For example, this allows us to map <__fwd/subrange.h> to <ranges> but <__fwd/pair.h> to <utility>. This patch also adds basic validation to ensure that we never map a header to a public header that doesn't exist. We may still be missing some mappings or we may be mapping to incorrect headers, but we won't be mapping to headers that downright don't exist. Fixes #63346 NOKEYCHECK=True GitOrigin-RevId: 127c390fc413f8f267b085b153e6d21f84c7886e
1 parent 1c48465 commit 75a94d2

File tree

3 files changed

+906
-160
lines changed

3 files changed

+906
-160
lines changed

0 commit comments

Comments
 (0)