[libcxx-commits] [PATCH] D119020: [libc++] Replace includes of <utility> with specific detail headers

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 4 10:17:22 PST 2022


Quuxplusone created this revision.
Quuxplusone added reviewers: ldionne, philnik, Mordante, var-const, libc++.
Quuxplusone added a project: libc++.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.

Basically a rebase of D104980 <https://reviews.llvm.org/D104980>; most of that patch had already happened
via gradual drive-by changes, but this finishes it up.
Don't touch the inclusions from `<__functional_base>`, `<__hash_table>`,
or `<__locale>`; those could be removed if we propagated the
inclusions up to the includers of those files, but there are lots
of those includers.

`<algorithm>`, `<functional>`, and `<memory>` already include `<utility>`
at the top level. `<iterator>` did not, so I've added it there.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119020

Files:
  libcxx/include/__algorithm/minmax.h
  libcxx/include/__algorithm/minmax_element.h
  libcxx/include/__algorithm/mismatch.h
  libcxx/include/__algorithm/move.h
  libcxx/include/__algorithm/move_backward.h
  libcxx/include/__algorithm/partition_copy.h
  libcxx/include/__algorithm/remove_if.h
  libcxx/include/__algorithm/search.h
  libcxx/include/__algorithm/unique_copy.h
  libcxx/include/__functional/bind_front.h
  libcxx/include/__functional/default_searcher.h
  libcxx/include/__functional/function.h
  libcxx/include/__functional/identity.h
  libcxx/include/__functional/mem_fn.h
  libcxx/include/__functional/not_fn.h
  libcxx/include/__functional/ranges_operations.h
  libcxx/include/__iterator/iter_move.h
  libcxx/include/__memory/allocation_guard.h
  libcxx/include/__memory/compressed_pair.h
  libcxx/include/__memory/construct_at.h
  libcxx/include/__memory/raw_storage_iterator.h
  libcxx/include/__memory/shared_ptr.h
  libcxx/include/__memory/temporary_buffer.h
  libcxx/include/__memory/uninitialized_algorithms.h
  libcxx/include/__memory/unique_ptr.h
  libcxx/include/algorithm
  libcxx/include/iterator

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119020.406030.patch
Type: text/x-patch
Size: 12881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220204/5e14f33b/attachment.bin>


More information about the libcxx-commits mailing list