Sho Ikeda
a35c9f0c60
[gardening] Use Collection.isEmpty over Collection.count
2019-05-26 09:35:20 +09:00
swift-ci
b088acb66e
Merge pull request #24767 from ikesyo/remove-unnecessary-breaks
2019-05-25 16:15:06 -07:00
Sho Ikeda
55b300f852
Fix DataProtocol.lastRange(of:) (and cherry-pick Data.swift changes from swift-5.0-branch)
...
`DataProtocol.lastRange(of:)` is correct in swift-5.0-branch, but not in master and swift-5.1-branch.
2019-05-26 07:26:33 +09:00
Arnold Schwaighofer
0ebdce93e7
Don't add implicit dynamic to local functions.
2019-05-25 14:39:25 -07:00
Brent Royal-Gordon
a60e0e0c84
Add build-script -a/-A to control assertions
...
These are super-important in certain circumstances, paritculalry benchmarking, and deserve a shorthand.
2019-05-25 13:19:20 -07:00
Federico Zanetello
afcf4b6991
fix documentation typo ( #25061 )
swift-DEVELOPMENT-SNAPSHOT-2019-05-25-a
2019-05-25 12:43:49 -05:00
Michael Gottesman
a0421124f0
Merge pull request #25041 from gottesmm/pr-d02a03999626f1d50a4bf0996dadb34e72d9f355
...
[cast-opt] Fix miscompile when we tried to optimize take_on_success t…
2019-05-24 20:48:10 -07:00
Joe Groff
381cf59cf3
Merge pull request #24978 from linux-on-ibm-z/interleave
...
[IRGen] Simplify constant occupied/spare bit interleaving
2019-05-24 18:56:44 -07:00
swift-ci
3033a72050
Merge pull request #25056 from compnerd/typealias
2019-05-24 18:46:55 -07:00
Saleem Abdulrasool
1cede8900e
vim: improve syntax highlighting for typealias
...
This improves the detection of syntax so that the identifier for a
typealias is identified as an identifier, the `=` is identified as a
delimiter, and the type that is aliased is identified as a type.
2019-05-24 17:40:36 -07:00
Xi Ge
a1fe0f5907
Merge pull request #25055 from nkcsgexi/mark-external-extensions
...
swift-api-digester: mark if a type declaration is pulled from an external module
swift-DEVELOPMENT-SNAPSHOT-2019-05-24-a
2019-05-24 17:21:56 -07:00
Xi Ge
92719d6f30
swift-api-digester: mark if a type declaration is pulled from an external module
...
To incorporate extensions to types from other modules, the tool sometimes needs
to pull type declaration from external modules even though these modules
are not under checking. We need a flag to explicitly mark such case.
2019-05-24 16:02:40 -07:00
Xi Ge
6e0d771747
Merge pull request #25039 from nkcsgexi/intro-json-file
...
api-digester: keep track of the introduced platforms and language versions for all APIs
2019-05-24 12:09:07 -07:00
Jordan Rose
f6ee2c74e5
Merge pull request #25043 from jrose-apple/TypeSerializer
...
[Serialization] Factor TypeSerializer out of writeType
2019-05-24 11:05:56 -07:00
Michael Gottesman
94c036ed0f
Merge pull request #25047 from gottesmm/pr-2d0d94e11406687ab9f5ab89af82945941cc9e6e
...
[test] Disable inherits_NSObject.swift on watchOS.
2019-05-24 10:15:51 -07:00
Michael Gottesman
6f42934462
[test] Disable inherits_NSObject.swift on watchOS.
...
This was failing alongside inherits_ObjCClasses.swift (they were failing at the
same time).
Until MikeA has time to look at this disable this as well.
rdar://problem/50898688
2019-05-24 10:14:32 -07:00
Michael Gottesman
ad676857ea
[cast-opt] Fix miscompile when we tried to optimize take_on_success that resulted in invalid IR being emitted.
...
The specific problem here is that we are setting the insertion point of a
SILBuilder and not unsetting it. I fixed the problem by creating a separate
builder so the original builder stays put.
I originally came across this in my work on moving ownership stripping after the
diagnostic passes. This patch fixes it without my other changes to ease
cherry-picking to 5.1.
I also added more test coverage by expanding the test case to also handle
copy_on_success and take_always.
rdar://51093557
2019-05-24 09:58:24 -07:00
Rintaro Ishizaki
6c0806419f
Merge pull request #25008 from owenv/improved_#else_if_diagnostic
...
[Parse] Improve diagnostic and add fixit to correct '#else if' to '#elseif'
2019-05-24 09:38:12 -07:00
swift-ci
d1a1ed1045
Merge pull request #25027 from palimondo/single-table++
2019-05-23 23:51:36 -07:00
Jordan Rose
6296a0e21a
[Serialization] Make sure we handle all decl kinds
...
...well, at least a little more than before. This /still/ isn't as
strong as the switch that used to be here because a subtype of an
existing Decl or Type won't show up, but that's probably still worth
the maintainability (and backtrace) tradeoff.
2019-05-23 21:09:48 -07:00
Jordan Rose
dc1653fe63
[Serialization] Factor out a helper for types that wrap other types
...
...and carry no other information (besides their record code).
No functionality change.
2019-05-23 21:06:14 -07:00
Jordan Rose
f932eafa01
[Serialization] Simplify metatype and function type serialization
...
No functionality change.
2019-05-23 21:06:14 -07:00
Jordan Rose
f89358fc5c
[Serialization] Factor TypeSerializer out of writeType
...
Like the recent change for DeclSerializer. No functionality change,
just making it easier to read.
2019-05-23 21:06:14 -07:00
Argyrios Kyrtzidis
b1b6ce6916
Merge pull request #25033 from akyrtzi/sourcekitd-expose-indent-switch-option
...
[sourcekitd] Expose the indentation option for extra indentation of switch case
2019-05-23 20:48:00 -07:00
Owen Voorhees
901d947478
Improve diagnostic and add fixit to correct '#else if' to 'elseif'
...
Resolves SR-10581
2019-05-23 19:34:21 -07:00
Xi Ge
7b445c3c98
api-digester: keep track of the introduced platforms and language versions for all APIs
...
These fields will be used to diagnose the missing of available
attributes for newly added APIs.
rdar://51089418
2019-05-23 17:23:30 -07:00
Arnold Schwaighofer
b127aac1ce
Merge pull request #24781 from aschwaighofer/fix_some_type_dynamic_replacement
...
Fix dynamic replacement of some type when used with associated types
swift-DEVELOPMENT-SNAPSHOT-2019-05-23-a
2019-05-23 16:36:32 -07:00
Argyrios Kyrtzidis
1dcb1e083a
[sourcekitd] Expose the indentation option for extra indentation of switch case
...
rdar://51079623
2019-05-23 16:21:30 -07:00
swift-ci
06305b2709
Merge pull request #25028 from akyrtzi/utils-build-parser-flexible
2019-05-23 16:04:45 -07:00
Pavol Vaskovic
007d398f4a
[Gardening] ReportFormatter: tying up loose ends
2019-05-24 00:18:44 +02:00
Slava Pestov
0b4309fe09
Merge pull request #25025 from slavapestov/disable-stubs-test-old-macos
...
Disable objc_class_resilience_stubs.swift on macOS 10.9 and 10.10
2019-05-23 18:11:40 -04:00
Joe Groff
eff6c5ae31
Merge pull request #25019 from jckarter/dont-export-equalContexts
...
Runtime: Don't export equalContexts.
2019-05-23 15:08:03 -07:00
Argyrios Kyrtzidis
fbdcd6e737
[utils/build-parser-lib] Provide an option for list of architectures to build the parser library for
2019-05-23 14:58:24 -07:00
Pavol Vaskovic
b3f7996ea7
[benchmark] ReportFormatter: better inline headers
...
Improve inline headers in `single_table` mode to also print labels for the numeric columns.
Sections in the `single_table` are visually distinguished by a separator row preceding the the inline headers.
Separated header label styles for git and markdown modes with UPPERCASE and **Bold** formatting respectively.
Inlined section template definitions.
2019-05-23 23:24:51 +02:00
Slava Pestov
1441ad1ac5
Disable objc_class_resilience_stubs.swift on macOS 10.9 and 10.10
2019-05-23 16:45:18 -04:00
Arnold Schwaighofer
a2b1e34a6f
Merge pull request #24981 from aschwaighofer/fix_assert_prev_dynamic
...
Fix assert
2019-05-23 12:59:50 -07:00
Pavol Vaskovic
73b31006ee
[benchmark] Fix help printing for run_smoke_bench
2019-05-23 21:40:44 +02:00
Pavel Yaskevich
b47215db2f
Merge pull request #25016 from xedin/refactor-fix-reqs
...
[ConstraintSystem] NFC: Unify logic used to fix requirement failures
2019-05-23 12:37:03 -07:00
Mike Ash
20b24c54b5
[Test] Use --allow-empty in crash_without_backtrace[_optimized].swift.
2019-05-23 14:50:08 -04:00
Arnold Schwaighofer
84a68e11e0
Merge pull request #25014 from aschwaighofer/fix_combine_dynamic_function_ref
...
SILCombine: We are not guaranteed to get a function_ref instruction here
2019-05-23 11:41:46 -07:00
Michael Gottesman
dd827d3e53
Merge pull request #25021 from gottesmm/pr-59d7dab90a128af39312bd93726684ff0bb2d038
...
Disable crash_without_backtrace.swift.
2019-05-23 11:40:19 -07:00
Michael Gottesman
195672a201
Disable crash_without_backtrace.swift.
...
rdar://51076215
2019-05-23 11:39:55 -07:00
Slava Pestov
3d4541d251
Merge pull request #25009 from slavapestov/type-checked-constants
...
ClangImporter: Build type-checked AST for constants
2019-05-23 13:52:07 -04:00
Joe Groff
bfc9ba98f8
Runtime: Don't export equalContexts.
...
This should be an internal-only helper.
2019-05-23 10:44:55 -07:00
Pavol Vaskovic
9750581bf5
[benchmark] ReportFormatter: right-align num cols
2019-05-23 19:32:34 +02:00
Jordan Rose
b13bfc62db
Merge pull request #25005 from jrose-apple/DeclSerializer
...
[Serialization] Replace 'switch' in writeDecl with a DeclVisitor
2019-05-23 10:26:40 -07:00
Pavel Yaskevich
b9d360cf73
[ConstraintSystem] NFC: Unify logic used to fix requirement failures
...
There was duplicate code used in `simplifyConformsToConstraint` and
`repairFailures`, both places should be using `fixRequirementFailure`
instead.
2019-05-23 10:24:04 -07:00
Arnold Schwaighofer
44e4e1404d
Merge pull request #25010 from aschwaighofer/implicit_dynamic_fixes
...
Don't use implicit dynamic on declarations if they are transparent or…
2019-05-23 10:01:16 -07:00
swift-ci
e80b965e79
Merge pull request #24996 from apple/update-parseableinterface-tests
2019-05-23 09:51:42 -07:00
Mike Ash
476b2bb1ea
Merge pull request #24989 from mikeash/remote-run-sftp-recursive
...
[Tests] Pass -r to sftp in remote-run.
2019-05-23 12:13:27 -04:00