[libcxx-commits] [PATCH] D103583: [libcxx][gardening] Move all algorithms into their own headers.

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 2 18:19:00 PDT 2021


zoecarver created this revision.
zoecarver added reviewers: ldionne, cjdb, Quuxplusone, EricWF.
Herald added subscribers: wenlei, mgrang, mgorny.
zoecarver requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: libcxx-commits, sstefan1.
Herald added a project: libc++.
Herald added a reviewer: libc++.

This is a fairly mechanical change, it just moves each algorithm into its own header. This is a NFC.

Note: during this change, I burned down all the includes, so this follows "include only and exactly what you use."

There may be some module work that needs to happen here. Let's see what the CI thinks.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103583

Files:
  cmake_lists_add.txt
  includes_add.txt
  libcxx/include/CMakeLists.txt
  libcxx/include/__algorithm/adjacent_find.h
  libcxx/include/__algorithm/all_of.h
  libcxx/include/__algorithm/any_of.h
  libcxx/include/__algorithm/binary_search.h
  libcxx/include/__algorithm/clamp.h
  libcxx/include/__algorithm/comp.h
  libcxx/include/__algorithm/comp_ref_type.h
  libcxx/include/__algorithm/copy.h
  libcxx/include/__algorithm/count.h
  libcxx/include/__algorithm/count_if.h
  libcxx/include/__algorithm/equal.h
  libcxx/include/__algorithm/equal_range.h
  libcxx/include/__algorithm/fill.h
  libcxx/include/__algorithm/find.h
  libcxx/include/__algorithm/find_end.h
  libcxx/include/__algorithm/find_first_of.h
  libcxx/include/__algorithm/find_if.h
  libcxx/include/__algorithm/find_if_not.h
  libcxx/include/__algorithm/for_each.h
  libcxx/include/__algorithm/for_each_n.h
  libcxx/include/__algorithm/generate.h
  libcxx/include/__algorithm/half_positive.h
  libcxx/include/__algorithm/includes.h
  libcxx/include/__algorithm/inplace_merge.h
  libcxx/include/__algorithm/is_heap.h
  libcxx/include/__algorithm/is_heap_until.h
  libcxx/include/__algorithm/is_partitioned.h
  libcxx/include/__algorithm/is_permutation.h
  libcxx/include/__algorithm/is_sorted.h
  libcxx/include/__algorithm/lexicographical_compare.h
  libcxx/include/__algorithm/lower_bound.h
  libcxx/include/__algorithm/make_heap.h
  libcxx/include/__algorithm/max.h
  libcxx/include/__algorithm/max_element.h
  libcxx/include/__algorithm/merge.h
  libcxx/include/__algorithm/min.h
  libcxx/include/__algorithm/min_element.h
  libcxx/include/__algorithm/minmax.h
  libcxx/include/__algorithm/minmax_element.h
  libcxx/include/__algorithm/mismatch.h
  libcxx/include/__algorithm/move.h
  libcxx/include/__algorithm/next_permutation.h
  libcxx/include/__algorithm/none_of.h
  libcxx/include/__algorithm/nth_element.h
  libcxx/include/__algorithm/partial_sort.h
  libcxx/include/__algorithm/partition.h
  libcxx/include/__algorithm/partition_point.h
  libcxx/include/__algorithm/pop_heap.h
  libcxx/include/__algorithm/prev_permutation.h
  libcxx/include/__algorithm/push_heap.h
  libcxx/include/__algorithm/remove.h
  libcxx/include/__algorithm/replace.h
  libcxx/include/__algorithm/reverse.h
  libcxx/include/__algorithm/rotate.h
  libcxx/include/__algorithm/sample.h
  libcxx/include/__algorithm/search.h
  libcxx/include/__algorithm/search_n.h
  libcxx/include/__algorithm/set_difference.h
  libcxx/include/__algorithm/set_intersection.h
  libcxx/include/__algorithm/set_symmetric_difference.h
  libcxx/include/__algorithm/set_union.h
  libcxx/include/__algorithm/shift.h
  libcxx/include/__algorithm/shuffle.h
  libcxx/include/__algorithm/sift_down.h
  libcxx/include/__algorithm/sort.h
  libcxx/include/__algorithm/sort_heap.h
  libcxx/include/__algorithm/stable_partition.h
  libcxx/include/__algorithm/stable_sort.h
  libcxx/include/__algorithm/transform.h
  libcxx/include/__algorithm/uniform_int_distribution.h
  libcxx/include/__algorithm/unique.h
  libcxx/include/__algorithm/unwrap_iter.h
  libcxx/include/__algorithm/upper_bound.h
  libcxx/include/__functional/__search.h
  libcxx/include/__memory/temporary_buffer.h
  libcxx/include/algorithm
  libcxx/include/experimental/functional
  libcxx/include/functional
  libcxx/include/module.modulemap
  libcxx/include/regex
  libcxx/test/std/algorithms/alg.modifying.operations/alg.random.sample/sample.fail.cpp
  libcxx/test/std/algorithms/alg.sorting/alg.min.max/requires_forward_iterator.fail.cpp
  libcxx/test/std/containers/sequences/array/compare.fail.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103583.349439.patch
Type: text/x-patch
Size: 470645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210603/65d1d248/attachment-0001.bin>


More information about the libcxx-commits mailing list