Doug Gregor
08e7797f86
[Selector splitting] Drop non-directional prepositions from the beginning of imported argument names.
...
Swift SVN r15865
2014-04-03 14:22:20 +00:00
Dmitri Hrybenko
6f232af3bb
ReST: now that LineList is lightweight and does not own data, pass it by value
...
I am not sure if we need LineList as a separate entity, but let's keep it for
now. Some document-global data might come later. If not, LineList should be
collapsed into LineListRef.
Swift SVN r15864
2014-04-03 11:14:38 +00:00
Dmitri Hrybenko
f370da96b1
ReST: make data in a LineList be owned by ReSTContext, so that users don't have
...
to carry all LineLists along with a ReSTContext.
Swift SVN r15863
2014-04-03 11:03:09 +00:00
Mark Lacey
19ad5097f0
When simplifying switch_enum to a branch, don't forget the payload.
...
The optimization that was simplifying:
%e = enum $T, #T.E, %payload
switch_enum %e : $T, case #T.E: bb1
to an unconditional branch was not including the payload as a block
argument.
Fixes <rdar://problem/16509020>.
Swift SVN r15860
2014-04-03 09:20:55 +00:00
Chris Lattner
9b5b140e7a
add some more sil verification smarts to check dominance properties
...
of SILArgument operands. I was trying to track down the root of
the problem in rdar://16509020 but this wasn't enough for me.
Swift SVN r15855
2014-04-03 05:17:18 +00:00
Doug Gregor
87144a8afa
Make splitFirstSelectorPiece() static, now that it has just one caller
...
Swift SVN r15854
2014-04-03 04:20:10 +00:00
Doug Gregor
1dd795998f
Imported C functions never have API names.
...
The parameter names in C functions are not API in C and can easily be
inconsistent from one redeclaration to another. Therefore, those
parameter names are not considered API.
Swift SVN r15853
2014-04-03 04:13:29 +00:00
Doug Gregor
a4e16bd8e2
Simple importFunctionType, now that it doesn't handle methods.
...
Swift SVN r15852
2014-04-03 03:38:35 +00:00
Doug Gregor
708bb64c6f
Migrate initializer importing over to importMethodType().
...
We now consistently use the method name to form the types of
Objective-C methods.
Swift SVN r15851
2014-04-03 03:32:09 +00:00
Doug Gregor
e418e93511
Start cleaning up method name importing.
...
Import a selector into a Swift method name, performing splitting at
that point. Use the resulting method name to determine the argument
names of the parameters, rather than trying to chop up the selector
again. There's more refactoring to do here.
This fixes a longstanding bug where the first argument of an
Objective-C method got the internal parameter name when it should
have gotten no name at all.
Swift SVN r15850
2014-04-03 00:34:40 +00:00
Greg Parker
6d6d6896d2
Add SpriteKit overlay with a typealias for SKColor.
...
Swift SVN r15849
2014-04-02 23:46:56 +00:00
Doug Gregor
53914c42a2
Remove the prohibition on "tuple-style" @objc methods.
...
Swift SVN r15847
2014-04-02 23:35:02 +00:00
Doug Gregor
527b147ba7
Revert "Allow the first name of a selector-style function declaration to be separated."
...
This reverts r15140.
Conflicts:
include/swift/Serialization/ModuleFormat.h
lib/Parse/ParsePattern.cpp
Swift SVN r15846
2014-04-02 23:27:52 +00:00
Doug Gregor
5fd25eb4ef
Revert "AST printing for functions where the first parameter has a separate name."
...
This reverts r15141.
Conflicts:
lib/AST/ASTPrinter.cpp
Swift SVN r15845
2014-04-02 23:27:50 +00:00
Doug Gregor
12d0eeb324
Move more of the Clang importer's camelCase logic to the new utilities.
...
Swift SVN r15843
2014-04-02 23:06:22 +00:00
Adrian Prantl
47bf136af5
More assertion cleanups. Thanks, Joe!
...
Swift SVN r15842
2014-04-02 23:06:13 +00:00
Argyrios Kyrtzidis
b941c8640f
[Basic] Introduce LangOptions::getTargetConfigOptions().
...
Swift SVN r15841
2014-04-02 22:55:05 +00:00
Adrian Prantl
5385d4e7a7
Clean up a slightly wrong assertion.
...
<rdar://problem/16499612> assert building Foundation with SWIFT_ASSERTS=NO
Swift SVN r15840
2014-04-02 22:54:35 +00:00
Adrian Prantl
af7198811c
silence warnings.
...
Swift SVN r15839
2014-04-02 22:54:34 +00:00
Joe Groff
8102dee6f0
SILGen: Bridge ObjCMutablePointer.
...
Make ObjCMutablePointer @objc-able for (potentially optional) class types, and bridge it down to UnsafePointer when calling @objc entry points.
Swift SVN r15838
2014-04-02 22:49:32 +00:00
Doug Gregor
516d5b9d34
Rename test.
...
Swift SVN r15836
2014-04-02 21:44:20 +00:00
Doug Gregor
6496d69cb8
Simplify down to a single command-line option for preposition splitting.
...
Swift SVN r15835
2014-04-02 21:44:19 +00:00
Dave Zarzycki
43680748d5
Runtime: more dead code deletion
...
Swift SVN r15834
2014-04-02 21:39:51 +00:00
Doug Gregor
37a4ce2227
Produce an error with Fix-Its for the "separated" call syntax.
...
We are removing this syntax. To stage the move, first error with
Fix-Its to rewrite to the keyword-argument syntax. In a week or so,
we'll remove all of the code supporting the "separated" call syntax.
Swift SVN r15833
2014-04-02 21:34:27 +00:00
Dave Zarzycki
30e6d1de98
Runtime: remove dead _ObjCSuperClassHack
...
Swift SVN r15832
2014-04-02 21:30:31 +00:00
Jordan Rose
fc6b20369f
Only generate derived conformance bodies for decls in the primary source file.
...
...and for decls imported from Clang, because those don't have home locations.
Fixes <rdar://problem/15936403>
Swift SVN r15831
2014-04-02 21:00:49 +00:00
Jordan Rose
0324b9e027
Don't walk into an as-of-yet-unsynthesized function body.
...
...and don't dump it, and don't force it just to see if an accessor is present.
Swift SVN r15830
2014-04-02 21:00:48 +00:00
Jordan Rose
63c1ef7ae4
Use delayed bodies for derived Equatable and Hashable conformances as well.
...
Still no functionality change.
Swift SVN r15829
2014-04-02 21:00:47 +00:00
Jordan Rose
107eeefd77
Allow AbstractFunctionDecls to have their bodies "synthesized" on demand.
...
...then use this functionality for derived conformances for RawRepresentable.
No functionality change because these bodies are always forced right now.
Swift SVN r15828
2014-04-02 21:00:42 +00:00
Michael Gottesman
c15862bc1a
[specializer] Fix a bug I noticed on inspection. Converted the checked_cast_branch test to a .swift to get around parsing issues that will come up in the next bit of commits.
...
Swift SVN r15827
2014-04-02 20:46:57 +00:00
Greg Parker
ad3a65642b
[stdlib] Implement NSObject's == and hashValue() using -isEqual: and -hash.
...
Swift SVN r15826
2014-04-02 20:35:24 +00:00
Michael Gottesman
2bcc30ee5c
[verifier] Make sure that every BB is a successor of its predecessors and a predecessor of its successors.
...
This will help to catch errors where one improperly modifies terminators
without updating the appropriate state in a successor/predecessor.
Swift SVN r15824
2014-04-02 20:05:56 +00:00
Doug Gregor
234b1e2f84
Release notes for @objc name.
...
Swift SVN r15823
2014-04-02 19:50:04 +00:00
Dave Zarzycki
4c97c67a82
Runtime: remove stray debugging hook
...
Swift SVN r15819
2014-04-02 18:46:02 +00:00
Dave Zarzycki
96d1f4760e
Runtime heap: mixed fixes that make debugging easier
...
Swift SVN r15818
2014-04-02 18:46:00 +00:00
Dave Zarzycki
e1a60eae86
Runtime: Use 'auto' more. NFC.
...
Swift SVN r15817
2014-04-02 18:45:59 +00:00
John McCall
404d89c6d0
Release note the UncheckedOptional import change.
...
Swift SVN r15816
2014-04-02 18:38:11 +00:00
Doug Gregor
925097a8b0
Add utilities for lower- and sentence-casing camelCase strings.
...
Swift SVN r15815
2014-04-02 18:29:50 +00:00
Argyrios Kyrtzidis
23bd9a1933
[ClangImporter] Add ClangImporter::getClangModuleHash().
...
Swift SVN r15809
2014-04-02 17:39:10 +00:00
Argyrios Kyrtzidis
41dbe5384b
[AST] Add ClangNode::getLocation(), that returns the clang SourceLocation.
...
Swift SVN r15808
2014-04-02 17:39:08 +00:00
Joe Pamer
31bab38eb4
When attempting to obtain the context type of a type extension, we were never taking into account the fact that the extended type could be potentially be unbound.
...
(This could occur, for instance, via a forward reference to a member defined in an extension to a generic type.) This problem has been popping up a lot lately, and
was making some of the recent runtime work difficult. (rdar://problem/16481483)
Swift SVN r15805
2014-04-02 16:48:14 +00:00
Chris Lattner
f6e87dec54
Rework SILGen's emission of release_value to have it auto-merge into
...
retain_value instructions, just like we do for strong_retain/release.
This wraps up rdar://15889208, which is admittedly more of a moral
victory than a practical one.
Swift SVN r15804
2014-04-02 16:39:53 +00:00
Chris Lattner
3b29fb68a8
fit in 80 columns and format more nicely :)
...
Swift SVN r15803
2014-04-02 16:22:45 +00:00
Doug Gregor
d6a173fead
Add some utilities for working with camelCase names.
...
Swift SVN r15802
2014-04-02 15:18:32 +00:00
Dmitri Hrybenko
f4c018d3f7
Correct filename in the comment
...
Swift SVN r15801
2014-04-02 15:00:18 +00:00
Dmitri Hrybenko
d72109e97d
Module interface printing: don't print submodules (either implicit of explicit)
...
of the module being printed
rdar://16497611
Swift SVN r15800
2014-04-02 14:54:39 +00:00
Dmitri Hrybenko
9dc1d223d3
Split a test to reduce runtime of individual tests
...
Swift SVN r15799
2014-04-02 14:01:01 +00:00
Dmitri Hrybenko
78e354b2b9
AST printing: make PrintDefaultParameterPlaceholder the default (since we are
...
not going to implement expression printing any time soon), and fix a bug in its
implementation: when used with deserialized modules, "= default" was not
printed.
Swift SVN r15798
2014-04-02 13:56:54 +00:00
Dmitri Hrybenko
0fdaf47fed
IDE tests: extend the mock framework so that it can be reused in SourceKit
...
Swift SVN r15787
2014-04-02 12:39:53 +00:00
Dmitri Hrybenko
7514b8a9b4
IDE tests: consolidate test clang modules into an existing mock SDK
...
Swift SVN r15786
2014-04-02 11:16:24 +00:00