[C++20][Modules][5/8] Diagnose wrong import/export for partition CMIs.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 30 Jan 2022 14:11:57 +0000 (14:11 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 26 Feb 2022 11:27:08 +0000 (11:27 +0000)
commit1a76d2563940e6b4bfcb9e77b8a4d1d3f0cc7d30
treeb0e5ca8e2434a9caffb7ec6ac221bc123c1c61ff
parent4d006520b8c0cc3a52913b4665bf741c737e5592
[C++20][Modules][5/8] Diagnose wrong import/export for partition CMIs.

We cannot export partition implementation CMIs, but we can export the content
of partition interface CMIs.

Differential Revision: https://reviews.llvm.org/D118588
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaModule.cpp
clang/test/Modules/cxx20-10-3-ex1.cpp [new file with mode: 0644]
clang/test/Modules/cxx20-10-3-ex2.cpp [new file with mode: 0644]
clang/test/Modules/cxx20-import-diagnostics-a.cpp