r/cpp • • Sep 13 '26

C++20 modules support: 228 projects already available to be consumed

Hello everyone.

I checked arewemodulesyet.org, which I do from time to time.

I was very positively surprised bc a couple of months ago there were 109 projects with modules support.

Now it is 228 and some of the most popular are there: fmt, ftxui, nlohmann.json and others.

So I had to share it with the community.

119 Upvotes

39 comments sorted by

View all comments

3

u/SLAidk123 Sep 13 '26

Are clangd and clang-tidy still the bottleneck? It's a great feature, but a few months ago I was writing modules in CLion and it felt like using notepad++

0

u/TheTimBrick Sep 15 '26 edited Sep 15 '26

I've been writing with modules and import std using clangd for an entire project. In my experience clangd module support seems to require clang++ though from my experimentation since g++ has a different format for compiled modules than clang++ and clangd can't understand (g++ compiles to .gcm whereas clangd looks for .pcm and other compiler specific arguments). Might be different now though.

E: improved clarification.