C++20 modules support
Hello CodeQL team,
I see that the documentation currently states that “C++20 modules are not supported.” I’d like to ask if there is any ongoing work or roadmap item planned to add support for C++20 modules in the C/C++ extractor and CodeQL libraries.
Modules are becoming increasingly common in large C++ codebases, and understanding whether this feature is planned (and roughly when) would help us plan future analysis integration.
Thanks a lot for any insights you can share!
Rosilde
Hi @rcorvino ,
We do not have a timeline for this. We’re depending on our C++ frontend provider here and their implementation is currently incomplete. We hope to be able start work on header units (which implement a subset of module functionality) in the not too distant future, but complete module support has currently not been planned.
May we inquire what your actual use-case is to help us schedule this work?
- Do you only need header unit support, or is full-blown module support required?
- If full-blown module support is required, which C++ compiler are the modules you encounter compiled with? MSVC, or some other compiler? In the case of MSVC we might be able to provide support, but nothing had been planned at the moment.