[all-commits] [llvm/llvm-project] 0e5403: [libc++] Fix ranges::binary_search() returning tru...

Mark de Wever via All-commits all-commits at lists.llvm.org
Wed Mar 8 05:38:56 PST 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e540397b083ae8d88c9057f801af30a974e2a4c
      https://github.com/llvm/llvm-project/commit/0e540397b083ae8d88c9057f801af30a974e2a4c
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M libcxx/include/__algorithm/ranges_binary_search.h
    M libcxx/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/ranges.binary_search.pass.cpp
    M libcxx/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/ranges.lower_bound.pass.cpp
    M libcxx/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/ranges.upper_bound.pass.cpp

  Log Message:
  -----------
  [libc++] Fix ranges::binary_search() returning true for cases where the element is not in the range

Fixes #61160

Reviewed By: ldionne, #libc

Spies: libcxx-commits

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

(cherry picked from commit 33912468a7dbd2cdef3648878ccd6b8f99e0b5bf)


  Commit: c7d3410533dcee16a8837b36400cc36dbc7bbae2
      https://github.com/llvm/llvm-project/commit/c7d3410533dcee16a8837b36400cc36dbc7bbae2
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M libcxx/include/__format/formatter_floating_point.h
    M libcxx/test/std/utilities/format/format.functions/format_tests.h

  Log Message:
  -----------
  [libc++][format] Fix floating point formatting.

Fixes llvm.org/PR58714 reported by @jwakely and a similar issue
reported privately by @vitaut.

Reviewed By: ldionne, #libc

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

(cherry picked from commit 5eaba4a9b1899ce16785b05854bddd39d54b0266)


  Commit: 59d896fd7f9340ed29d8e46964a792df6f836340
      https://github.com/llvm/llvm-project/commit/59d896fd7f9340ed29d8e46964a792df6f836340
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M libcxx/include/__format/concepts.h
    M libcxx/test/std/utilities/format/format.range/format.range.fmtset/format.functions.tests.h
    M libcxx/test/std/utilities/format/format.range/format.range.formatter/format.functions.tests.h

  Log Message:
  -----------
  [libc++][format] Fixes invalid usage of m type.

The m type in a range formatter may only be used when a pair or a tuple
with two elements is used. This was not correctly validated as reported
in llvm.org/PR60995.

Reviewed By: ldionne, #libc

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

(cherry picked from commit 347a65a16493f00ee3eaeaeaf11d3611c62343eb)


Compare: https://github.com/llvm/llvm-project/compare/7b4e71bcf991...59d896fd7f93


More information about the All-commits mailing list