[all-commits] [llvm/llvm-project] 5b757b: [libc++] Remove __libcpp_allocate (#220981)

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Thu Sep 10 09:41:08 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b757b81db35e7611f0d5f242a2bd53f3894c084
      https://github.com/llvm/llvm-project/commit/5b757b81db35e7611f0d5f242a2bd53f3894c084
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__configuration/compiler.h
    M libcxx/include/__memory/allocator.h
    M libcxx/include/__memory/shared_ptr.h
    M libcxx/include/__memory/unique_temporary_buffer.h
    R libcxx/include/__new/allocate.h
    M libcxx/include/__utility/small_buffer.h
    M libcxx/include/module.modulemap.in
    M libcxx/include/new
    M libcxx/src/include/aligned_alloc.h
    R libcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp
    M libcxx/test/std/containers/container.adaptors/flat.map/flat.map.capacity/max_size.pass.cpp
    M libcxx/test/std/containers/container.adaptors/flat.multimap/flat.multimap.capacity/max_size.pass.cpp
    M libcxx/test/std/containers/container.adaptors/flat.multiset/flat.multiset.capacity/max_size.pass.cpp
    M libcxx/test/std/containers/container.adaptors/flat.set/flat.set.capacity/max_size.pass.cpp
    M libcxx/test/std/language.support/support.dynamic/hardware_inference_size.compile.pass.cpp
    M libcxx/test/std/numerics/numarray/template.valarray/valarray.cons/size.pass.cpp
    M libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/pointer_destruction.pass.cpp

  Log Message:
  -----------
  [libc++] Remove __libcpp_allocate (#220981)

We use `__libcpp_allocate` and friends only in very specific
circumstances. Instead of providing a private API we can make
`std::allocator` the default API for the uses of `__libcpp_allocate`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list