This is an archive of the discontinued LLVM Phabricator instance.

Revert "Revert "Revert "[clang][pp] adds '#pragma include_instead'"""
ClosedPublic

Authored by cjdb on Apr 15 2022, 5:26 PM.

Details

Summary

Includes regression test for problem noted by @hans.
is reverts commit 973de71.

Differential Revision: https://reviews.llvm.org/D106898

Feature implemented as-is is fairly expensive and hasn't been used by
libc++. A potential reimplementation is possible if libc++ become
interested in this feature again.

Diff Detail

Event Timeline

cjdb created this revision.Apr 15 2022, 5:26 PM
cjdb requested review of this revision.Apr 15 2022, 5:26 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 15 2022, 5:26 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rsmith accepted this revision.Apr 15 2022, 5:31 PM
This revision is now accepted and ready to land.Apr 15 2022, 5:31 PM
This revision was landed with ongoing or failed builds.Apr 22 2022, 9:37 AM
This revision was automatically updated to reflect the committed changes.
clang/test/Preprocessor/Inputs/include_instead/public-before.h