Commit Graph

3682 Commits

Author SHA1 Message Date
Saleem Abdulrasool
64a486d5c7 Merge pull request #16146 from compnerd/remoteast
swift-remoteast-test: mark exported interfaces
2018-04-25 09:29:13 -07:00
Saleem Abdulrasool
d641f0b079 swift-remoteast-test: mark exported interfaces
Mark the exported interfaces in the tool for the `ENABLE_EXPORTS`
to work properly.  This fixes the dependency tracking on Windows
and ensures that the tool is not continuously rebuilt.
2018-04-24 19:19:52 -07:00
swift-ci
c02f08330a Merge remote-tracking branch 'origin/master' into master-next 2018-04-24 16:09:15 -07:00
Harlan Haskins
0f5ac8d57a Actually add offsets in add(columns:) and add(lines:size:) 2018-04-24 16:41:19 -04:00
Harlan Haskins
6b29e2dd97 Re-add AbsolutePosition.swift 2018-04-24 16:15:55 -04:00
Harlan Haskins
572a144d2d Rename byteOffset to utf8Offset and remove utf16 2018-04-24 16:14:37 -04:00
Harlan Haskins
5d7549c1e0 Monomorphize AbsolutePosition.copy() 2018-04-24 14:11:02 -04:00
Harlan Haskins
76d8331a99 Un-rename property 2018-04-24 11:50:31 -04:00
Harlan Haskins
6bc087374c Clarify comment 2018-04-24 11:49:24 -04:00
Harlan Haskins
6189e6f1e9 Simplify AbsolutePosition offset calculation and support columns 2018-04-24 11:42:24 -04:00
Saleem Abdulrasool
4e37196c52 Merge pull request #16104 from compnerd/330216
master-next: update for SVN r330216
2018-04-23 17:08:01 -07:00
swift-ci
4124dfc388 Merge remote-tracking branch 'origin/master' into master-next 2018-04-23 16:49:26 -07:00
Alex Hoppen
e75114a4d6 Merge pull request #16038 from ahoppen/parsing-fixes
libSyntax parsing fixes for class-restricted protocols and operators for higher-order functions
2018-04-23 16:39:47 -07:00
Saleem Abdulrasool
6b18cfe53f master-next: update for SVN r330216
sys::Process::GetArgumentVector has been removed.  It is unclear if it
was ever needed in the first place.  Simplify the code to avoid the use.
2018-04-23 11:24:02 -07:00
swift-ci
7279d35e3c Merge remote-tracking branch 'origin/master' into master-next 2018-04-20 17:49:40 -07:00
Xi Ge
9b8cd0dc15 swift-api-digester: detect API changes due to undoing NS_TYPED_EXTENSIBLE_ENUM. rdar://39498127 2018-04-20 16:48:14 -07:00
Alex Hoppen
699ca79ac5 [swift-syntax-test] Add batch option to execute action for every swift file in directory 2018-04-20 13:38:14 -07:00
swift-ci
84d3d31c4c Merge remote-tracking branch 'origin/master' into master-next 2018-04-20 09:09:41 -07:00
Xi Ge
36b2c93c90 Merge pull request #16048 from nkcsgexi/name-correction
swift-api-digester: add a new action to dump name correction template.
2018-04-20 09:00:13 -07:00
swift-ci
6cc68b46e7 Merge remote-tracking branch 'origin/master' into master-next 2018-04-19 22:09:52 -07:00
Ben Langmuir
773cd93812 Merge pull request #16042 from benlangmuir/sourcekitd-warnings
[sourcekitd] Fix some compiler warnings
2018-04-19 22:00:43 -07:00
Xi Ge
53c9f1aaa9 swift-api-digester: add a new action to dump name correction template.
Rename detection in the tool may not reflect overlay additions; thus we
mistakes a new name to be an underscored one. This new action searches
migration scripts for suspicious ones and generates a template for us to
specify the correct names.
2018-04-19 18:01:01 -07:00
Ben Langmuir
0aa11cb6b2 [sourcekitd] Fix some compiler warnings
* remove nullability attribute from a non-pointer argument
* const-correctness on custom buffer casts
* remove statically unreachable code
2018-04-19 14:27:08 -07:00
Ben Langmuir
23ab43c941 [sourcekitd] Change compile notifications to pass a single args string
... instead of an array of compiler arguments. This is good enough
for seeing what's going on, and it saves significant time for long
argument strings, because it doesn't create and destroy so many
xpc strings, and more of the string copying that happens is on a large
contiguous string instead of many small strings.

rdar://39538847
2018-04-19 13:59:27 -07:00
swift-ci
d5083722b2 Merge remote-tracking branch 'origin/master' into master-next 2018-04-19 13:48:19 -07:00
Ben Langmuir
31eae3675b [sourcekitd] Remove XPCTracing
This code was an experiment in how to collect information after a crash,
that did not end up being used.  It's unclear how much it has bitrotted
at this point, since it has no tests and was not designed with automated
testing in mind.  Parts of it interfere with some changes I want to make
to the underlying tracing mechanism, so I am finally removing it.  This
also lets us remove the buffer copying in the parts of tracing used by
the compile notifications, improving performance.

For rdar://39538847
2018-04-19 11:52:38 -07:00
Ben Langmuir
fc7db4d24b Merge pull request #16036 from benlangmuir/sourcekitd-test-enhancements
[sourcekitd-test] A few minor enhancements to support timing requests
2018-04-19 11:48:57 -07:00
swift-ci
17596b9329 Merge remote-tracking branch 'origin/master' into master-next 2018-04-19 11:47:13 -07:00
Ben Langmuir
b78daf5959 [sourcekitd-test] Add options to repeat a request and ignore its output
This provides a very rudimentary way to check the end-to-end performance
of simple sourcekitd requests. A sample invocation might be

```
sourcekitd-test -time-request -repeat-request=10 -dont-print-response -req= ...
```
2018-04-19 10:46:07 -07:00
Ben Langmuir
94140763da [sourcekitd-test] Add a flag -time-request
Allows simple timing of request. Includes only the time to make the
request and receive the reply, but not any additional deserialization
etc.
2018-04-19 10:43:46 -07:00
swift-ci
0b370c9c13 Merge remote-tracking branch 'origin/master' into master-next 2018-04-18 16:06:49 -07:00
Jordan Rose
989a29914a Merge pull request #15853 from dabelknap/response_file
Enable Response Files for the Swift Driver and Frontend
2018-04-18 16:00:53 -07:00
Austin Belknap
0e5f88c5ad Elaborate on the purpose of response files. 2018-04-18 09:54:59 -07:00
Ben Langmuir
a30ba5e4ab [sourcekitd-test] Print requests more consistently
Fixes request printing for format and syntax-map+edit requests.
2018-04-17 13:28:28 -07:00
swift-ci
ca4ba22690 Merge remote-tracking branch 'origin/master' into master-next 2018-04-17 12:09:04 -07:00
Davide Italiano
5c99c35d24 [lldb-moduleimport-test] Validate input to prevent crashes. 2018-04-17 11:22:15 -07:00
Bob Wilson
730cc83af8 master-next: Change to include CommandFlags.inc (instead of .def)
LLVM r329840 renamed CommandFlags.def to CommandFlags.inc.
Update Swift to match.
2018-04-16 17:07:12 -07:00
swift-ci
5734192793 Merge remote-tracking branch 'origin/master' into master-next 2018-04-13 19:32:37 -07:00
Huon Wilson
3124f6ad50 Merge pull request #15916 from huonw/fatalError-bodies
[IDE] Refactoring to change function bodies to "fatalError()".
2018-04-14 12:30:05 +10:00
swift-ci
999d8ba4bb Merge remote-tracking branch 'origin/master' into master-next 2018-04-13 14:42:44 -07:00
Ben Langmuir
e08c31759e [sourcekit] Remove dead UID value
This was renamed at some point and the usage in complete-test has become
dead anyway, so clean it up.
2018-04-13 13:49:57 -07:00
Huon Wilson
8056102ee5 [IDE] Refactoring to change function bodies to "fatalError()".
This is immensely useful when working on generic code, where the signatures
of (many) functions are all that is required, and removing the bodies makes
things compile faster, allows tools like creduce to work better and results in
less noise in a debugger.

Unfortunately the design of refactoring means this currently only works on a
single top-level decl, or multiple decls inside a type.
2018-04-13 15:56:56 +10:00
swift-ci
c34d9349ca Merge remote-tracking branch 'origin/master' into master-next 2018-04-11 22:53:54 -07:00
Rintaro Ishizaki
ad3e6b9471 [SourceKit] Make sourcekitd-test -req=demangle STDIN mode actually work
This didn't work at all because it didn't advance cursor after regex
matching.
Align regex with swift-demangle.
2018-04-11 20:08:52 +09:00
Rintaro Ishizaki
e9988589fb [SourceKit] Update demangle for new mangling
Use 'swift::Demangle::isSwiftSymbol()' instead of homemade function

rdar://problem/39286958
2018-04-11 20:08:27 +09:00
Austin Belknap
a7fe02e0c5 Add ability to expand response files from the command line. 2018-04-10 12:41:25 -07:00
swift-ci
26651895b2 Merge remote-tracking branch 'origin/master' into master-next 2018-04-10 12:31:11 -07:00
Argyrios Kyrtzidis
3156180c08 [SourceKit] For the XPC service identifier, also include the platform name
This is useful because the embedded platforms may have the same toolchain version but they contain
different stdlibs. We need to make sure the XPC service name is unique between them, otherwise we may load
and use the incorrect toolchain service.

rdar://39077520
2018-04-10 11:24:55 -07:00
swift-ci
012c981068 Merge remote-tracking branch 'origin/master' into master-next 2018-04-09 17:24:23 -07:00
Xi Ge
e405bab9bf swift-api-digester: separate migration kind from the other node annotation kind. NFC 2018-04-09 16:18:24 -07:00