[C++20] [Modules] Emit an warning for experimental header units
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Thu, 18 May 2023 08:11:20 +0000 (16:11 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Thu, 18 May 2023 08:12:41 +0000 (16:12 +0800)
commitfc89e9044d0b37dcd4e3f085f21bef1b21d2ab8d
tree816d83c3fca240ee2cfc008f2400a8a53e65f073
parent3cabfe666cdbb24900873277e583108176c82b6c
[C++20] [Modules] Emit an warning for experimental header units

Currently, the header units are rarely used and it is not well tested.
To avoid further misunderstandings, let's mark it as experimental and
emit a warning when users wants to import it.

This is discussed in modules developers meeting.
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaModule.cpp
clang/test/CXX/module/module.interface/p2.cpp
clang/test/Modules/cxx20-10-2-ex2.cpp
clang/test/Modules/cxx20-hu-04.cpp
clang/test/Modules/cxx20-include-translation.cpp
clang/test/Modules/merge-concepts.cppm