[all-commits] [llvm/llvm-project] 75196f: [libc++] Remove <cstdlib> includes

philnik777 via All-commits all-commits at lists.llvm.org
Sat Apr 8 17:52:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75196f8e72be3f18c5a831e23f385c4ae3eb62b5
      https://github.com/llvm/llvm-project/commit/75196f8e72be3f18c5a831e23f385c4ae3eb62b5
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2023-04-09 (Sun, 09 Apr 2023)

  Changed paths:
    M libcxx/include/__bit/byteswap.h
    M libcxx/include/__expected/expected.h
    M libcxx/include/__filesystem/directory_entry.h
    M libcxx/include/__iterator/advance.h
    M libcxx/include/__locale
    M libcxx/include/__memory/shared_ptr.h
    M libcxx/include/algorithm
    M libcxx/include/any
    M libcxx/include/array
    M libcxx/include/bit
    M libcxx/include/bitset
    M libcxx/include/charconv
    M libcxx/include/deque
    M libcxx/include/experimental/memory_resource
    M libcxx/include/filesystem
    M libcxx/include/forward_list
    M libcxx/include/fstream
    M libcxx/include/functional
    M libcxx/include/future
    M libcxx/include/iterator
    M libcxx/include/list
    M libcxx/include/map
    M libcxx/include/memory
    M libcxx/include/ostream
    M libcxx/include/queue
    M libcxx/include/random
    M libcxx/include/ranges
    M libcxx/include/regex
    M libcxx/include/set
    M libcxx/include/stdexcept
    M libcxx/include/string
    M libcxx/include/string_view
    M libcxx/include/typeinfo
    M libcxx/include/unordered_map
    M libcxx/include/unordered_set
    M libcxx/include/valarray
    M libcxx/include/vector
    M libcxx/test/libcxx/transitive_includes/cxx03.csv
    M libcxx/test/libcxx/transitive_includes/cxx11.csv
    M libcxx/test/libcxx/transitive_includes/cxx14.csv
    M libcxx/test/libcxx/transitive_includes/cxx17.csv
    M libcxx/test/libcxx/transitive_includes/cxx20.csv
    M libcxx/test/libcxx/transitive_includes/cxx2b.csv
    M libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/eval.pass.cpp
    M libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/eval_param.pass.cpp

  Log Message:
  -----------
  [libc++] Remove <cstdlib> includes

We changed the `abort` calls when trying to throw exceptions in `-fno-exceptions` mode to `__verbose_abort` calls, which removes the dependency in most files.

Reviewed By: ldionne, #libc

Spies: dim, emaste, mikhail.ramalho, smeenai, libcxx-commits

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




More information about the All-commits mailing list