[all-commits] [llvm/llvm-project] 049a3f: [libc++] Fix "size_t" constants that should be "bo...

Quuxplusone via All-commits all-commits at lists.llvm.org
Mon Feb 27 13:53:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 049a3fe10f644c259a33f185a0a7711757252188
      https://github.com/llvm/llvm-project/commit/049a3fe10f644c259a33f185a0a7711757252188
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M libcxx/include/__functional/bind.h
    M libcxx/include/__memory/uses_allocator.h
    M libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isbind/is_bind_expression.pass.cpp
    M libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.isplace/is_placeholder.pass.cpp
    M libcxx/test/std/utilities/memory/allocator.uses/allocator.uses.trait/uses_allocator.pass.cpp

  Log Message:
  -----------
  [libc++] Fix "size_t" constants that should be "bool" or "int", and add tests

`is_placeholder`, despite having an "is_" name, actually returns an int:
1 for `_1`, 2 for `_2`, 3 for `_3`, and so on. But it should still be int,
not size_t.




More information about the All-commits mailing list