practicalswift
4e9bb3c9b2
Add a py3 compatible workaround for the removed long type
2017-02-15 21:43:52 +01:00
Argyrios Kyrtzidis
c309fb2620
Merge pull request #7477 from akyrtzi/fsystem-search-path-option2
...
Add '-Fsystem' framework search option to indicate path for frameworks that should be treated as 'system'
2017-02-15 12:04:36 -08:00
Argyrios Kyrtzidis
32e5112874
For the -Fsystem option, address feedback by Jordan.
2017-02-14 23:35:06 -08:00
Xi Ge
143c5a5d82
Address @jrose-apple's code review comments ( #7474 )
2017-02-14 18:41:21 -08:00
Argyrios Kyrtzidis
ca906d1e99
Add '-Fsystem' framework search option to indicate path for frameworks that should be treated as 'system'
...
This has the effect of propagating the search path to the clang importer as '-iframework'.
It doesn't affect whether a swift module is treated as system or not, this can be done as follow-up enhancement.
2017-02-14 16:13:25 -08:00
Xi Ge
055da1fbfb
[SourceKit] Teach name translation request to translate Swift names to ObjC ones (by using PrintAsObjC). ( #7449 )
2017-02-14 14:25:52 -08:00
Hugh Bellamy
cb3bdcc2a3
Merge pull request #7408 from hughbe/llvm-fallthrough
...
Use relatively new LLVM_FALLLTHROUGH instead of our own SWIFT_FALLTHROUGH
2017-02-13 17:39:59 +07:00
Slava Pestov
559350ebe8
Merge pull request #7392 from alblue/sourcekit
...
Build SourceKit on Linux if dispatch is present
2017-02-12 17:34:22 -08:00
Hugh Bellamy
f001b7562b
Use relatively new LLVM_FALLLTHROUGH instead of our own SWIFT_FALLTHROUGH
2017-02-12 10:47:03 +07:00
Xi Ge
b32424953e
[SourceKit] Add a new request to translate from Objc names to Swift names and vice versa.
...
Extensive cross-language tooling support needs to bridge decl names between two different languages more freely. This SourceKit request is designed to translate Objc names to Swift names and vice versa. Working similarly to cursor-info requisition, the name translation request requires a Swift reference to a Swift/Clang decl, and the preferred name to translate from, and language kind that the given name belongs to. If the translation succeeds, SourceKit service responds with the corresponding name than belongs to the other kind of language.
Newly introduced keys:
“key.namekind": “source.lang.name.kind.objc” | "source.lang.name.kind.swift"
“key.basename”: “name"
“key.argnames”: [“name"]
“key.selectorpieces”: [“name[:]"]
This commit only implements translation from Objc to Swift.
2017-02-10 17:50:12 -08:00
Alex Blewitt
1673b5e8fd
Build SourceKit on Linux if dispatch is present
...
SourceKit can be built on Linux if dispatch is available
so enable this so it happens by default.
Issue: SR-1676
2017-02-10 22:03:13 +00:00
Chris B
19ac633de9
Merge pull request #7344 from llvm-beanz/import-cmark-targets
...
Clean up handling of CMark library dependency.
2017-02-09 13:45:36 -08:00
Doug Coleman
cb973ae67a
sourcekitd/CMakeLists.txt: Add a flag for building sourcekitdInProc as a
...
static library.
2017-02-08 17:17:55 -08:00
Chris Bieneman
44b6f32f0e
Clean up handling of CMark library dependency.
...
This change depends on:
https://github.com/apple/swift-cmark/pull/4
2017-02-08 14:32:50 -08:00
Graydon Hoare
7137bab0c7
[Bridging PCH] Teach SourceKit to ignore the bridging-pch driver options.
2017-02-02 17:07:10 -08:00
Xi Ge
6b699d8855
SourceEntityWalker: keep track of type reference in extension declarations' openings. ( #7192 )
...
This is necessary when we want to differentiate between type reference
on extension declaration's start, e.g "extension A {}", and other
references of "A". NFC on existing functionality.
2017-02-01 17:09:01 -08:00
Slava Pestov
b3cabb0745
Use llvm casts in various places instead of looking at {Expr,Decl,TypeBase}::getKind()
...
Also add some FIXMEs for some code in debug info emission that
looks incorrect.
2017-01-30 00:08:53 -08:00
Erik Eckstein
4d00ac1bba
New mangling: add a -new-mangling-for-tests option.
...
This option enables the new mangling for everything except the Swift stdlib module.
Used to switch test files explicitly to the new mangling.
2017-01-24 15:27:45 -08:00
Slava Pestov
8289a19f53
Merge pull request #6858 from alblue/SR-1676
...
Enable sourcekitd to be built by default on Linux
2017-01-20 21:11:06 -08:00
Bob Wilson
24a61b5b5d
Merge branch 'master-next'
...
This merge contains the changes to accompany the switch to the new stable
branches of llvm, clang, and compiler-rt that are based on swift-4.0-branch.
2017-01-18 09:22:52 -08:00
Argyrios Kyrtzidis
da1328f04b
[sourcekit] Fix assertion hit when doing cursor-info on a subscript parameter declaration.
...
Fixes rdar:/30060622
2017-01-17 14:56:36 -08:00
Alex Blewitt
3e9f66c6ca
Enable sourcekitd to be built by default on Linux
...
The Linux build has a dependency on the libdispatch library,
which is needed by the various native libraries for sourcekitd.
On macOS, the dependency for libdispatch is satisfied directly through
the base OS, but on Linux no such dependency exists.
Modify this so that if the SourceKit library is built, and the
libdispatch library is already present, then we shell out to make
the libdispatch binary project when the SourceKit is built.
Issue: SR-1676
2017-01-17 19:21:52 +00:00
Alex Blewitt
25fc295e4a
Revert "Merge pull request #6807 from alblue/SR-1676"
...
This reverts commit c85cbe5c78 , reversing
changes made to 5d293ab9d2 .
2017-01-17 09:47:07 +00:00
Alex Blewitt
f7836ae0c8
Enable sourcekitd to be built by default on Linux
...
The Linux build has a dependency on the libdispatch library,
which is needed by the various native libraries for sourcekitd.
On macOS, the dependency for libdispatch is satisfied directly through
the base OS, but on Linux no such dependency exists.
Modify this so that if the SourceKit library is built, and the
libdispatch library is already present, then we shell out to make
the libdispatch binary project when the SourceKit is built.
Issue: SR-1676
2017-01-14 10:38:45 +00:00
Bob Wilson
c765d5e3a5
Merge remote-tracking branch 'origin/master' into master-next
2017-01-12 15:58:19 -08:00
Argyrios Kyrtzidis
7076ebbf72
[index] Switch to using the general accessor getter/setter symbol kinds.
2017-01-11 17:09:17 -08:00
Slava Pestov
d2e80da8db
Merge pull request #4733 from AquaGeek/sourcekit-docs
...
[SourceKit] Document source.request.mangle_simple_class
2017-01-11 00:01:57 -08:00
Arnold Schwaighofer
66be1d79fd
Merge pull request #6717 from apple/revert-5903-SR-1676
...
Revert "Enable SourceKit building by default on Linux"
2017-01-10 15:56:36 -08:00
Arnold Schwaighofer
ca12aaacd4
Revert "Enable SourceKit building by default on Linux"
2017-01-10 15:36:29 -08:00
Argyrios Kyrtzidis
db8ec19f55
[index] Use the index symbol types and APIs from the clang header.
...
This avoids duplication and centralizes handling of symbols.
2017-01-10 14:49:07 -08:00
Argyrios Kyrtzidis
dc25c6b646
Merge pull request #5903 from alblue/SR-1676
...
Enable SourceKit building by default on Linux
2017-01-10 13:37:50 -08:00
Bob Wilson
cf3a0458f2
Merge remote-tracking branch 'origin/master' into master-next
2017-01-10 09:05:23 -08:00
Doug Coleman
7b06a0425e
SourceKit: Fix cmake for ASAN builds on macos.
2017-01-09 14:55:55 -08:00
Nathan Hawes
563bc04da1
Merge pull request #6677 from nathawes/swift-indexing
...
Add roles and relations for Swift indexing
2017-01-09 14:48:35 -08:00
Tyler Stromberg
b2a099230f
[SourceKit] Document source.request.mangle_simple_class
2017-01-09 14:20:02 -08:00
Nathan Hawes
32ba5f24cb
[indexer] Don't output implicit symbol names in order to maintain the existing swift index responses
2017-01-09 13:48:47 -08:00
Slava Pestov
dfebf20670
Merge pull request #6387 from hughbe/symlink-win32
...
[CMake] fix symlink creation on Windows
2017-01-09 12:27:21 -08:00
Bob Wilson
37e7d1c627
Merge remote-tracking branch 'origin/master' into master-next
2017-01-08 17:07:46 -08:00
Brian Gesiak
663b92ece9
[AST] Completely replace Module with ModuleDecl
...
The typedef `swift::Module` was a temporary solution that allowed
`swift::Module` to be renamed to `swift::ModuleDecl` without requiring
every single callsite to be modified.
Modify all the callsites, and get rid of the typedef.
2017-01-08 00:36:08 -05:00
swift-ci
fa0189510c
Merge pull request #6628 from nkcsgexi/synthesized-target-check
2017-01-06 17:28:10 -08:00
Xi Ge
264057dc04
[DocSupport] Ensure synthesized target is correct for enclosed nominal decls inside extension declarations. rdar://29857103
2017-01-06 15:40:14 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Bob Wilson
4ca0676a34
Merge remote-tracking branch 'origin/master' into master-next
2017-01-05 17:11:16 -08:00
Nathan Hawes
8c45e20d3f
[indexer] Add relations to IndexSymbol add a -print-indexed-symbols option to swift-ide-test for testing
2017-01-05 15:01:53 -08:00
Jordan Rose
577b99e232
Merge pull request #6541 from mxswd/fix-cmake
...
Fixed LIBEDIT failure, not enough global mutable state for CMake!
2017-01-04 17:26:25 -08:00
Xi Ge
4fe46c0a77
[SourceKit][CursorInfo] Add two optional fields when configuring curso-infor request, key.length and key.actionable. NFC
...
This serves as a skeleton for future extensions on cursor info request.
2017-01-04 13:38:25 -08:00
Maxwell Swadling
35b2c68bd5
Revert "Revert "Introduce and use SWIFT_HAVE_LIBEDIT""
...
This reverts commit ef49338283 .
2017-01-03 17:04:24 -08:00
Bob Wilson
78b28243ff
Merge remote-tracking branch 'origin/master' into master-next
2017-01-03 14:22:59 -08:00
Mishal Shah
ef49338283
Revert "Introduce and use SWIFT_HAVE_LIBEDIT"
2017-01-03 11:36:47 -08:00
Hugh Bellamy
888afe139c
Fix creating symlinks on Windows
2016-12-27 14:55:05 +00:00