A few headers in algorithm include <iterator> when
<__iterator/distance.h> would suffice. Change them to just include
<__iterator.distance.h>.
Details
- Reviewers
ldionne • Quuxplusone zoecarver cjdb Mordante - Group Reviewers
Restricted Project - Commits
- rG9807626bc721: [libc++] Include <__iterator/distance.h> instead of <iterator> in a few…
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
@cjdb thanks for the quick review. I don't have commit rights -- do you mind committing on my behalf, please?
libcxx/include/__algorithm/equal.h | ||
---|---|---|
16–17 | Please sort these alphabetically. |
libcxx/include/__algorithm/equal.h | ||
---|---|---|
16–17 | You need <type_traits> in both places now, for add_lvalue_reference_t. Otherwise the modules build breaks. |
libcxx/include/__algorithm/equal.h | ||
---|---|---|
16–17 | Fixed. Good spot, @Quuxplusone. |
@Quuxplusone do you want to land this and then have https://reviews.llvm.org/D108400 rebase with it or just pursue https://reviews.llvm.org/D108400 instead of this? CI just passed for this diff.
@Quuxplusone do you want to land this and then have D108400 rebase with it or just pursue D108400 instead of this? CI just passed for this diff.
Once D108400 gets the OK from @ldionne I'll land it. If D108393 lands first, I'll rebase. If D108400 lands first, I'll close D108393. I don't think it matters whether D108393 is landed or not.
Fair enough. I don't have commit rights, so I'll need someone else to commit this on my behalf if we want to land this standalone.
Please sort these alphabetically.