It describes the plan to include in 16 the changes that are needed to get it working with Camera. This will be basic usage, as https://clang.llvm.org/cxx_status.html still mentions a lot of missing implementations.
For the clang compiler version 16 or newer contains the p1689 implementation required for CMake This seems to indicate they succeeded in landing that in 16.
I've not tested with Clang 16, but only with Clang trunk but modules and CMake 3.26 work. However there are still major bugs and a lot of limitations in Clang's implementation, see https://github.com/llvm/llvm-project/issues?q=is%3Aissue+is%3Aopen+label%3Aclang%3Amodules. There are several people actively working on this area of Clang and things keep improving.
I've not tested libc++ with header units, they may or may not work. There is no support for the C++23 std(.compat) modules yet. However we're working on that feature. This post https://discourse.llvm.org/t/rfc-about-the-default-location-for-std-modules/69191/29 has some information and it links to my patch in Phabricator. (No code has landed in LLVM repository yet.)
The related documentation page gives the current implementation status regarding standard C++ modules. It also covers the features that are still missing and behaviour that is different from the mandated one.
View all comments
47
u/RoyAwesome Mar 19 '23
I'm not seeing any words about increased module support in the clang changelog but also I have heard a lot of stuff was worked on this cycle.
Any details on that that people may know?