mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Don't use a default argument in a lambda.
This is a Clang extension to C++11, and it's easy enough to not do it. No functionality change. Swift SVN r13803
This commit is contained in:
@@ -381,7 +381,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
auto determineOutputFilename = [&](OptSpecifier optWithoutPath,
|
||||
OptSpecifier optWithPath,
|
||||
const char *extension,
|
||||
bool useMainOutput = false) -> std::string{
|
||||
bool useMainOutput) -> std::string {
|
||||
if (const Arg *A = Args.getLastArg(optWithPath)) {
|
||||
Args.ClaimAllArgs(optWithoutPath);
|
||||
return A->getValue();
|
||||
@@ -415,11 +415,11 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.SerializedDiagnosticsPath =
|
||||
determineOutputFilename(OPT_serialize_diagnostics,
|
||||
OPT_serialize_diagnostics_path,
|
||||
"dia");
|
||||
"dia", false);
|
||||
Opts.ObjCHeaderOutputPath =
|
||||
determineOutputFilename(OPT_emit_objc_header,
|
||||
OPT_emit_objc_header_path,
|
||||
"h");
|
||||
"h", false);
|
||||
|
||||
bool canUseMainOutputForModule =
|
||||
Opts.RequestedAction == FrontendOptions::EmitModuleOnly;
|
||||
|
||||
Reference in New Issue
Block a user