mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
factoring and commenting
This commit is contained in:
@@ -1618,12 +1618,8 @@ createDispatchingDiagnosticConsumerIfNeeded(
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
if (subconsumers.empty())
|
||||
return nullptr;
|
||||
if (subconsumers.size() == 1)
|
||||
return std::move(subconsumers.front()).consumer;
|
||||
return llvm::make_unique<FileSpecificDiagnosticConsumer>(subconsumers);
|
||||
|
||||
return FileSpecificDiagnosticConsumer::consolidateSubconsumers(subconsumers);
|
||||
}
|
||||
|
||||
/// Creates a diagnostic consumer that handles serializing diagnostics, based on
|
||||
|
||||
Reference in New Issue
Block a user