[all-commits] [llvm/llvm-project] 65d62e: [libc++][test] Replace a TEST_NOEXCEPT_FALSE with ...

Joseph Loser via All-commits all-commits at lists.llvm.org
Sun Oct 10 11:52:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65d62e52a78940b2c332b32429fffe557860e8ed
      https://github.com/llvm/llvm-project/commit/65d62e52a78940b2c332b32429fffe557860e8ed
  Author: Joe Loser <joeloser93 at gmail.com>
  Date:   2021-10-10 (Sun, 10 Oct 2021)

  Changed paths:
    M libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp

  Log Message:
  -----------
  [libc++][test] Replace a TEST_NOEXCEPT_FALSE with noexcept(false). NFC.

Replace `TEST_NOEXCEPT_FALSE` directly with `noexcept(false)` in
optional hash test which is only run in C++17 or later.
`TEST_NOEXCEPT_FALSE` is only useful in C++03 context where `noexcept`
isn't supported by clang. `TEST_NOEXCEPT_FALSE` now only has one remaining use
in `hash_unique_ptr.pass.cpp`.




More information about the All-commits mailing list