[C++20][Modules] Handle defaulted and deleted functions in header units.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 17 Jan 2023 10:17:08 +0000 (10:17 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 21 Jan 2023 12:55:52 +0000 (12:55 +0000)
commitff70e22f08d9a289c707ef192d7d4c5968e54b51
treeffdbe250accba5c67be128b01252a9a9e501bd72
parent2257e3d2e55a52d70db10e9f4ed1669ab79ace3f
[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
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/module/module.import/p6.cpp