mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Revert "Merge pull request #41831 from hyp/unify-header""
This reverts commit 4c9582c295.
This commit is contained in:
@@ -213,7 +213,7 @@ bool FrontendInputsAndOutputs::shouldTreatAsObjCHeader() const {
|
||||
if (hasSingleInput()) {
|
||||
StringRef InputExt = llvm::sys::path::extension(getFilenameOfFirstInput());
|
||||
switch (file_types::lookupTypeForExtension(InputExt)) {
|
||||
case file_types::TY_ObjCHeader:
|
||||
case file_types::TY_ClangHeader:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
@@ -461,16 +461,10 @@ bool FrontendInputsAndOutputs::hasReferenceDependenciesPath() const {
|
||||
return outs.ReferenceDependenciesFilePath;
|
||||
});
|
||||
}
|
||||
bool FrontendInputsAndOutputs::hasObjCHeaderOutputPath() const {
|
||||
bool FrontendInputsAndOutputs::hasClangHeaderOutputPath() const {
|
||||
return hasSupplementaryOutputPath(
|
||||
[](const SupplementaryOutputPaths &outs) -> const std::string & {
|
||||
return outs.ObjCHeaderOutputPath;
|
||||
});
|
||||
}
|
||||
bool FrontendInputsAndOutputs::hasCxxHeaderOutputPath() const {
|
||||
return hasSupplementaryOutputPath(
|
||||
[](const SupplementaryOutputPaths &outs) -> const std::string & {
|
||||
return outs.CxxHeaderOutputPath;
|
||||
return outs.ClangHeaderOutputPath;
|
||||
});
|
||||
}
|
||||
bool FrontendInputsAndOutputs::hasLoadedModuleTracePath() const {
|
||||
|
||||
Reference in New Issue
Block a user