Nathan Hawes
bce68fa4e5
[IDE][Refactoring] Handle 'callAsFunction' specially in syntactic rename.
...
This change makes us treat it exactly as we do 'init'. We don't allow renaming the base name,
and don't fail if the basename doesn't match for calls.
Also:
- explicit init calls/references like `MyType.init(42)` are now reported with
'init' as a keywordBase range, rather than nothing.
- cursor info no longer reports rename as available on init/callAsFunction
calls without arguments, as there's nothing to rename in that case.
- Improved detection of when a referenced function is a call (rather than
reference) across syntactic rename, cursor-info, and indexing.
Resolves rdar://problem/60340429
2020-04-12 17:14:15 -07:00
Saleem Abdulrasool
24617651e5
WinSDK: add some constants for the SDK overlay
...
Unfortunately, the types are not imported through the clang importer.
Add them to the overlay for use in applications.
2020-04-12 16:08:47 -07:00
Robert Widmann
fa1e9df207
Merge pull request #30981 from omochi/run-test-jobs
...
[run-test] add `--build-jobs` option
2020-04-12 10:42:34 -07:00
Robert Widmann
763875aea7
Merge pull request #15108 from darquro/fast-path-ad-hoc-printing-of-strings
...
[stdlib][SR-7136] Fast-path ad-hoc printing of Strings
2020-04-12 09:30:52 -07:00
Robert Widmann
22b0526917
Merge pull request #30082 from 3405691582/OpenBSD_Port_Build
...
Build system recognizes OpenBSD.
2020-04-12 09:30:17 -07:00
Xi Ge
0c9c901c94
Merge pull request #30983 from nkcsgexi/61644469
...
ABI-checker: diagnose missing available attributes for members of extensions instead of the extensions themselves
2020-04-11 20:59:05 -07:00
Dave Abrahams
e583f3a8c3
Add -sil-cross-module-serialize-all option. ( #30816 )
...
Thanks, Michael!
2020-04-11 19:35:41 -07:00
Daniel Rodríguez Troitiño
d17cfbe217
Merge pull request #30982 from drodriguez/android-cfuncs-parse-check-aarch64
...
[android] Add check for __aarch64__ besides __arm__ and __arm64__.
2020-04-11 19:33:16 -07:00
Xi Ge
140a151de1
ABI-checker: diagnose missing available attributes for members of extensions instead of the extensions themselves
...
rdar://61644469
2020-04-11 19:00:49 -07:00
Daniel Rodríguez Troitiño
c02fa2dd45
[android] Add check for __aarch64__ besides __arm__ and __arm64__.
...
The spelling __arm64__ seems to be an Apple-only thing, which is not
provided when targetting Android, and probably other AArch64 Linuxes.
2020-04-11 17:30:16 -07:00
omochimetaru
081ffaa8d5
[run-test] add --build-jobs option
2020-04-12 08:43:55 +09:00
Saleem Abdulrasool
3d1bfdedb6
Merge pull request #30977 from compnerd/unused
...
build: prune some unused options for `_add_swift_host_executable_single`
2020-04-11 16:05:17 -07:00
Saleem Abdulrasool
81af0793b3
Merge pull request #30976 from compnerd/unused-paths
...
build: remove Swift search paths for host
2020-04-11 16:05:02 -07:00
Saleem Abdulrasool
f7a65f8e6a
Merge pull request #30961 from texasmichelle/change_filename
...
Add .gyb extension to filename
2020-04-11 16:02:51 -07:00
Owen Voorhees
cdd06d36de
Merge pull request #30973 from enferex/explicit-stringref-to-string
...
[DiagnosticVerifier] Explicitly convert a StringRef into a std::string.
2020-04-11 17:56:33 -05:00
Saleem Abdulrasool
45cfa1dca9
Merge pull request #30975 from compnerd/30965
...
test: speculative fix after #30965
2020-04-11 13:26:58 -07:00
Saleem Abdulrasool
87cbb3132d
build: duplicate and rename the _add_variant_* functions
...
This allows us to start splitting up the swift and C/C++ specific paths.
2020-04-11 13:24:31 -07:00
Saleem Abdulrasool
430b24a7b5
Merge pull request #30974 from compnerd/vim
...
vim: add `differentiability_witness` to SIL syntax
2020-04-11 12:59:42 -07:00
Saleem Abdulrasool
319a9e0cf0
build: prune some unused options for _add_swift_host_executable_single
...
Remove some unused parameters for this function. This simplification
will make it easier to merge `_add_swift_host_executable_single` into
`add_swift_host_executable`.
2020-04-11 12:26:30 -07:00
Saleem Abdulrasool
7e2ca19ba8
build: remove Swift search paths for host
...
Remove the Swift library search path for the host paths which are C/C++
only.
2020-04-11 12:25:34 -07:00
Saleem Abdulrasool
f9a14c0277
test: speculative fix after #30965
...
apple/swift#30965 broke the Windows test suite, this speculatively fixes
it.
2020-04-11 11:28:18 -07:00
Saleem Abdulrasool
c505d19045
vim: add differentiability_witness to SIL syntax
...
Add the keyword from the experimental auto-differentiation functionality.
2020-04-11 10:49:09 -07:00
Saleem Abdulrasool
b7654f158b
Merge pull request #30885 from compnerd/android-fp80
...
stdlib: android does not support fp80
2020-04-11 10:13:52 -07:00
David Ungar
4c4bf088dc
Merge pull request #30968 from davidungar/rdar-61461187-tolerate-nonempty-brace-in-brace
...
[ASTScope lookup] Tolerate non-empty braces in braces
2020-04-11 10:12:03 -07:00
Matt Davis
feb03ebcd7
[DiagnosticVerifier] Explicit convert a StringRef into a std::string.
...
The newer llvm StringRef library has removed the implicit StringRef to
std::string conversion. (See: llvm/llvm-project@adcd026 )
This patch also uses a StringRef to compare another StringRef
eliminating the need to perform a StringRef to std::string conversion.
I am concerned that StringRef's are being stored in
ExpectedEducationalNotes, but as long as the StringRef does not out live
the definition this is totally cool then.
2020-04-11 09:29:58 -07:00
Slava Pestov
1af01edbf0
Merge pull request #30965 from slavapestov/enable-dynamic-replacement-vs-library-evolution
...
Enable dynamic replacement with library evolution
2020-04-11 01:39:09 -04:00
eeckstein
628bf7beae
Merge pull request #30957 from eeckstein/fix-large-string-arrays
...
Several compile time fixes related to large string arrays.
2020-04-11 06:55:00 +02:00
Slava Pestov
365f0c7af5
Merge pull request #30861 from slavapestov/outdated-fixme
...
IRGen: Type reconstruction supports opaque result types now
2020-04-10 23:32:43 -04:00
swift-ci
d02c1400a9
Merge pull request #30899 from nathawes/improve-enum-case-trailing-comma-recovery
2020-04-10 20:30:42 -07:00
Slava Pestov
23cac673ca
IRGen: Enable dynamic replacement with library evolution
...
It looks like the only thing that fails is the linkage computation
for the dynamic replacement key of class methods. Even though
methods have hidden linkage to prevent them from being directly
referenced from outside a resilient module, we need to ensure
the dynamic replacement key is visible.
Fixes <rdar://problem/58457716>.
2020-04-10 22:53:36 -04:00
Rintaro Ishizaki
14fbb8286b
Merge pull request #29854 from rintaro/ide-completion-keypathfunc-paramty
...
[CodeCompletion] Use AnyFunctionType::Param::getParameterType()
2020-04-10 19:26:15 -07:00
Nathan Hawes
13d5a8addb
Merge pull request #30870 from nathawes/mutiple-catch-pattern-indentation
...
[SourceKit/CodeFormat] Column-align multiple patterns in catch clauses
2020-04-10 19:07:44 -07:00
Xi Ge
bae31467a3
Merge pull request #30962 from nkcsgexi/44777994
...
AST: making `export: true` in @_specialized attribute a no-operation
2020-04-10 18:39:22 -07:00
David Ungar
a2a60e0b18
Test nonempty-brace-in-brace
2020-04-10 18:33:06 -07:00
Saleem Abdulrasool
3a8eea4d58
Merge pull request #30907 from compnerd/autodiff-fix
...
test: repair the AutoDiff test on Windows
2020-04-10 18:33:01 -07:00
Nathan Hawes
8edeab75ce
[Parse] Don't drop the EnumCaseDecl when it has a trailing comma.
...
This meant we weren't producing sema diagnostics for the case, and it didn’t
get full syntactic/semantic highlighting or indentation.
enum CasesWithMissingElement {
case a(Int, String),
case b(Int, String),
}
Resolves rdar://problem/61476844
2020-04-10 18:22:33 -07:00
David Ungar
5d5776b64d
Tolerate non-empty braces in braces
2020-04-10 18:15:12 -07:00
Xi Ge
435d13496e
AST: making export: true in @_specialized attribute a no-operation
...
The client code doesn't actually call into these specialized functions even
though they have public linkage. This could lead to TBD verification failure
shown in rdar://44777994.
This patch also warns users' codebase when `export: true` is specified.
2020-04-10 16:52:22 -07:00
Michael Ilseman
c1ab69e2db
Merge pull request #30729 from milseman/merge_me_if_available
...
[string] String(decoding:as:) fast path for withContiguousStorageIfAvailable
2020-04-10 16:10:06 -07:00
Rintaro Ishizaki
315f65f962
[CodeCompletion] Use AnyFunctionType::Param::getParameterType()
...
instead of getOldType() in KeyPath as funtions completion.
Also, don't think keypath's are convertible to functions that receives
variadic parameters.
2020-04-10 15:55:32 -07:00
Slava Pestov
120840e092
Fix formatting nits in test/Interpreter/dynamic_replacement.swift
2020-04-10 18:45:07 -04:00
Slava Pestov
dd271cd089
Add test cases for initializer replacement to test/Interpreter/dynamic_replacement.swift
2020-04-10 18:45:07 -04:00
Bruno Rocha
ca74aca6d3
Allow unavailable decls to be walked
2020-04-10 15:34:41 -07:00
fredriss
503da8fa23
Merge pull request #30953 from adrian-prantl/deconstify-master
...
Convert a clang::Module to non-const to account for a clang API change
2020-04-10 15:16:06 -07:00
Artem Chikin
e3ce6f7b7e
Merge pull request #30939 from artemcm/ImplOnlyPropertyWrappers
...
[Sema] Diagnose use of implementation-only property wrappers
2020-04-10 15:12:41 -07:00
Saleem Abdulrasool
83183f465f
Merge pull request #30950 from compnerd/no-fp80
...
AutoDiff: disable the test cases for FP80
2020-04-10 15:09:05 -07:00
Saleem Abdulrasool
abd4b12d21
Merge pull request #30951 from compnerd/cross-module-differentiation-win
...
AutoDiff: repair the cross-module-differentiation on Windows
2020-04-10 14:42:48 -07:00
Michelle Casbon
1c5eaed84d
Add .gyb extension to filename
2020-04-10 21:22:01 +00:00
Suyash Srijan
4688f4de64
[Test] Add a SILGen test to make sure the observers are correctly called
2020-04-10 21:32:28 +01:00
Suyash Srijan
2fbd89dce5
[Typechecker] Simplify StorageImplInfo code in finishPropertyWrapperImplInfo and check for AccessorKind in synthesizeCoroutineAccessorBody
2020-04-10 21:31:23 +01:00