Commit Graph

8 Commits

Author SHA1 Message Date
Chris Lattner
7059871abf Convert some 'var' bindings to 'let' when they are not mutated, some
var/let bindings to _ when they are never used, and use some values that
are only written.  This is a testsuite cleanup, NFC. More to come.


Swift SVN r28406
2015-05-11 00:20:55 +00:00
Doug Gregor
2edae8c57d Add trivial accessors to static properties (as well as instance properties).
This is a better fix for rdar://problem/19941580: by providing trivial
accessors for all static properties, we have them there for any other
type checking that might need them, including the Objective-C selector
checking from the radar.

Swift SVN r25730
2015-03-04 00:30:46 +00:00
Doug Gregor
d4a743c357 Revert "Create trivial accessors for static stored properties when conformance checking needs them."
This reverts r25721; we can do this in a less hacky way.

Swift SVN r25729
2015-03-04 00:30:45 +00:00
Doug Gregor
8859b565bf Create trivial accessors for static stored properties when conformance checking needs them.
This is the propagation of the hack to declare getters/setters when we
need them. It really should be centralized, but this fixes a recent
regression (rdar://problem/19941580).

Swift SVN r25721
2015-03-03 22:25:48 +00:00
Doug Gregor
530835fc6c Ignore initializers that aren't inherited when performing Objective-C override checking.
Fixes the last piece of rdar://problem/19794036, thanks Jordan!

Swift SVN r25357
2015-02-17 21:08:30 +00:00
Doug Gregor
96a2659223 Serialize initializer stub implementations.
Fixes the cross-module initializer inheritance issues implied by
rdar://problem/19794036.

Swift SVN r25336
2015-02-17 00:38:21 +00:00
Doug Gregor
236ab802f0 Move creation of stub initializers into addImplicitInitializers().
The presence of stub initializers can effect the Objective-C
initializer overriding diagnostics. In multi-file situations, we were
getting spurious diagnostics because stub initializers were not
present outside of the file in which a particular class was
defined. Fixes rdar://problem/19794036.

Swift SVN r25323
2015-02-16 21:34:50 +00:00
Doug Gregor
235d3aeee4 Validate a getter or setter's storage declaration before checking it's @objc-ness.
While I'm here, zap some blatantly redundant code. Fixes
rdar://problem/19726164.

Swift SVN r25184
2015-02-11 18:34:54 +00:00