Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2017-05-04 19:09:00 -07:00
20 changed files with 499 additions and 107 deletions

View File

@@ -880,6 +880,12 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
const FrontendOptions &FrontendOpts) {
using namespace options;
/// FIXME: Remove this flag when void subscripts are implemented.
/// This is used to guard preemptive testing for the fix-it.
if (Args.hasArg(OPT_fix_string_substring_conversion)) {
Opts.FixStringToSubstringConversions = true;
}
if (auto A = Args.getLastArg(OPT_swift_version)) {
auto vers = version::Version::parseVersionString(
A->getValue(), SourceLoc(), &Diags);