This is an archive of the discontinued LLVM Phabricator instance.

Clean "./" from __FILE__ expansion.
DraftPublic

Authored by ppluzhnikov on May 28 2022, 5:45 PM.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
Summary

This is alternative to https://reviews.llvm.org/D121733
and helps with Clang header modules in which FILE
may expand to "./foo.h" or "foo.h" depending on whether the file was
included directly or not.

Only do this when UseTargetPathSeparator is true, as we are already
changing the path in that case.

Diff Detail

Event Timeline

ppluzhnikov created this revision.May 28 2022, 5:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 28 2022, 5:45 PM