Mohammad Ghasembeigi
ee2ceca8d1
Remove unnecessary 'visitDecl' default cases.
...
The default cases are unnecessary and provide no benefits so they should
just be removed.
2015-12-06 03:08:08 +11:00
moi
f45190056f
Reformat README
2015-12-04 16:48:57 +08:00
Martin Kiss
b2ed2af54a
Fix spelling
2015-12-03 20:55:43 +01:00
Dmitri Gribenko
4324e7c903
Remove conditional compilation of tvOS
2015-12-01 14:43:45 -07:00
Argyrios Kyrtzidis
8c6c9a27c1
[sourcekitd] Be tolerant of multiple calls to sourcekitd_initialize.
2015-11-30 10:46:52 -08:00
Xi Ge
9beeb56a90
[TypeInterface] When printing type-specific interfaces, replace parameter and return types with instantiated types.
2015-11-17 19:12:30 -08:00
Argyrios Kyrtzidis
6bcd425047
[sourcekit] Introduce sourcekitd_set_uid_handlers, to fully control how uid's are mapped to strings and vice-versa.
2015-11-16 13:26:58 -08:00
Argyrios Kyrtzidis
df060ff827
[sourcekit] Fix a comment.
2015-11-16 13:26:58 -08:00
Argyrios Kyrtzidis
e8b1a10b5c
[sourcekit] Fix sourcekitd::UIdentFromSKDUID on the service side, that is used for logging purposes.
2015-11-16 13:26:58 -08:00
Argyrios Kyrtzidis
d06b55a622
[CMake/build] Instead of just picking up the libclang dylib, invoke install-libclang target on the llvm build.
2015-11-11 21:35:01 -08:00
Xi Ge
4b847abf92
[SourceKit][CodeFormat] Align the comments before a case statement with the statement. rdar://20985149
2015-11-11 11:40:49 -08:00
Ben Langmuir
7b0784958f
[CodeCompletion] Penalize fuzzy matches that aren't on token boundaries even more
...
rdar://problem/22419553
2015-11-06 20:01:53 -08:00
Ben Langmuir
11444373a5
[CodeCompletion] Don't fuzzy-match on single characters
...
Use prefix matching on the first character, switch to fuzzy after 2 or
more. With only a single character, we often get silly fuzzy results.
2015-11-06 19:26:48 -08:00
Ben Langmuir
ef8338fe86
[CodeCompletion] Don't add inner results on non-declarations
...
We were getting some ridiculous completions that were just two
independentdcompletions concatenated together.
rdar://problem/22945376
2015-11-06 19:02:22 -08:00
Jordan Rose
6a0527ec14
[SourceKit/CMake] Fix output directory for building with Xcode.
2015-11-06 16:27:08 -08:00
Xi Ge
6d19519e14
[SourceKit][CodeFormat] Adjust the indentation for getter methods that have no explicit "getter" keyword.
...
rdar://21598808
2015-11-06 11:34:18 -08:00
Argyrios Kyrtzidis
f0f83d32c2
Fix -Wunused-function warnings.
2015-11-05 19:04:10 -08:00
Argyrios Kyrtzidis
a11b5628e3
[SourceKit] Use the correct macro, 'SWIFT_ENABLE_TARGET_TVOS'.
2015-11-05 18:34:42 -08:00
Argyrios Kyrtzidis
26fca3a347
[SourceKit/CMake] Use 'tools' install component for the SourceKit tools.
2015-11-05 18:24:19 -08:00
Xi Ge
c022c9925c
[CodeComplete] Start to support keyword-based code completion. rdar://23101032
...
Conventionally, code completion results are matched with user input solely by
names. However, names are limited in expressiveness. From this comments, we start to
decorate code completion results with @keywords fields extracted from Clang doc comments.
These fields are added by API authors to comment the decl with information that
is not manifested clear enough through names. Code completion users' typing of the
keyword leads to the corresponding code completion results being selected as well.
Keywords can be arbitrarily long and can be multiple.
For instance, a function called "index()" has "@keyword find" in its doc comment.
Users' typing of "find" leads to "index()" being selected in the code completion list.
2015-11-05 15:36:55 -08:00
Ben Langmuir
07e7be5d99
[sourcekit] Fix swift library dependencies
...
Now that we're in the same repo, use cmake targets instead of paths so
we get correct dependencies.
2015-11-05 12:47:38 -08:00
Argyrios Kyrtzidis
d19e4ae026
[SourceKit] Add license notices to all the source files.
2015-11-05 12:01:14 -08:00
Argyrios Kyrtzidis
8f0bc8c95f
[CMake] Fix building SourceKit for a standalone build.
2015-11-05 11:02:47 -08:00
Argyrios Kyrtzidis
8ff6a98a99
[sourcekit] Merge SourceKit into the Swift repo.
...
The code goes into its own sub-tree under 'tools' but tests go under 'test',
so that running 'check-swift' will also run all the SourceKit tests.
SourceKit is disabled on non-darwin platforms.
2015-11-05 01:09:08 -08:00