mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Incorperate advice from review.
Change “have” routines to “has”. Use more consistent casing. Remove spurious “DelayedFunctionParsing” option. Move debugFail routines to top lexical level. Rename and reorder declaration of functions in FrontendArgsToOptionsConverter. Move, reword, and doxygenate comments for some of those functions. Fix casing on some more setUp* functions. Return NoneAction instead of existing RequestedAction in FrontendArgsToOptionsConverter::determineRequestedAction. Remove test names and put in FIXME’s. Remove “Jordan” from comments & reword. Reorder if-then arms of FrontendArgsToOptionsConverter::computeOutputFilenames for readability. Test for empty string instead of equality with “”. Use hasUnusedModuleDocOutputPath. Remove optionality from return type of getOutputFilenamesFromCommandLineOrFilelist. Rename isPrimaryInputAFileAt to isThereAPrimaryInputWithAFilenameAt. Added a FIXME in doesActionProduceOutput to reflect that some actions actually do not produce output.
This commit is contained in:
@@ -279,7 +279,7 @@ void SwiftLangSupport::indexSource(StringRef InputFile,
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Invocation.getFrontendOptions().Inputs.haveInputFilenames()) {
|
||||
if (!Invocation.getFrontendOptions().Inputs.hasInputFilenames()) {
|
||||
IdxConsumer.failed("no input filenames specified");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user