[all-commits] [llvm/llvm-project] 4f215f: [libc++][hardening] Categorize more assertions. (#...

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Fri Jan 5 16:29:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f215fdd62d3f014750339eab9a46946b6fb1c4a
      https://github.com/llvm/llvm-project/commit/4f215fdd62d3f014750339eab9a46946b6fb1c4a
  Author: Konstantin Varlamov <varconsteq at gmail.com>
  Date:   2024-01-05 (Fri, 05 Jan 2024)

  Changed paths:
    M libcxx/include/__algorithm/pop_heap.h
    M libcxx/include/__algorithm/sift_down.h
    M libcxx/include/__algorithm/sort.h
    M libcxx/include/__charconv/to_chars_base_10.h
    M libcxx/include/__charconv/to_chars_integral.h
    M libcxx/include/__charconv/traits.h
    M libcxx/include/__chrono/parser_std_format_spec.h
    M libcxx/include/__config
    M libcxx/include/__filesystem/directory_iterator.h
    M libcxx/include/__filesystem/path_iterator.h
    M libcxx/include/__format/buffer.h
    M libcxx/include/__format/format_arg.h
    M libcxx/include/__format/formatter_bool.h
    M libcxx/include/__format/formatter_floating_point.h
    M libcxx/include/__format/formatter_integral.h
    M libcxx/include/__format/formatter_output.h
    M libcxx/include/__format/formatter_string.h
    M libcxx/include/__format/parser_std_format_spec.h
    M libcxx/include/__format/range_formatter.h
    M libcxx/include/__format/unicode.h
    M libcxx/include/__format/write_escaped.h
    M libcxx/include/__hash_table
    M libcxx/include/__iterator/advance.h
    M libcxx/include/__iterator/next.h
    M libcxx/include/__iterator/prev.h
    M libcxx/include/__random/negative_binomial_distribution.h
    M libcxx/include/__ranges/chunk_by_view.h
    M libcxx/include/__ranges/drop_while_view.h
    M libcxx/include/__ranges/filter_view.h
    M libcxx/include/__thread/thread.h
    M libcxx/include/__utility/exception_guard.h
    M libcxx/include/__utility/unreachable.h
    M libcxx/include/print
    M libcxx/include/regex
    M libcxx/include/set
    M libcxx/src/filesystem/error.h
    M libcxx/src/filesystem/format_string.h
    M libcxx/src/filesystem/posix_compat.h
    M libcxx/src/include/to_chars_floating_point.h
    M libcxx/src/memory_resource.cpp
    M libcxx/src/strstream.cpp
    M libcxx/src/system_error.cpp
    M libcxx/test/libcxx/utilities/assert.exception_guard.no_exceptions.pass.cpp
    M libcxx/test/std/utilities/utility/utility.unreachable/assert.unreachable.pass.cpp

  Log Message:
  -----------
  [libc++][hardening] Categorize more assertions. (#75918)

Also introduce `_LIBCPP_ASSERT_PEDANTIC` for assertions violating which
results in a no-op or other benign behavior, but which may nevertheless
indicate a bug in the invoking code.




More information about the All-commits mailing list