Implements part of P1614R2 "The Mothership has Landed"
Details
- Reviewers
ldionne Mordante philnik - Group Reviewers
Restricted Project - Commits
- rGf1974f039fa7: [libc++] Implement `operator<=>` for `filesystem::directory_entry`
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
SGTM modulo some minor issues.
libcxx/include/__filesystem/directory_entry.h | ||
---|---|---|
253 | Please use _LIBCPP_HIDE_FROM_ABI in new code and only use one blank line. | |
254 | Please update the synopsis. | |
libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp | ||
30 | Instead of updating this macro can you use the generic test macros? |
LGTM modulo some comments.
libcxx/include/filesystem | ||
---|---|---|
218 | XXX ?? That's not in the standard I assume? | |
libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp | ||
34 | I think in other test you tested only one of these asserts, but no real objection against testing both. |
libcxx/include/filesystem | ||
---|---|---|
218 | that's my marker for "I still need to change something here"... because if I forget to actually address it and don't remove the marker, reviewers will usually catch it - as you just did :) in this case, I already did the intended changes: I added the removed in comments which were not there of the copy-pasted synopsis from the standard. But I forgot to remove the marker | |
libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp | ||
34 | good point! Those should be checking AssertComparisonsAreNoexcept<directory_entry> instead of AssertComparisonsAreNoexcept<path>... damn copy-pasting... |
Please use _LIBCPP_HIDE_FROM_ABI in new code and only use one blank line.