Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rG91121ea6dc12: [libc++][PSTL] Reduce the amount of transitive includes
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM w/ comments
libcxx/include/__algorithm/pstl_any_all_none_of.h | ||
---|---|---|
62–64 | I would just use a lambda instead, since this is used only in two places. Otherwise, honestly I'd imagine someone finding __negate_function and "refactoring" it to std::not_fn. | |
libcxx/include/__pstl/internal/parallel_impl.h | ||
36 | I think I would still use std::atomic here, but I'd include <__atomic/atomic.h> instead. __atomic_base is arguably an implementation detail of std::atomic, and I don't think we should start using it widely in the rest of our code base. And in fact there's a few places that use std::__atomic_base right now in the synchronization library, and those could be refactored to use std::atomic (although those are IMO less vexing since the synchronization library is so close to <atomic>). |
I would just use a lambda instead, since this is used only in two places. Otherwise, honestly I'd imagine someone finding __negate_function and "refactoring" it to std::not_fn.