[clang][deps] NFC: Refactor inferred modules test
authorJan Svoboda <jan_svoboda@apple.com>
Thu, 9 Feb 2023 00:20:49 +0000 (16:20 -0800)
committerJan Svoboda <jan_svoboda@apple.com>
Thu, 9 Feb 2023 00:57:41 +0000 (16:57 -0800)
commit29b95f05738fed5bf9777e285ccb084ada54b9b1
treee9caef26fcab054b08d3e1180be6031117f2779f
parent936819bf55af580a94e73ff5c7e4c1cc4d5d43f6
[clang][deps] NFC: Refactor inferred modules test

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".

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D143615
clang/test/ClangScanDeps/Inputs/frameworks/Inferred.framework/Frameworks/Sub.framework/Headers/Sub.h [deleted file]
clang/test/ClangScanDeps/Inputs/frameworks/Inferred.framework/Headers/Inferred.h [deleted file]
clang/test/ClangScanDeps/Inputs/modules_inferred_cdb.json [deleted file]
clang/test/ClangScanDeps/modules-inferred-explicit-build.m [deleted file]
clang/test/ClangScanDeps/modules-inferred.m