[all-commits] [llvm/llvm-project] 7afa15: [libc++] Avoid including <tuple> in compressed_pair.h

philnik777 via All-commits all-commits at lists.llvm.org
Sun Sep 18 01:49:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7afa1598a38103f9b940f219d7c2bef578139e94
      https://github.com/llvm/llvm-project/commit/7afa1598a38103f9b940f219d7c2bef578139e94
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2022-09-18 (Sun, 18 Sep 2022)

  Changed paths:
    M libcxx/include/__memory/compressed_pair.h
    M libcxx/include/__string/char_traits.h
    M libcxx/include/functional
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.algorithm
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.any
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.barrier
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.bitset
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.condition_variable
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.deque
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.experimental_algorithm
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.forward_list
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.list
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.memory
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.queue
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.random
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.set
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.shared_mutex
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.stack
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.string
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.system_error
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.unordered_set
    M libcxx/test/libcxx/transitive_includes/cxx2b/expected.vector
    M libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_comp.pass.cpp
    M libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort_comp.pass.cpp
    M libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp
    M libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/specialization.pass.cpp
    M libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isplace/specialization.pass.cpp
    M libcxx/test/std/utilities/function.objects/func.identity/identity.pass.cpp
    M libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.verify.cpp
    M libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp
    M libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_move.pass.cpp
    M libcxx/test/std/utilities/function.objects/range.cmp/equal_to.pass.cpp
    M libcxx/test/std/utilities/function.objects/range.cmp/greater.pass.cpp
    M libcxx/test/std/utilities/function.objects/range.cmp/greater_equal.pass.cpp
    M libcxx/test/std/utilities/function.objects/range.cmp/less.pass.cpp
    M libcxx/test/std/utilities/function.objects/range.cmp/less_equal.pass.cpp
    M libcxx/test/std/utilities/function.objects/range.cmp/not_equal_to.pass.cpp
    M libcxx/test/std/utilities/memory/storage.iterator/raw_storage_iterator.pass.cpp
    M libcxx/test/support/container_test_types.h

  Log Message:
  -----------
  [libc++] Avoid including <tuple> in compressed_pair.h

compressed_pair is widely used in the library, but most of the uses don't use the tuple parts. To avoid including <tuple> everywhere, use the forward declaration instead in compressed_pair.h

Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D133331




More information about the All-commits mailing list