[all-commits] [llvm/llvm-project] 874723: Partially implement P1401R5 (Narrowing contextual ...

cor3ntin via All-commits all-commits at lists.llvm.org
Mon Jul 12 05:06:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8747234032c9c6270a6198ab3cca14ce2bd18721
      https://github.com/llvm/llvm-project/commit/8747234032c9c6270a6198ab3cca14ce2bd18721
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2021-07-12 (Mon, 12 Jul 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/CXX/stmt.stmt/stmt.select/stmt.if/p2.cpp
    M clang/test/SemaCXX/static-assert.cpp
    M clang/www/cxx_status.html

  Log Message:
  -----------
  Partially implement P1401R5 (Narrowing contextual conversions to bool)

Support Narrowing conversions to bool in if constexpr condition
under C++23 language mode.

Only if constexpr is implemented as the behavior of static_assert
is already conforming. Still need to work on explicit(bool) to
complete support.




More information about the All-commits mailing list