This is an archive of the discontinued LLVM Phabricator instance.

[C++20] [Modules] Remove unmaintained header modules
ClosedPublic

Authored by ChuanqiXu on Nov 7 2022, 10:35 PM.

Details

Summary

Currently there is a -emit-header-module mode, which can combine several headers together as a module interface. However, this breaks our assumption (for standard c++ modules) about module interface. The module interface should come from a module interface unit. And if it is a header, it should be a header unit. And currently we have no ideas to combine several headers together.

So I think this mode is an experimental one and it is not maintained and it is not used. So it will be better to remove them.

Diff Detail

Event Timeline

ChuanqiXu created this revision.Nov 7 2022, 10:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2022, 10:35 PM
ChuanqiXu requested review of this revision.Nov 7 2022, 10:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2022, 10:35 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ChuanqiXu updated this revision to Diff 473884.Nov 7 2022, 11:14 PM

Remove other logics.

I'm not aware of anyone using this mode, but please wait for responses from Google and Meta people to verify that.

iains added a comment.Nov 8 2022, 11:39 AM

I think that (if this change is approved) there will be also some simplifications possible in the driver (since the mode that produces a wrapper header for multiple command-line headers is different from the mode where multiple command line headers would each produce a single C++ standard header unit) ..

I think that (if this change is approved) there will be also some simplifications possible in the driver (since the mode that produces a wrapper header for multiple command-line headers is different from the mode where multiple command line headers would each produce a single C++ standard header unit) ..

Yes, of course. I'll take care of it.

I'm not aware of anyone using this mode, but please wait for responses from Google and Meta people to verify that.

Sure.

I'm not aware of anyone using this mode, but please wait for responses from Google and Meta people to verify that.

Best understanding on the Google side is we aren't using this.

bruno accepted this revision.Nov 17 2022, 10:19 AM

Also not using this at Meta, LGTM.

This revision is now accepted and ready to land.Nov 17 2022, 10:19 AM

Thanks for every one to review this!

This revision was automatically updated to reflect the committed changes.
clang/test/Driver/modules.cpp