Merge pull request #76872 from allevato/swift-synthesize-interface-tool

Add a new driver tool/mode to print the synthesized Swift interface for a module.
This commit is contained in:
Tony Allevato
2024-10-18 13:26:22 -04:00
committed by GitHub
17 changed files with 375 additions and 24 deletions

View File

@@ -112,6 +112,7 @@ void Driver::parseDriverKind(ArrayRef<const char *> Args) {
.Case("swift-api-digester", DriverKind::APIDigester)
.Case("swift-cache-tool", DriverKind::CacheTool)
.Case("swift-parse-test", DriverKind::ParseTest)
.Case("swift-synthesize-interface", DriverKind::SynthesizeInterface)
.Default(std::nullopt);
if (Kind.has_value())
@@ -3122,6 +3123,7 @@ void Driver::printHelp(bool ShowHidden) const {
case DriverKind::APIDigester:
case DriverKind::CacheTool:
case DriverKind::ParseTest:
case DriverKind::SynthesizeInterface:
ExcludedFlagsBitmask |= options::NoBatchOption;
break;
}