-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C++] [Modules] Conform the requirement to the suffix for interface units #57416
Comments
@llvm/issue-subscribers-c-1 |
@llvm/issue-subscribers-clang-modules |
I am not sure it is correct to say these filename extensions are required. It seems cmake experimentL C++20 module support work with named module interface units that all have .cpp filename extensions. Perhaps they create temporary renamed "source" files as work-around, or is this issue solved? I use clang 10.0.2 and instructions here : |
This issue is not solved but it doesn't matter so much now since the build system will try to handle them. The reason why clang want a special suffix for module interfaces is that clang want to know that we're compiling a module interface from the command line. So it is also good to pass BTW, clang10 doesn't support modules. The minimum version to support modules and clang-scan-deps is clang16. |
Thanks for reply!
Typo, should have been 16.0.2 |
Currently, clang requires the filename of interface units ends with
.cppm
(or.ccm
,.cxxm
,.c++m
). However, MSVC and GCC make different choices. It will be better to make them consistent and SG15 (Tooling subgroup) are working on it.The text was updated successfully, but these errors were encountered: