[all-commits] [llvm/llvm-project] ff70e2: [C++20][Modules] Handle defaulted and deleted func...

Iain Sandoe via All-commits all-commits at lists.llvm.org
Sat Jan 21 04:56:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff70e22f08d9a289c707ef192d7d4c5968e54b51
      https://github.com/llvm/llvm-project/commit/ff70e22f08d9a289c707ef192d7d4c5968e54b51
  Author: Iain Sandoe <iain at sandoe.co.uk>
  Date:   2023-01-21 (Sat, 21 Jan 2023)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/CXX/module/module.import/p6.cpp

  Log Message:
  -----------
  [C++20][Modules] Handle defaulted and deleted functions in header units.

Address part of https://github.com/llvm/llvm-project/issues/60079.

Deleted and Defaulted functions are implicitly inline, but that state
is not set at the point that we perform the diagnostic checks for externally-
visible non-inline functions; check the function body type explicitly in the
diagnostic.

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




More information about the All-commits mailing list