Rick van Voorden
f8ae46b3f3
[inclusive-language] changed sanity to soundness
2024-01-25 18:18:02 -08:00
Ben Barham
8128450690
[CursorInfo] Always add module name to response
...
To simplify clients, have the cursorinfo result be consistent whether
requesting a symbol within the current module or not, ie. do not skip
adding the module name.
Resolves rdar://77003299
2021-10-22 12:35:53 +10:00
Nathan Hawes
e1a4c5f846
[SourceKit][CursorInfo] Add a field for the source language the symbol was originally defined in
...
Resolves rdar://75446903
2021-03-18 18:49:25 +10:00
Rintaro Ishizaki
aee280ad65
[SourceKit/Testing] Add %diff as an alias for 'diff --strip-trailing-cr'
2020-04-08 11:23:48 -07:00
Ben Langmuir
0b93a247c6
[test] Remove now-redundant %mcp_opt from sourcekit tests
...
Remove `%mcp_opt` from commands that use `%sourcekitd-test` and
`%complete-test`, as they are now redundant with the lit substitution.
2020-01-22 11:12:25 -08:00
David Goldman
7b6f9499b7
Comment and sourcekitd-test fixes
2019-05-28 04:36:29 -04:00
David Goldman
1b1756cb55
Add InternalDiagnostic to CursorInfoData and NameTranslatingInfo
2019-05-28 04:24:25 -04:00
David Goldman
176cd6cce1
Fail requests when an error occurs
...
Previously, requests would fail silently by returning an empty struct
in the response.
With this change, responses will properly report fail with the internal
error.
2019-05-28 04:24:25 -04:00
Joe Groff
7d54810b92
Revert "[SourceKit] Fail requests when an error occurs"
2019-05-22 15:18:28 -07:00
David Goldman
1c819820fa
Comment and sourcekitd-test fixes
2019-05-21 10:40:22 -04:00
David Goldman
a3a4d2d22b
Add InternalDiagnostic to CursorInfoData and NameTranslatingInfo
2019-05-03 11:01:22 -04:00
David Goldman
10ecea6269
[SourceKit] Fail requests when an error occurs
...
Previously, requests would fail silently by returning an empty struct
in the response.
With this change, responses will properly report fail with the internal
error.
2019-05-03 11:01:21 -04:00
Slava Pestov
3dc5ae36a6
SourceKit: Use Demangle::getTypeDeclForUSR() to implement 'CursorInfo for USR' request
...
Fixes <rdar://problem/47819208>.
2019-02-22 16:13:03 -05:00
Erik Eckstein
39bb14b094
change mangling prefix from $S to $s
...
This is the final ABI mangling prefix
rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Erik Eckstein
cd3d50a5d9
ABI: Change the mangling prefix from _T0 to $S
2018-01-06 13:55:59 -08:00
Pavel Yaskevich
533171debf
[Mangling/ABI] NFC: Fix SourceKit tests to reflect label mangling changes
2017-12-18 15:45:50 -08:00
Alex Hoppen
1c7e289b96
[Mangling] Adjust subscript mangling to not include "subscript"
...
Change the mangling of accessors to have a variable or subscript node
as their only child node, while subscript nodes no longer contain a decl
name.
2017-09-10 19:44:07 +02:00
Dmitri Gribenko
984210aa53
tests: replace '// RUN: rm -rf' '// RUN: mkdir' pairs with '%empty-directory(...)'
...
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Norio Nomura
3da7926a5e
Revert "Revert "Enable SourceKit tests if building SourceKit""
...
This reverts commit a383adf9df .
2017-04-26 21:16:36 +09:00
Arnold Schwaighofer
a383adf9df
Revert "Enable SourceKit tests if building SourceKit"
2017-04-24 17:59:03 -07:00
Norio Nomura
c49fa3c6d2
[SourceKit] Mark some tests requires objc_interop
2017-04-04 18:45:04 +09:00
Erik Eckstein
761d6512fe
SourceKit: switch to new mangling in ide::printDeclTypeUSR
...
This was still missing.
2017-03-16 19:57:16 -07:00
Erik Eckstein
7995d3d35a
SourceKit: Use new mangling for USR generation.
2017-02-23 12:47:10 -08:00
Dmitri Gribenko
55864d10cb
Tests: use 'mkdir -p'
2016-09-02 21:36:45 -07:00
Dmitri Gribenko
d175b3b66d
Migrate FileCheck to %FileCheck in tests
2016-08-10 23:52:02 -07:00
Doug Gregor
b9363fe6bd
[SE-0111] Enable SE-0111 by default.
2016-07-29 17:28:24 -07:00
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
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
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