mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Refactor InputFile's Accessors
This commit is contained in:
@@ -2414,7 +2414,7 @@ createDispatchingDiagnosticConsumerIfNeeded(
|
||||
inputsAndOutputs.forEachInputProducingSupplementaryOutput(
|
||||
[&](const InputFile &input) -> bool {
|
||||
if (auto consumer = maybeCreateConsumerForDiagnosticsFrom(input))
|
||||
subconsumers.emplace_back(input.file(), std::move(consumer));
|
||||
subconsumers.emplace_back(input.getFileName(), std::move(consumer));
|
||||
return false;
|
||||
});
|
||||
// For batch mode, the compiler must sometimes swallow diagnostics pertaining
|
||||
@@ -2431,7 +2431,7 @@ createDispatchingDiagnosticConsumerIfNeeded(
|
||||
if (!subconsumers.empty() && inputsAndOutputs.hasMultiplePrimaryInputs()) {
|
||||
inputsAndOutputs.forEachNonPrimaryInput(
|
||||
[&](const InputFile &input) -> bool {
|
||||
subconsumers.emplace_back(input.file(), nullptr);
|
||||
subconsumers.emplace_back(input.getFileName(), nullptr);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user