This is an archive of the discontinued LLVM Phabricator instance.

[clang][test] Make headers unique to avoid linking issues
ClosedPublic

Authored by benlangmuir on Oct 6 2022, 9:18 AM.

Details

Summary

Make the empty headers used by cl-pch-showincludes.cpp unique so that filesystems that link these files together by contents will not see different behaviour in this test, which is not testing linked files specifically.

This was uncovered by 5ea78c4113f8 which made us stop mutating the name of the presumed loc for the file in ContentCache, but that just surfaced an underlying issue that the filename of multiple includes of linked files are not separately tracked.

Diff Detail

Event Timeline

benlangmuir created this revision.Oct 6 2022, 9:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 9:18 AM
benlangmuir requested review of this revision.Oct 6 2022, 9:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 9:18 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
goncharov accepted this revision.Oct 6 2022, 9:32 AM

thank you!

This revision is now accepted and ready to land.Oct 6 2022, 9:32 AM
This revision was landed with ongoing or failed builds.Oct 6 2022, 10:09 AM
This revision was automatically updated to reflect the committed changes.