Doug Gregor
31ced1260d
Finish renaming "side car" to "API notes"
...
Swift SVN r20088
2014-07-17 15:05:40 +00:00
Doug Gregor
72a6ea1193
Rename SideCar library to the APINotes library
...
Swift SVN r20087
2014-07-17 15:05:39 +00:00
Dmitri Hrybenko
3f4436a272
Code completion: add simplistic support for keywords
...
rdar://15992120
Swift SVN r20082
2014-07-17 12:02:21 +00:00
Doug Gregor
d4e702dc47
Side car: simplify binary format by removing the module ID.
...
Since we'll be keeping per-module data, there is no need to index the
Objective-C class table via the module as well.
Swift SVN r20074
2014-07-17 05:16:11 +00:00
Doug Gregor
702ed73987
Side car: split "known Objective-C methods" by module.
...
Update the swift-ide-test harness to look at the data for specific
modules, rather than as one large model.
Swift SVN r20073
2014-07-17 05:11:33 +00:00
Doug Gregor
e804dabfe0
Fix spacing in diagnostic
...
Swift SVN r20060
2014-07-16 23:51:22 +00:00
Doug Gregor
a0f09b5ce3
Side car reader: wire up the Objective-C selector and method tables.
...
We can now round-trip all of KnownObjCMethods.def through the side-car
writer and reader.
Swift SVN r20059
2014-07-16 23:44:42 +00:00
Doug Gregor
b73b33ed8b
Side car reader: load Objective-C property information.
...
Validate it against KnownObjCMethods.def.
Swift SVN r20056
2014-07-16 22:53:24 +00:00
Doug Gregor
84c5af60b2
Side car reader: wire up identifier table and Objective-C class table.
...
Verify this by round-tripping the class information in KnownObjCMethods.def.
Swift SVN r20054
2014-07-16 22:42:53 +00:00
Doug Gregor
b3a18ee2d4
Add a skeleton of a side-car reader, along with basic testing.
...
Swift SVN r20044
2014-07-16 21:46:53 +00:00
Doug Gregor
74f29fe955
Side car test: encode all method information in the side car data.
...
At this point, we should be capturing all of the information in
KnownObjCMethods.def within the binary side car data file.
Swift SVN r20017
2014-07-16 07:20:59 +00:00
Doug Gregor
b3d7c2e924
Side car test: handle data associated with Objective-C properties.
...
Swift SVN r20016
2014-07-16 07:14:30 +00:00
Doug Gregor
5a8b0f44ad
Side car testing: start emitting Objective-C methods
...
Swift SVN r20015
2014-07-16 07:11:50 +00:00
Doug Gregor
4c7a1e598f
Side car: clean up representation of Objective-C properties and methods.
...
We don't need module names for properties and methods, since they're
effectively unique within a class. Moreover, use all of the
distinguishing characteristics as the key for the stored
representation in the side car writer. No visible functionality
change; this is staging.
Swift SVN r20008
2014-07-16 05:58:37 +00:00
Doug Gregor
19488ac835
Side car data: emit Objective-C class information into the side car file.
...
For Objective-C classes, we only record the default nullability of the
class.
Swift SVN r19995
2014-07-16 00:34:33 +00:00
Doug Gregor
e36c31d03c
Side car data: emit side car file from KnownObjCMethods.def.
...
Extend swift-ide-test with a mode that generates a side car file from
the built-in KnownObjCMethods.def, which gives us an easy way to
source the information we want in the side car. This is a temporary
measure until we have a textual format for side car data and the
ability to translate that into the binary format.
Swift SVN r19994
2014-07-16 00:03:50 +00:00
Argyrios Kyrtzidis
7b62fa0c44
[ASTPrinter] Introduce a callback invoked after printing the name of the declaration (the signature for functions).
...
Swift SVN r19973
2014-07-15 05:56:54 +00:00
Sonny Falk
6b053e6252
[IDE] Add support for Swift extension declarations to the document substructure.
...
Add tests for struct, protocol and extension.
This addresses the first part of <rdar://problem/15818966>.
Swift SVN r19766
2014-07-10 00:23:00 +00:00
Pete Cooper
0d0defff9a
Update which matches clang r212408, ie, using ErrorOr for file loading
...
Swift SVN r19607
2014-07-07 14:49:01 +00:00
Anna Zaks
37c3ec4ed1
Rename the -import-tighter-objc-types option and add it to the frontend.
...
Swift SVN r19535
2014-07-03 21:46:38 +00:00
Argyrios Kyrtzidis
cff07de44e
[IDE] Search for URLs in comments and report them in the syntax model.
...
Swift SVN r19424
2014-07-01 19:21:17 +00:00
Argyrios Kyrtzidis
e64821d268
[IDE] Search all comments for 'FIXME:', 'TODO:', 'MARK:' and report them in the syntax model.
...
Swift SVN r19423
2014-07-01 19:21:16 +00:00
Anna Zaks
6d15e0b76f
Add resource-dir option to swift-ide-test.
...
Swift SVN r19179
2014-06-25 21:34:32 +00:00
Jordan Rose
20bc9ec2b9
Add accessibility printing, and test the accessibility inference so far.
...
Swift SVN r19144
2014-06-24 21:32:15 +00:00
Anna Zaks
9f122e56b7
Add initial support for importing with tighter Objective C pointer types.
...
Add the ability to store optionality of the ObjC method parameters and return
type in a sidecar. This hardcoded info is then used to import Objective C
object pointer types as either optional or none, instead of implicitly
unwrapped optionals.
The feature is enabled with -import-with-tighter-objc-types=true.
Swift SVN r19048
2014-06-20 19:19:43 +00:00
Jordan Rose
574054b8fd
Distance SourceManager from llvm::SourceMgr.
...
...in preparation for non-source locations, i.e. locations that don't come
frome source buffers.
No functionality change, but a fair bit of SourceManager API and idioms have
changed.
Swift SVN r18942
2014-06-17 01:15:47 +00:00
Doug Gregor
dd8c668aa8
Import NSDictionary as Dictionary<NSObject, AnyObject>
...
Fixes <rdar://problem/16870626>.
Swift SVN r18907
2014-06-15 10:44:23 +00:00
Justin Bogner
a0c0dc25be
Use std::error_code rather than llvm::error_code
...
std::error_code is no longer available via the llvm namespace as of
r210835.
Swift SVN r18851
2014-06-13 02:54:07 +00:00
Mark Lacey
dccd703315
Use <system_error> rather than llvm/Support/system_error.h.
...
Rafael removed the latter in r210803.
Swift SVN r18842
2014-06-12 21:53:16 +00:00
Argyrios Kyrtzidis
95bd9e1d28
[AST/IDE] Centralize the logic to determine if a symbols is a 'private' stdlib one and hide them more extensively.
...
-Hide vars that have a private type.
-Hide functions that have a parameter with private type or a parameter name with leading underscore.
-Minor change in StringUTF16.swift to avoid printing "func generate() -> IndexingGenerator<_StringCore>".
rdar://17027294
Swift SVN r18623
2014-05-25 03:49:02 +00:00
Argyrios Kyrtzidis
4bdfbd1cd2
[IDE] Have 'swift-ide-test -annotate-print' also indicate where the printed decl location is.
...
Swift SVN r18447
2014-05-20 07:36:22 +00:00
Argyrios Kyrtzidis
973beb0ae3
[IDE/CodeCompletion] Fix crash with code-completion when using -import-objc-header.
...
Swift SVN r18444
2014-05-20 04:05:52 +00:00
Doug Gregor
73528dc0e0
Enable importing factory methods as initializers by default.
...
Finishes <rdar://problem/16509024>.
Swift SVN r17972
2014-05-12 23:01:20 +00:00
Ted Kremenek
fad874708e
Adjust test cases.
...
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Dmitri Hrybenko
2a4dfc1d00
Rename swift-index-test -> swift-ide-test per Doug's suggestion
...
Swift SVN r6042
2013-07-06 00:52:11 +00:00