[libcxx-commits] [libcxx] [libc++][RFC] Only include what is required by-version in the umbrella headers (PR #83740)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 4 09:58:42 PST 2024
https://github.com/mordante commented:
As mentioned earlier I had a patch on Phab with a slightly different approach. So yes in general I like the idea of reducing the size of the includes.
I wonder about the approach you take; your examples only show how to handle granularized headers. I wonder what do you propose for non-granularized headers?
For example, `<ostream>` includes `<print>` the `<print>` header has been introduced in C++23. This header has some includes not used in `<ostream>`.
Do you propose to keep the `<ostream>` header unchanged or do you want to guard the include of `<print>` with C++23?
https://github.com/llvm/llvm-project/pull/83740
More information about the libcxx-commits
mailing list