GSoC 2025 - Support simple C++20 modules use from the Clang driver without a build system
blog.llvm.org·8h·
Discuss: r/cpp

Hi, my name is Naveen. For Google Summer of Code 2025, I’ve been working on adding native support for simple Clang and C++20 named module use from the Clang driver. This post outlines the project and its current status.

My mentor for this project was Michael Spencer.

Background

Modules solve many of the long-standing problems with the traditional header-based way of sharing code.

They prevent leaking macros, let you explicitly choose what to export, and can improve compile time at scale.

However, because modules must be precompiled before use, builds that rely on them need to schedule compilations in the right order, according to their imports.

At the moment, Clang’s driver lacks native support to do this, which makes even simple tests or tiny programs using modules hard …

Similar Posts

Loading similar posts...