Max Moiseev
90ef26824f
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-26 15:28:42 -08:00
Argyrios Kyrtzidis
703382701e
[index] Mark unit test methods if the class subclasses XCTestCase.
...
This takes advantage of semantic checking during indexing so that it is more accurate.
2017-01-24 02:30:29 -08:00
Max Moiseev
e1de9fcf0c
More test fixes
2017-01-09 16:17:21 -08:00
Brian Gesiak
926bdfd5ff
[test] Remove extra -serialize-diagnostics
...
The `-serialize-diagnostics-path` option implies
`-serialize-diagnostics`; there's no point in specifying both. Remove
the extra flags from the tests.
2016-09-17 14:04:11 -04: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
Manav Gabhawala
7862f104c9
[Parser] Cleans up parsing of parameter attributes. Implements SE-0053. Fixes SR-979, SR-1020 and cleans up implementation of SE-0003. Provides better fix-its and diagnostics for misplaced 'inout' and prohibits 'var' and 'let' from parameter attributes
2016-03-29 13:55:46 -04:00
David Farler
3f635d04c7
Reinstante var bindings in refutable patterns, except function parameters.
...
This reverts commits: b96e06da44 ,
8f2fbdc93a ,
93b6962478 ,
64024118f4 ,
a759ca9141 ,
3434f9642b ,
9f33429891 ,
47c043e8a6 .
This commit leaves 'var' on function parameters as a warning to be
merged into Swift 2.2. For Swift 3, this will be an error, to be
converted in a follow-up.
2016-01-29 15:27:08 -08:00
Dmitri Gribenko
9d5cbc4428
Revert "Removed the ++ and -- operators"
2015-12-26 12:48:02 +01:00
David Walter
23772b1a21
Merge remote-tracking branch 'apple/master'
...
# Conflicts:
# stdlib/private/SwiftPrivate/ShardedAtomicCounter.swift
# stdlib/public/core/ArrayCast.swift
# stdlib/public/core/Collection.swift
# stdlib/public/core/ContiguousArrayBuffer.swift
# stdlib/public/core/StringBuffer.swift
# stdlib/public/core/StringUnicodeScalarView.swift
# test/1_stdlib/Builtins.swift
# test/1_stdlib/Collection.swift
# test/1_stdlib/ErrorType.swift
# test/1_stdlib/ErrorTypeBridging.swift
# test/1_stdlib/ExistentialCollection.swift
# test/1_stdlib/Float.swift
# test/1_stdlib/Map.swift
# test/1_stdlib/Mirror.swift
# test/1_stdlib/Optional.swift
# test/DebugInfo/arg-debug_value.swift
# test/DebugInfo/closure.swift
# test/DebugInfo/for.swift
# test/DebugInfo/return.swift
# test/Interpreter/availability_weak_linking.swift
# test/Interpreter/break_continue.swift
# test/SILGen/sil_locations.swift
# test/SILGen/statements.swift
# test/SILGen/unreachable_code.swift
# test/SILPasses/definite_init_diagnostics.swift
# test/SILPasses/return.swift
# test/SILPasses/switch.swift
# test/SILPasses/unreachable_code.swift
2015-12-24 13:18:29 +01:00
Daniel Duan
239c6629e9
Remove trailing semi-colons in .swift files
2015-12-20 21:12:11 -08:00
David Walter
ab4c05e47c
Some more
2015-12-07 00:24:35 +01:00
David Farler
8f2fbdc93a
Make function parameters and refutable patterns always immutable
...
All refutable patterns and function parameters marked with 'var'
is now an error.
- Using explicit 'let' keyword on function parameters causes a warning.
- Don't suggest making function parameters mutable
- Remove uses in the standard library
- Update tests
rdar://problem/23378003
2015-11-09 16:56:13 -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