mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Review fixes:
Rename isThereAPrimaryInputWithAFilenameAt to isInputPrimary. Remove spurious delayed_function_body_parsing. Simply return type of getOutputFilenamesFromCommandLineOrFilelist.
This commit is contained in:
@@ -288,7 +288,7 @@ private:
|
||||
/// Returns the output filenames on the command line or in the output
|
||||
/// filelist. If there
|
||||
/// were neither -o's nor an output filelist, returns an empty vector.
|
||||
const std::vector<std::string> &getOutputFilenamesFromCommandLineOrFilelist();
|
||||
ArrayRef<std::string> getOutputFilenamesFromCommandLineOrFilelist();
|
||||
|
||||
bool checkForUnusedOutputPaths() const;
|
||||
|
||||
@@ -671,7 +671,7 @@ bool FrontendArgsToOptionsConverter::computeFallbackModuleName() {
|
||||
// selected".
|
||||
return false;
|
||||
}
|
||||
const std::vector<std::string> &outputFilenames =
|
||||
ArrayRef<std::string> outputFilenames =
|
||||
getOutputFilenamesFromCommandLineOrFilelist();
|
||||
|
||||
bool isOutputAUniqueOrdinaryFile =
|
||||
@@ -689,7 +689,7 @@ bool FrontendArgsToOptionsConverter::computeOutputFilenames() {
|
||||
FrontendOptions::doesActionProduceOutput(Opts.RequestedAction) ||
|
||||
!FrontendOptions::doesActionProduceTextualOutput(Opts.RequestedAction));
|
||||
|
||||
const std::vector<std::string> &outputFilenamesFromCommandLineOrFilelist =
|
||||
ArrayRef<std::string> outputFilenamesFromCommandLineOrFilelist =
|
||||
getOutputFilenamesFromCommandLineOrFilelist();
|
||||
|
||||
if (outputFilenamesFromCommandLineOrFilelist.size() > 1) {
|
||||
@@ -887,7 +887,7 @@ void FrontendArgsToOptionsConverter::computeLLVMArgs() {
|
||||
}
|
||||
}
|
||||
|
||||
const std::vector<std::string> &
|
||||
ArrayRef<std::string>
|
||||
FrontendArgsToOptionsConverter::getOutputFilenamesFromCommandLineOrFilelist() {
|
||||
if (cachedOutputFilenamesFromCommandLineOrFilelist) {
|
||||
return *cachedOutputFilenamesFromCommandLineOrFilelist;
|
||||
|
||||
Reference in New Issue
Block a user