[all-commits] [llvm/llvm-project] dea74b: [libc++] Add `noexcept` to `string::find` and simi...

Zoe Carver via All-commits all-commits at lists.llvm.org
Tue Feb 9 11:48:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dea74b2820612ecca967528f7f2bbcc6d05801fe
      https://github.com/llvm/llvm-project/commit/dea74b2820612ecca967528f7f2bbcc6d05801fe
  Author: zoecarver <z.zoelec2 at gmail.com>
  Date:   2021-02-09 (Tue, 09 Feb 2021)

  Changed paths:
    M libcxx/include/__string
    M libcxx/include/string
    M libcxx/include/string_view
    M libcxx/test/std/strings/basic.string/string.ops/string_compare/pointer.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_compare/string.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_compare/string_view.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/char_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/pointer_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/pointer_size_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/string_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/string_view_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/char_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/pointer_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/pointer_size_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/string_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/string_view_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/char_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/pointer_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/pointer_size_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/string_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/string_view_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/char_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/pointer_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/pointer_size_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/string_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/string_view_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find/char_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find/pointer_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find/pointer_size_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find/string_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_find/string_view_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_rfind/char_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_rfind/pointer_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_rfind/pointer_size_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_rfind/string_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.ops/string_rfind/string_view_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_char_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_not_of_char_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_not_of_pointer_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_not_of_pointer_size_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_not_of_string_view_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_of_char_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_of_pointer_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_of_pointer_size_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_first_of_string_view_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_not_of_char_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_not_of_pointer_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_not_of_pointer_size_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_not_of_string_view_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_of_char_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_of_pointer_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_of_pointer_size_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_last_of_string_view_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_pointer_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_pointer_size_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/find_string_view_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/rfind_char_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/rfind_pointer_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/rfind_pointer_size_size.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.find/rfind_string_view_size.pass.cpp

  Log Message:
  -----------
  [libc++] Add `noexcept` to `string::find` and similar members.

Adds `noexcept` to `string_view`/`string::find` and similar members
(`rfind`, etc.). See discussion in D95251. Refs D95821.

Reviewed By: curdeius, ldionne

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




More information about the All-commits mailing list