r/cpp_modules • • Mar 31 '26

State of tooling fixes that are needed

I'm creating this post to track some PR's and issues related to C++20 and C++23 modules.

std library module for libc++ on MSVC:
https://github.com/llvm/llvm-project/pull/148992
https://github.com/llvm/llvm-project/pull/150182
https://github.com/llvm/llvm-project/pull/148992

clangd header units
https://github.com/clangd/clangd/issues/2629

clang-scan-deps header units
https://github.com/llvm/llvm-project/issues/189675

Android NDK std library module with libc++
https://github.com/android/ndk/issues/2174

Please comment other stuff if you know.

5 Upvotes

5 comments sorted by

View all comments

1

u/Kridenberg Apr 17 '26

There is also a problem, that modules cannot be used with Clang-CL, and right now bridging between CLang-CL and modules is done on the build-system level, so here we have an issue, but it was closed as "will not be done": https://github.com/dotnet/msbuild/issues/13530

1

u/TheRavagerSw Apr 17 '26

a PR in LLVM will eventually enable import std with clang-cl with msvc STL.

For normal modules I'm not sure, does gnu driver arguments work with clang cl?

There was a way to pass gnu args to clang-cl

1

u/Kridenberg Apr 17 '26

There was a whole discussion about that. From my POV, the most important part of CLang-CL is seamless integration with Visual Studio, there is no real value besides that, as far as for other build systems, like CMake, everyone eventually can have just another set of flags, and it will work. Right now, regular modules are not usable with CLang-CL + Visual Studio setup, and that is it(