[all-commits] [llvm/llvm-project] 0a5ebc: [libc++] Remove a stray `const` on ranges::data an...

Quuxplusone via All-commits all-commits at lists.llvm.org
Tue Sep 7 11:00:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a5ebc692b93f43c3b61e7571254f8c5e234597a
      https://github.com/llvm/llvm-project/commit/0a5ebc692b93f43c3b61e7571254f8c5e234597a
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2021-09-07 (Tue, 07 Sep 2021)

  Changed paths:
    M libcxx/include/__ranges/data.h
    M libcxx/include/__ranges/size.h

  Log Message:
  -----------
  [libc++] Remove a stray `const` on ranges::data and ranges::ssize. NFCI.

These are specced as `inline constexpr auto`; the extra `const`
isn't doing anything except being inconsistent with the other CPOs.
Now all the implemented CPOs can be detected by
    git grep 'inline constexpr auto.*fn' ../libcxx/include/
and I think that's beautiful.




More information about the All-commits mailing list