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

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

→ More replies (1)

2

u/JVApen Mar 31 '26

Regarding clangd, there is very limited people power to develop and maintain it. See https://discourse.llvm.org/t/help-needed-with-clangd-maintenance/89820/21?u=jvapen Anyone who is willing to spend time on this (or the other issues) would be welcome to do so.

Specifically for modules in clangd, there is already a write-up to help you get started: https://github.com/ChuanqiXu9/ChuanqiXu9.github.io/blob/main/docs/_posts/2025-12-03-Clangd-support-for-Modules.en.md

1

u/tartaruga232 Mar 31 '26

Thanks for your first posting to r/cpp_modules! I've promoted your posting to "community highlight" status. I'm still learning what mods can do.... :-)