[all-commits] [llvm/llvm-project] 29378a: [libc++] Implement P2438R2 (std::string::substr() &&)

philnik777 via All-commits all-commits at lists.llvm.org
Wed Nov 2 12:29:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29378ab24b98137b4959034a0882c3bbd97c46e4
      https://github.com/llvm/llvm-project/commit/29378ab24b98137b4959034a0882c3bbd97c46e4
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M libcxx/docs/ReleaseNotes.rst
    M libcxx/docs/Status/Cxx2bPapers.csv
    M libcxx/include/string
    A libcxx/test/libcxx/strings/basic.string/string.cons/debug.iterator.substr.pass.cpp
    M libcxx/test/libcxx/strings/basic.string/string.iterators/debug.iterator.index.pass.cpp
    A libcxx/test/std/strings/basic.string/string.cons/substr_rvalue.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_substr/substr.pass.cpp
    A libcxx/test/std/strings/basic.string/string.ops/string_substr/substr_rvalue.pass.cpp
    M libcxx/test/support/count_new.h
    M libcxx/test/support/make_string.h

  Log Message:
  -----------
  [libc++] Implement P2438R2 (std::string::substr() &&)

This doesn't affect our ABI because `std::string::substr()` isn't in the dylib and the mangling of `substr() const` and `substr() const&` are different.

Reviewed By: ldionne, Mordante, var-const, avogelsgesang, #libc

Spies: arphaman, huixie90, libcxx-commits

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




More information about the All-commits mailing list