Xi Ge
a5e51a3494
[SourceKit] In CursorInfo response, include the mangle name of the type of the underlying decl.
...
The mangled name of the type is identical to those for debugger. These
mangled names allow us to reconstruct the type from AST and generate interface
specifically for that type.
Related rdar://27306890
2016-07-12 13:10:58 -07:00
Doug Gregor
823c24b355
[SE-0112] Rename ErrorProtocol to Error.
...
This is bullet (5) of the proposed solution in SE-0112, and the last
major piece to be implemented.
2016-07-12 10:53:52 -07:00
Ben Langmuir
79f6d1d492
[SourceKit] Narrow the test-disabling in cursor_info.swift
...
Only one availability test is failing (because of
rdar://problem/27144738), so re-enable the rest of the test.
rdar://problem/26121117
2016-07-05 13:33:30 -07:00
Ben Langmuir
e8b33b7bd4
[SourceKit] Re-enable tests that are passing again on master-next
...
rdar://problem/26121117
2016-07-05 13:33:29 -07:00
Chris Lattner
ffcafd7c00
fix the AST printer to stop omitting parens around "simple enough" parameter
...
lists.
2016-07-02 20:24:58 -07:00
Michael Gottesman
3c603ab18b
Merge remote-tracking branch 'origin/master' into master-next
2016-07-01 18:44:21 -07:00
Ben Langmuir
7578ccaae0
[ASTPrinter] Don't print internal @rethrows attribute
...
This attribute is an implementation detail of how 'rethrows' works, and
you can't actually mark declarations @rethrows directly. So hide it
from cursor info, and other places that use the ASTPrinter.
rdar://problem/26638597
2016-06-29 16:07:52 -07:00
Michael Gottesman
8d00a6cb59
Merge remote-tracking branch 'origin/master' into master-next
...
Conflicts:
stdlib/public/SDK/GameplayKit/CMakeLists.txt
test/DebugInfo/bound-namealiastype.swift
test/DebugInfo/structs.swift
test/IRGen/c_globals.swift
test/SourceKit/DocSupport/doc_clang_module.swift
test/SourceKit/Indexing/index_with_clang_module.swift
utils/update-checkout
2016-06-25 01:13:50 -07:00
Brian Croom
98e3ca8bc4
Annotate some SourceKit tests that fail on Linux.
...
* A bunch of them require objc_interop because they import code containing
Objective-C.
* Many others fail on Ubuntu 14.04 because the C++ there doesn't have a
functional std::regex implementation which is required by the
`complete-test` tool.
It may be possible to adjust some of these tests in the future to not
need these extra requirements, but this is a straightforward way to
clean up Linux test results for now.
2016-06-14 08:55:48 -04:00
Trent Nadeau
b9db36cda5
Removed last uses of @warn_unused_result
2016-06-06 19:12:51 -04:00
Mark Lacey
baeb90054f
Disable SourceKit tests that are failing after latest merge.
...
Tracked by rdar://problem/26121117.
2016-05-05 12:22:23 -07:00
Chris Lattner
a0c5d2a7df
adjust autoclosure/noescape printing to print them in their type
...
position instead of before a parameter. This wraps up the meat of
SE-0049.
2016-04-15 17:04:12 -07:00
Dave Abrahams
1c3d998951
Revert "[gardening] "Type->Type" → "Type -> Type" in Swift code"
...
This reverts commit 14edeaf67a because
it's breaking tests:
https://ci.swift.org/job/oss-swift-incremental-RA-osx/lastFailedBuild/consoleFull#1361088108ee1a197b-acac-4b17-83cf-a53b95139a76
2016-04-13 10:29:57 -07:00
practicalswift
14edeaf67a
[gardening] "Type->Type" → "Type -> Type" in Swift code
2016-04-13 10:51:53 +02:00
David Farler
fbc220a036
Revert "Revert "Enable cmark smart punctuation in doc comments""
...
This reverts commit f723b86614 and
updates the IDE tests that incidentally included some punctuation.
No new tests are necessary - the character level tests are exercised
in cmark itself.
2016-04-10 13:32:43 -07:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Manav Gabhawala
7862f104c9
[Parser] Cleans up parsing of parameter attributes. Implements SE-0053. Fixes SR-979, SR-1020 and cleans up implementation of SE-0003. Provides better fix-its and diagnostics for misplaced 'inout' and prohibits 'var' and 'let' from parameter attributes
2016-03-29 13:55:46 -04:00
Xi Ge
fda0751cae
[SourceKit] In interface-gen request, allow clients to send SourceKit an interested USR from which we can infer the group name.
2016-03-23 17:26:44 -07:00
Xi Ge
3dd149ab99
[SourceKit] CursorInfo: The result of cursor info for a module name starts to include group names in that module.
2016-03-21 17:20:18 -07:00
Ben Langmuir
187bc9fbb9
[CursorInfo] Annotate tuple types in fully annotated decl
...
We already annotate the elements, this just adds annotations around the
outer parentheses, including when the tuple is unit.
rdar://problem/25147925
2016-03-21 16:31:52 -07:00
Xi Ge
2c75cfba39
[SourceKit] Similar with what we do for module printing, for quick help, elevate the doc-comment from conformances if the decl itself does not have associated doc-comment. rdar://24409720
2016-03-21 15:05:02 -07:00
Xi Ge
5d054cb5df
[Test] Add a stdlib-independent test to ensure that we never print @warn_unused_result in quick help.
...
Suggested by @benlangmuir
2016-03-21 11:30:56 -07:00
Xi Ge
c85591bc25
[SourceKit] CursorInfo: not showing @warn_unused_result in quick help.
2016-03-18 16:39:27 -07:00
Ben Langmuir
b5f4e9d45d
[SourceKit] Rename result_test to more descriptive name cursor_generic_enum
2016-03-17 16:31:46 -07:00
Ben Langmuir
503887c5f2
[SourceKit] Split SourceDocInfo tests into CursorInfo and RelatedIdents subdirectories
...
Unless you're familiar with the way the swift source code is organized,
it's not clear what "SourceDocInfo" means, or how it is different from
DocSupport, etc. Move the tests into directories that are named based
on their request (note: we already had one test under CursorInfo, which
just made things even more confusing).
2016-03-17 16:31:46 -07:00
John Holdsworth
b92f09fc12
Add of comment affected line offsets of test
2016-03-12 00:20:08 +00:00
John Holdsworth
474f043c93
Make test self-contained using CHECK:
2016-03-11 23:47:42 +00:00
John Holdsworth
3a8a8e080e
New test for common SourceKit crash
2016-03-11 23:24:11 +00:00