mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Fixup InputFile Convenience Getters
Follow programming guidelines for these getters more closely and have them return a non-owning view of the underlying data instead of relying on callers to take const references to the copy that is returned here.
This commit is contained in:
@@ -91,7 +91,7 @@ bool swift::emitMakeDependenciesIfNeeded(DiagnosticEngine &diags,
|
||||
DependencyTracker *depTracker,
|
||||
const FrontendOptions &opts,
|
||||
const InputFile &input) {
|
||||
const std::string &dependenciesFilePath = input.dependenciesFilePath();
|
||||
auto dependenciesFilePath = input.getDependenciesFilePath();
|
||||
if (dependenciesFilePath.empty())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user