[clang] [llvm] [clang][P2996]: Fix clang's builtin C++ headers search order (PR #237637)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 05:09:25 PST 2026
AaronBallman wrote:
I've added some folks who do distro packaging or know those folks and some libc++ folks to get some extra perspective on whether this approach makes sense or not.
@changkhothuychung it might make sense to expand on the the details in the PR summary so that when we come back to this PR in ten years wondering why we did this, it's more clearly captured. In particular:
* why can't we support libstdc++ the usual way (because they're doing name lookup instead of using builtins)
* are we expecting to split the C++ parts out of the existing C headers into this directory? (I believe the answer is "maybe, but no concrete plans to do so")
* are there other C++ headers we expect will need to go in here or is this specific to reflection? (I believe the answer is unclear at the moment; I think we only need meta to go in here, but maybe in the future w
* how does this change what kind of coordination we need to do with libc++ (I believe the answer is: we need to talk to libc++ and vice versa to ensure everyone knows who is responsible for what and are doing the expected `include_next` dances)
(Feel free to correct anything I've gotten wrong or add more details I've missed.)
https://github.com/llvm/llvm-project/pull/237637
More information about the cfe-commits
mailing list