This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] NFC: Refactor inferred modules test
ClosedPublic

Authored by jansvoboda11 on Feb 8 2023, 4:21 PM.

Details

Summary

This patch squashes two tests with identical inputs into a single test, and adopts the split-file utility. This allows us to remove sed invocation with multiple commands, where "s|-E|-x objective-c -E|g" could've caused issues if previous replacements injected path containing "-E".

Diff Detail

Event Timeline

jansvoboda11 created this revision.Feb 8 2023, 4:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 4:21 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.Feb 8 2023, 4:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 4:21 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
benlangmuir accepted this revision.Feb 8 2023, 4:27 PM
benlangmuir added inline comments.
clang/test/ClangScanDeps/modules-inferred.m
54

Why did this drop checking HASH_INFERRED?

This revision is now accepted and ready to land.Feb 8 2023, 4:27 PM

Remove unused CDB file

jansvoboda11 added inline comments.Feb 8 2023, 4:48 PM
clang/test/ClangScanDeps/modules-inferred.m
54

It seems unnecessary, since we only have one version of "Inferred". Also, we have other tests that specifically check that context hashes match.

This revision was landed with ongoing or failed builds.Feb 8 2023, 4:58 PM
This revision was automatically updated to reflect the committed changes.
clang/test/ClangScanDeps/Inputs/frameworks/Inferred.framework/Frameworks/Sub.framework/Headers/Sub.h