This is an archive of the discontinued LLVM Phabricator instance.

[clang][modules] NFCI: Distinguish as-written and effective umbrella directories
ClosedPublic

Authored by jansvoboda11 on May 26 2023, 12:26 PM.

Details

Summary

For modules with umbrellas, we track how they were written in the module map. Unfortunately, the getter for the umbrella directory conflates the "as written" directory and the "effective" directory (either the written one or the parent of the written umbrella header).

This patch makes the distinction between "as written" and "effective" umbrella directories clearer. No functional change intended.

Diff Detail

Event Timeline

jansvoboda11 created this revision.May 26 2023, 12:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 12:26 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.May 26 2023, 12:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 12:26 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
benlangmuir accepted this revision.May 26 2023, 2:08 PM
benlangmuir added inline comments.
clang/include/clang/Basic/Module.h
655

Nit: I would prefer we use the same ...AsWritten naming scheme for these methods that we use for the UmbrellaAsWritten field.

This revision is now accepted and ready to land.May 26 2023, 2:08 PM
jansvoboda11 retitled this revision from [clang][modules] NFCI: Distinguish written/effective umbrella directories to [clang][modules] NFCI: Distinguish as-written and effective umbrella directories.May 26 2023, 2:59 PM
This revision was landed with ongoing or failed builds.May 26 2023, 3:14 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 3:14 PM