This is an archive of the discontinued LLVM Phabricator instance.

[NFC] [C++20] [Modules] Simplify ActOnModuleImport by merging Path and Parition
ClosedPublic

Authored by ChuanqiXu on Mar 1 2022, 11:21 PM.

Details

Summary

The parameter of Path and Partition of ActOnModuleImport could be merged and the implementation would be simpler.

Diff Detail

Event Timeline

ChuanqiXu created this revision.Mar 1 2022, 11:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 11:21 PM
ChuanqiXu requested review of this revision.Mar 1 2022, 11:21 PM
iains accepted this revision.Mar 1 2022, 11:59 PM

other than the two nits, LGTM

clang/include/clang/Sema/Sema.h
2996–2997

maybe:
"If the name is for a partition."

This revision is now accepted and ready to land.Mar 1 2022, 11:59 PM
iains added inline comments.Mar 2 2022, 12:01 AM
clang/lib/Sema/SemaModule.cpp
415

it looks like there is an extra blank line before the closing brace..

ChuanqiXu updated this revision to Diff 412404.Mar 2 2022, 7:02 AM

Address comments.

clang/lib/Sema/SemaModule.cpp
415

No, it isn't. It shows by the review page.

This revision was landed with ongoing or failed builds.Mar 2 2022, 7:07 AM
This revision was automatically updated to reflect the committed changes.