Enable "omit needless words" by default.

Most of this is in updating the standard library, SDK overlays, and
piles of test cases to use the new names. No surprises here, although
this shows us some potential heuristic tweaks.

There is one substantive compiler change that needs to be factored out
involving synthesizing calls to copyWithZone()/copy(zone:). Aside from
that, there are four failing tests:

    Swift :: ClangModules/objc_parse.swift
    Swift :: Interpreter/SDK/Foundation_test.swift
    Swift :: Interpreter/SDK/archiving_generic_swift_class.swift
    Swift :: Interpreter/SDK/objc_currying.swift

due to two independent remaining compiler bugs:
  * We're not getting partial ordering between NSCoder's
  encode(AnyObject, forKey: String) and NSKeyedArchiver's version of
  that method, and
  * Dynamic lookup (into AnyObject) doesn't know how to find the new
  names. We need the Swift name lookup tables enabled to address this.
This commit is contained in:
Doug Gregor
2015-12-11 14:46:50 -08:00
parent d610fa0d1c
commit 06c5e9cd5b
101 changed files with 951 additions and 977 deletions

View File

@@ -88,7 +88,7 @@ func nsEncode<CodeUnit>(
encoding: encoding,
options: [],
range: NSRange(location: 0, length: s.length),
remainingRange: nil)
remaining: nil)
}
class CodecTest<Codec : TestableUnicodeCodec> {