Skip to content

Porting to cygwin #1010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
633 commits
Select commit Hold shift + click to select a range
db23757
Add changelog entry for SE-0020 implementation in Swift 2.2.
bitjammer Jan 22, 2016
8da10e3
SILGen: Minimal workaround for multiple-emission bug with Clang-impor…
jckarter Jan 22, 2016
2910d54
Fix <rdar://problem/24267414> QoI: error: cannot convert value of typ…
lattner Jan 22, 2016
f102876
Improve diagnostics for unbound archetypes coming from a type, to ind…
lattner Jan 22, 2016
70c20b3
Merge pull request #1041 from practicalswift/typo-fixes-20160121b
lattner Jan 22, 2016
d71b145
Build fix: missing include in Version.h
bitjammer Jan 22, 2016
0965907
[docs] LibraryEvolution: Drop the term "availability-pinned"
jrose-apple Jan 21, 2016
2161cca
[docs] LibraryEvolution: Fill out "Fixed-Layout Structs".
jrose-apple Jan 22, 2016
bd12f0c
[docs] LibraryEvolution: Be more precise about "public".
jrose-apple Jan 22, 2016
da7326b
[docs] LibraryEvolution: All public entities must be versioned.
jrose-apple Jan 22, 2016
e70d772
Use hex literals for field record flags.
bitjammer Jan 22, 2016
c24099c
[sourcekit] Add the version to the XPC service identifier so that it …
akyrtzi Jan 22, 2016
0188258
SILGen: Move even more abstraction patterns over to interface types, NFC
slavapestov Jan 21, 2016
e35e30a
SILGen: Orient witness and vtable thunk emission toward interface typ…
slavapestov Jan 21, 2016
8954f3c
Rename the two Verifier.cpp files to ASTVerifier.cpp and SIL/SILVerif…
lattner Jan 22, 2016
f9caa46
Merge pull request #1040 from practicalswift/swiftc-28222-swift-typec…
gribozavr Jan 22, 2016
31b97bc
Revert "SILGen: Move even more abstraction patterns over to interface…
rudkx Jan 22, 2016
b8b70b0
Fix typo in getCurrentLanguageVersion doc comment
bitjammer Jan 22, 2016
c75f443
Sema: Better fix for duplicate emission of accessors
slavapestov Jan 22, 2016
97b4a08
Remove stale reference to swift-compress
gribozavr Jan 22, 2016
2b30193
[SR-69][Sema] Improved quality of diagnoses messages
gregomni Jan 22, 2016
33312ea
[gardening] Remove unreachable/unused/redundant code
practicalswift Jan 21, 2016
4a7ec83
Merge pull request #1039 from practicalswift/remove-unused-cpp
gribozavr Jan 22, 2016
d062340
[swiftc] Add test case for crash triggered in swift::Type::transform(…
practicalswift Jan 22, 2016
222424c
Merge pull request #1043 from practicalswift/swiftc-28223-swift-type-…
gribozavr Jan 22, 2016
16ec9e6
[gardening] Make parameter name in forward declaration match name in …
practicalswift Jan 22, 2016
06154e1
[swiftc] Add test case for crash triggered in swift::GenericFunctionT…
practicalswift Jan 22, 2016
b18a47c
Merge pull request #1045 from practicalswift/swiftc-28224-swift-gener…
gribozavr Jan 22, 2016
fc6c313
Merge pull request #1044 from practicalswift/forward-decl
gribozavr Jan 22, 2016
d72d808
Merge pull request #838 from austinzheng/az-port-mirror
Jan 22, 2016
351851b
[swiftc] Add test case for crash triggered in swift::TypeChecker::che…
practicalswift Jan 22, 2016
b697a20
Check for nearness to bound type when generic arg doesn't match
gregomni Jan 22, 2016
8917eb0
Revert "[Runtime][StdLib] Migrate mirrors to use CustomReflectable AP…
rudkx Jan 22, 2016
05ebb02
Add a slightly less close than CC_OneArgumentMismatch closeness.
gregomni Jan 22, 2016
8d77b94
Get the alignment correct for subclasses of AvailabilitySpec.
jrose-apple Jan 22, 2016
9aba844
Re-apply "SILGen: Move even more abstraction patterns over to interfa…
slavapestov Jan 22, 2016
3eb6581
SIL: Don't drop isNoReturn() bit in getFunctionInterfaceTypeWithCaptu…
slavapestov Jan 22, 2016
96c6c2e
SIL: Remove unused parameters from getUncachedSILFunctionTypeForConst…
slavapestov Jan 21, 2016
da4af64
SIL: Rip out constantInfo.{FormalType,LoweredType}, NFC
slavapestov Jan 21, 2016
0a138c1
SILGen: Remove PolymorphicFunctionType usage from materializeForSet e…
slavapestov Jan 22, 2016
5f29594
Revert "Reinstate "Compile StdlibUnittest with -sil-serialize-all."""
jopamer Jan 22, 2016
a2685b4
Add variable length 7-bit integer encoder/decoder
bitjammer Jan 22, 2016
6723acc
Use TypeExpr::getInstanceType to simplify some code, NFC.
lattner Jan 22, 2016
c64b78c
When doing name lookups for diagnostics, use NameLookupFlags::KnownPr…
lattner Jan 22, 2016
37032b2
Take first steps towards simplifying the constraint graph by performi…
jopamer Dec 3, 2015
5afd794
Slightly improve logging for overload resolution.
jopamer Dec 4, 2015
c8ac294
- Consider parameter bindings
jopamer Dec 6, 2015
fb03b79
Pave the way for contracting edges between closure parameter bindings.
jopamer Dec 6, 2015
33bbe2c
Account for generated constraints when removing edges from the constr…
jopamer Dec 8, 2015
762fc2a
- Do not update the work list whilst contracting edges.
jopamer Dec 14, 2015
0e149db
Being updating LinkedExprAnalyzer to work with the edge contractor.
jopamer Dec 16, 2015
e3752c0
In the LinkedExprAnalyzer, merge equivalence classes directly, rather
jopamer Dec 17, 2015
3aeed27
Introduce more refinements to how certain linked expr kinds are analy…
jopamer Dec 17, 2015
5f9d3f8
When deciding whether to favor an overload binding constraint for a b…
jopamer Dec 17, 2015
995913e
Begin favoring the expected types of closures with single-expression …
jopamer Dec 19, 2015
de3d8a5
More effectively simplify constraint graphs for nested binary express…
jopamer Jan 13, 2016
0b6b301
Reinstate code that was dropped during a rebase operation.
jopamer Jan 14, 2016
bbf0c1e
Introduce limited support for subtype constraint contractions, with s…
jopamer Jan 20, 2016
e9c44f2
Resolve three crashers that were fixed by the last set of changes.
jopamer Jan 20, 2016
a59e787
- When simplifying constraint systems generated for deeply nested bin…
jopamer Jan 21, 2016
7c7e1cc
[gardening] Fix recently introduced typos
practicalswift Jan 22, 2016
f353f2a
Merge pull request #1049 from practicalswift/typo-fixes-20160122
gribozavr Jan 22, 2016
f7b5536
Merge pull request #1046 from practicalswift/swiftc-28225-swift-typec…
gribozavr Jan 22, 2016
e15d08e
Merge pull request #1042 from gregomni/sr-69
lattner Jan 22, 2016
7bb053e
Enhance performMemberLookup/lookupMemberType to pass down
lattner Jan 22, 2016
83d902a
[swiftc] Add test case for crash triggered in swift::IterativeTypeChe…
practicalswift Jan 22, 2016
7a982d6
[sourcekit] When printing requests/responses make sure to escape the …
akyrtzi Jan 22, 2016
943c20d
[sourcekit] Introduce 'sourcekitd_variant_json_description_copy' for …
akyrtzi Jan 22, 2016
45049f2
[gardening] Fix recently introduced typos
practicalswift Jan 22, 2016
3bd2a8b
Merge pull request #1052 from practicalswift/typo-fixes-20160122b
lattner Jan 22, 2016
47ab2e0
Adjust space in property/subscript declarations
adrfer Jan 22, 2016
41b1fa1
Merge pull request #1050 from practicalswift/swiftc-28226-swift-itera…
gribozavr Jan 22, 2016
ebf38bd
[swiftc] Add test case for crash triggered in swift::TypeChecker::get…
practicalswift Jan 22, 2016
bc8165f
Merge pull request #1055 from practicalswift/swiftc-28227-swift-typec…
gribozavr Jan 22, 2016
83ce5b9
[swiftc] Add test case for crash triggered in swift::DependentGeneric…
practicalswift Jan 22, 2016
29a4f98
Adjust diagnostic to reflect recent constraint solver changes.
jopamer Jan 22, 2016
516913d
[gardening] Use the idiomatic convention of naming unused variables "_"
practicalswift Jan 22, 2016
3aa2598
[gardening] Remove unused enumerate(…) call
practicalswift Jan 22, 2016
5b25318
[sourcekit/test] Remove absolute paths for the test output of SourceK…
akyrtzi Jan 22, 2016
32121ec
Pending further work, do not contract related parameter binding const…
jopamer Jan 22, 2016
b4992f2
Merge pull request #1047 from practicalswift/pythonic-handling-of-unu…
jrose-apple Jan 22, 2016
b29bdd4
[vim] support for more keywords
Jan 22, 2016
c5592e6
Library evolution tests: split up struct_add_remove_properties into m…
slavapestov Jan 23, 2016
14c9329
Library evolution tests: preliminary tests for resiliently-sized classes
slavapestov Jan 23, 2016
c72b337
Fix SR-599 - Function with unresolved generic diagnosed as property
lattner Jan 23, 2016
59a2e2a
Library evolution tests: add test for changing body of a transparent …
slavapestov Jan 23, 2016
e6cbebe
Revert "Adjust space in property/subscript declarations"
adrfer Jan 23, 2016
50749df
Re-enable contractions for parameter binding constraints between iden…
jopamer Jan 23, 2016
716d0d7
Add a build option to compiler StdlibUnittest with -sil-serialize-all
eeckstein Jan 23, 2016
554b7d0
Fix SR-596 - Compiler crashes when accesing a non-existent property o…
lattner Jan 23, 2016
63b2f10
build presets: run tests in optimized modes for a Release standard li…
gribozavr Jan 23, 2016
5e1579d
Merge pull request #1056 from practicalswift/swiftc-28228-swift-depen…
gribozavr Jan 23, 2016
59e0b2d
Fix rdar://21311590 QoI: Inconsistent diagnostics when no constructor…
lattner Jan 23, 2016
e6be430
Adjust space in property/subscript declarations
adrfer Jan 23, 2016
cd731df
Eliminate the argsHaveTrailingClosure argument to evaluateCloseness
lattner Jan 23, 2016
2d91146
Implement <rdar://22207630> QoI: UncurriedCandidate should handle Clo…
lattner Jan 23, 2016
cd10e23
Merge pull request #1054 from adrfer/master
gribozavr Jan 23, 2016
32154de
fix typo
m4rr Jan 23, 2016
39b51b7
Merge pull request #1059 from m4rr/patch-1
vedantk Jan 23, 2016
995506a
Improve the generic "expression...is ambiguous without more context" …
lattner Jan 23, 2016
fb0d6ce
add another fixme to the testsuite.
lattner Jan 23, 2016
f0377be
Fix <rdar://problem/22753605> QoI: bad diagnostic when closure has de…
lattner Jan 23, 2016
e4a66ee
[swiftc] Add test case for crash triggered in swift::ValueDecl::getIn…
practicalswift Jan 23, 2016
189a183
[gardening] Fix recently introduced typo
practicalswift Jan 23, 2016
1cd4d4e
[gardening] Fix violations of non-controversial PEP8 rules
practicalswift Jan 17, 2016
052318e
Merge pull request #1062 from practicalswift/typo-fixes-20160123
gribozavr Jan 23, 2016
1fd79c2
Merge pull request #1060 from practicalswift/swiftc-28229-swift-value…
gribozavr Jan 23, 2016
ca9e488
[gardening] Add "-*- swift -*-" to *.swift.gyb. Remove from *.swift.
practicalswift Jan 23, 2016
2ad7d97
Merge pull request #1064 from practicalswift/add-swift-marker
gribozavr Jan 23, 2016
d93b984
[swiftc] Add test case for crash triggered in swift::constraints::Con…
practicalswift Jan 23, 2016
a3f857c
[gardening] Add "-*- C++ -*-" to header files currently missing it
practicalswift Jan 23, 2016
8efa5f5
[gardening] Remove "-*- C++ -*-" tag from .cpp files
practicalswift Jan 23, 2016
0d40662
[gardening] Consistent use of header pattern
practicalswift Jan 23, 2016
df9bd8a
Merge pull request #1066 from practicalswift/cpp-marker-in-headers
lattner Jan 23, 2016
28b71e1
Fix two regressions on the validation tests. We're passing down defa…
lattner Jan 23, 2016
160efd1
Updated constraints and docs for popFirst/popLast. Added tests.
tanadeau Jan 22, 2016
8b5298e
Fix release build warnings about uninitialized variables.
rudkx Jan 23, 2016
638a7c9
[gardening] Avoid "var == true" and "var == false"
practicalswift Jan 23, 2016
119d501
Fix lowercase 'Void'
m4rr Jan 23, 2016
9dd87e6
Merge pull request #1067 from practicalswift/bools
lattner Jan 23, 2016
b12f085
Merge pull request #1068 from m4rr/patch-1
lattner Jan 23, 2016
64f6453
Recent changes fixed <rdar://19215114> QoI: Poor diagnostic when we a…
lattner Jan 23, 2016
3abfaff
Dump the trailing newline on the given stream
JaSpa Jan 23, 2016
8b84036
tab -> space
eeckstein Jan 23, 2016
885dfde
build presets: compile StdlibUnittest with -sil-serialize-all for tes…
eeckstein Jan 23, 2016
77a1a15
[gardening] Avoid unnamed parameters. Use same names as in definition.
practicalswift Jan 23, 2016
e9d1857
Fix rdar://21783216 QoI: Cannot convert {TYPE} to {SAME TYPE}
lattner Jan 23, 2016
5699bc6
Merge pull request #1003 from practicalswift/adhere-to-subset-of-pep8…
tkremenek Jan 24, 2016
fd87391
Merge pull request #1057 from tanadeau/sr-538
gribozavr Jan 24, 2016
677a235
Merge pull request #1065 from practicalswift/swiftc-28231-swift-const…
gribozavr Jan 24, 2016
ac5f44e
SILGen: Fix materializeForSet for observing accessors
slavapestov Jan 24, 2016
ec06e81
SIL: Start plumbing ResilienceExpansion through SIL type lowering
slavapestov Jan 23, 2016
f194640
[gardening] Fix recently introduced typo
practicalswift Jan 24, 2016
2d2fb22
[gardening] PEP8: Fix remaining "missing whitespace around arithmetic…
practicalswift Jan 24, 2016
19af9e8
[swiftc] Add test case for crash triggered in swift::TypeChecker::typ…
practicalswift Jan 24, 2016
9c9191e
Merge pull request #1073 from practicalswift/swiftc-28232-swift-typec…
gribozavr Jan 24, 2016
5692cd2
Merge pull request #1072 from practicalswift/typo-fixes-20160124
gribozavr Jan 24, 2016
04ae052
[swiftc] Add test case for crash triggered in swift::TypeBase::getMem…
practicalswift Jan 24, 2016
25c916e
PEP8: Fix all violations of type "missing whitespace after ':'" (E231)
practicalswift Jan 24, 2016
4fbc28c
PEP8: Fix all violations of type "continuation line with same indent …
practicalswift Jan 24, 2016
1ac7075
Merge pull request #1074 from practicalswift/swiftc-28233-swift-typeb…
gribozavr Jan 24, 2016
84a3118
PEP8: Fix all violations of type "missing whitespace after ','" (E231)
practicalswift Jan 24, 2016
3345256
PEP8: Fix violations of type "continuation line under-indented for ha…
practicalswift Jan 24, 2016
d779842
Add "noqa" marker and corresponding TODO for PEP8 violation that span…
practicalswift Jan 24, 2016
d021aed
PEP8: Fix all violations of type "too many blank lines" (E303)
practicalswift Jan 24, 2016
679f185
PEP8: Fix all violations of type "at least two spaces before inline c…
practicalswift Jan 24, 2016
77103db
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 24, 2016
eedb0aa
Merge pull request #1077 from practicalswift/swiftc-28234-swift-arche…
gribozavr Jan 24, 2016
e06e27a
Merge pull request #1076 from practicalswift/non-controversial-pep8
gribozavr Jan 24, 2016
d7bdf55
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 24, 2016
a9bd064
Merge pull request #1078 from practicalswift/swiftc-28235-swift-arche…
gribozavr Jan 24, 2016
0cb9573
Bring .gyb files in line with rest of code base in terms of PEP8 comp…
practicalswift Jan 24, 2016
02d9c3e
[swiftc] Add test case for crash triggered in swift::TypeChecker::typ…
practicalswift Jan 24, 2016
e0fdba9
[gardening] Avoid unnecessary list comprehensions
practicalswift Jan 24, 2016
4b0571b
[gardening] Fix documentation typos
practicalswift Jan 24, 2016
1f0643f
Correctly resolve associated types in nested protocols
JaSpa Jan 24, 2016
c1a746b
[build-script] There can only be one host target
modocache Jan 12, 2016
72dd6f0
Merge pull request #1070 from JaSpa/dump-ostream
lattner Jan 24, 2016
2f3aa90
Merge pull request #1071 from practicalswift/matching-parameter-names
lattner Jan 24, 2016
03cd2a4
Merge pull request #1080 from practicalswift/swiftc-28236-swift-typeb…
lattner Jan 24, 2016
4023896
Merge pull request #1082 from practicalswift/fix-documentation-typos-ii
lattner Jan 24, 2016
ca46695
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 24, 2016
c97a76f
[Serialization] Add failing test creating extension for nested Type t…
NachoSoto Dec 13, 2015
44936e5
[Serialization] Add failing test instantiating value of type X.Type
NachoSoto Dec 14, 2015
71e00fe
[gardening] Fix typos: "word word" (two spaces) → "word word" (one s…
practicalswift Jan 24, 2016
ce69f1d
Decl attr applied to type check now more rigorous
SquaredTiki Jan 13, 2016
73b1d08
[gardening] Fix typos: "word word" (three spaces) → "word word" (on…
practicalswift Jan 24, 2016
3094ca9
Merge pull request #1081 from practicalswift/unnecessary-list-compreh…
gribozavr Jan 24, 2016
c00e9ed
Merge pull request #1087 from practicalswift/double-spaces
gribozavr Jan 24, 2016
4d1f00e
Merge pull request #1085 from practicalswift/swiftc-28237-swift-arche…
gribozavr Jan 24, 2016
f6adbb6
Merge pull request #948 from modocache/build-script-host-target
gribozavr Jan 25, 2016
a577043
Merge pull request #527 from NachoSoto/type-extension
lattner Jan 25, 2016
782a871
SILGen: Clean up some code to use getRValueInstanceType() instead of …
slavapestov Jan 25, 2016
7fad03d
Sema: Use accessors on members of resilient value types from within @…
slavapestov Jan 23, 2016
63d0331
[swiftc] Add test case for crash triggered in swift::TypeChecker::val…
practicalswift Jan 25, 2016
c4ee22c
Added a test to check the fix-it works correctly
SquaredTiki Jan 25, 2016
d16e4b0
[CodeCompletion] Add rudimentary support for configuring allowable co…
benlangmuir Jan 23, 2016
924cc48
Add side effects for fix_lifetime
aschwaighofer Jan 20, 2016
b30f9fe
Dictionary: More guaranteedNative fast paths
aschwaighofer Jan 21, 2016
ce10cc7
A dictionary must be native if *either* the key *or* the value is gua…
aschwaighofer Jan 25, 2016
2eb028b
[test] Mark tests unsupported on all Linux flavors
modocache Jan 25, 2016
5a951f9
Merge pull request #1090 from modocache/serialization-autolinking-uns…
gribozavr Jan 25, 2016
daa2976
Merge pull request #1091 from practicalswift/swiftc-28238-swift-typec…
gribozavr Jan 25, 2016
1383612
Projection: project_box is an address projection
eeckstein Jan 25, 2016
b745691
SIL refactoring: Move some functions out of SILValue and Operand
eeckstein Jan 25, 2016
015004e
[SR-610][stdlib] Use _initialize_to in _copyCollectionToNativeArrayBu…
lorentey Jan 24, 2016
24b5c4c
Move logic into one place by merging the first loop into the second
JaSpa Jan 25, 2016
d791213
Merge pull request #1083 from JaSpa/cleanup-resolveTypeInContext
slavapestov Jan 25, 2016
14d6054
tests: workaround for rdar://problem/24330686
eeckstein Jan 25, 2016
c8ad360
[gardening] Fix recently introduced typo
practicalswift Jan 25, 2016
7573302
[swiftc] Add test case for crash triggered in swift::DeclContext::loo…
practicalswift Jan 25, 2016
fb301fd
Merge pull request #1092 from practicalswift/typo-fixes-20160125
gribozavr Jan 25, 2016
57209b1
Merge pull request #1079 from practicalswift/pep8-fixes-for-gyb-files
gribozavr Jan 25, 2016
eb25fe4
Merge pull request #1093 from practicalswift/swiftc-28239-swift-declc…
gribozavr Jan 25, 2016
735eddc
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 25, 2016
b0fff50
Merge pull request #1094 from practicalswift/swiftc-28240-swift-arche…
gribozavr Jan 25, 2016
90c84cd
[swiftc] Add test case for crash triggered in swift::ValueDecl::isAcc…
practicalswift Jan 25, 2016
c6305a3
Merge pull request #1095 from practicalswift/swiftc-28241-swift-value…
gribozavr Jan 25, 2016
df0fd36
[Coverage] Fix function mapping record emission
vedantk Jan 25, 2016
8336419
Include completion source location information compound DeclNames.
DougGregor Jan 25, 2016
f18c843
SIL: remove unneeded includes
eeckstein Jan 25, 2016
5a53b31
SIL: remove use-iteration functions from SILValue.
eeckstein Jan 25, 2016
506ab98
SIL: remove getTyp() from SILValue
eeckstein Jan 25, 2016
845b3fe
SIL: remove isValid() from SILValue. NFC
eeckstein Jan 25, 2016
d3c9753
SIL: remove dump and print from SILValue
eeckstein Jan 25, 2016
aef0a11
remove some unneeded forward declearations
eeckstein Jan 25, 2016
74d44b7
SIL: remove SILValue::getDef and add a cast operator to ValueBase * a…
eeckstein Jan 25, 2016
ae920a4
Changes required for ReconstructType to be able to reconstruct types …
Jan 25, 2016
66cf479
Add an API that exactly mimics LLDB's GetTypeFromMangledTypename but …
Jan 25, 2016
544a8ef
Merge pull request #1084 from lorentey/sr-610
gribozavr Jan 26, 2016
deac756
CMake: remove stale comment
gribozavr Jan 26, 2016
2fdc875
Merge pull request #1088 from SquaredTiki/sr215-fix
gribozavr Jan 26, 2016
9e3f23f
Regenerate the generated files after the generator script was updated
gribozavr Jan 26, 2016
873e023
[docs] LibraryEvolution: Move "Versioning Internal Decls" to the end.
jrose-apple Jan 25, 2016
812dbbb
[docs] LibraryEvolution: Eliminate the @fixed property attribute.
jrose-apple Jan 25, 2016
9df9ee9
[docs] LibraryEvolution: Weaken "fixed-layout" structs to "fixed-cont…
jrose-apple Jan 25, 2016
4f4ec2c
[docs] LibraryEvolution: Bring back "fixed-size" as a perf assertion.
jrose-apple Jan 26, 2016
d046d88
Revert "[Parser] Fix-it for declaration attributes being applied to p…
gribozavr Jan 26, 2016
4f32fda
Merge pull request #1098 from apple/revert-1088-sr215-fix
gribozavr Jan 26, 2016
c497ea9
Revert "[SR-610][Stdlib] Use for-in to iterate over CollectionType el…
gribozavr Jan 26, 2016
c212e76
Merge pull request #1099 from apple/revert-1084-sr-610
gribozavr Jan 26, 2016
1ad89fb
[CMake] Always use @rpath for XCTest
benlangmuir Jan 26, 2016
546471a
Port dead store elimination and redundant load elimination to use the…
trentxintong Jan 26, 2016
4084c23
Refactor redundant load elimination. NFC
trentxintong Jan 26, 2016
f5bd3ea
Optimize compilation time for RLE and DSE with respective
trentxintong Jan 26, 2016
5034e5b
Add in some throttle logic for RLE. This is mostly intended for funct…
trentxintong Jan 26, 2016
8a1dd8a
Optimize how most derived type is computed in the new projection path…
trentxintong Jan 26, 2016
e7ebfb6
[SR-510] Make closure as enum raw value parses as normal
dduan Jan 15, 2016
339cd94
Port self cycle redundant load test case for the new RLE
trentxintong Jan 26, 2016
22a6910
Remove test/SILOptimizer/global_lsopts_crash.sil and move its test to…
trentxintong Jan 26, 2016
ebcabd7
Merge pull request #987 from dduan/SR-510-3
jrose-apple Jan 26, 2016
2dfab70
fix <rdar://24314506> QoI: Fix-it for dictionary initializer on requi…
lattner Jan 26, 2016
e983501
Don't error when lexing UTF-8 BOM
tanadeau Jan 26, 2016
22e5ad8
Merge pull request #1100 from tanadeau/sr-615
lattner Jan 26, 2016
b5694e9
fix 28241-swift-valuedecl-isaccessiblefrom.swift
lattner Jan 26, 2016
8654282
fix 28239-swift-declcontext-lookupqualified.swift, module lookup can …
lattner Jan 26, 2016
54d438e
Fix small typos in build-script help
sryze Jan 26, 2016
1ff8c03
Merge pull request #1101 from sryze/master
gribozavr Jan 26, 2016
2b02b0f
Pretty up this testcase, NFC.
lattner Jan 26, 2016
b939fde
IRGen: Refactor away MetadataAccessStrategy::Direct, NFC
slavapestov Jan 26, 2016
deadb2b
[gardening] Fix recently introduced typo: "polymorhpic" → "polymorphic"
practicalswift Jan 26, 2016
b8bac20
Merge pull request #1102 from practicalswift/typo-fixes-20160126
lattner Jan 26, 2016
bb2391a
Add -strip-field-names and -strip-field-metadata IRGen options
bitjammer Jan 23, 2016
aa57b74
Stub out FieldDescriptor LLVM type
bitjammer Jan 25, 2016
640cefd
IRGen FieldRecordFlags: Use already-defined Ownership type
bitjammer Jan 26, 2016
5f25606
Add 8-bit constant capabilities to ConstantBuilder
bitjammer Jan 26, 2016
ca1804f
IRGen: Add helper methods to get field metadata and field name sections
bitjammer Jan 26, 2016
51ee08e
IRGen: Add getAddrOfFieldNames helper
bitjammer Jan 26, 2016
ba8a669
Porting to Cygwin
tinysun212 Jan 17, 2016
6dfd69f
After rebase, some more paches needed.
tinysun212 Jan 26, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
53 changes: 51 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
Latest
------

Swift 3
-------

* Curried function syntax has been removed, and now produces a compile-time
error.


Swift 2.2
---------

* Associated types in protocols can now be specified with a new 'associatedtype'
declaration, to replace the use of 'typealias':

protocol P {
associatedtype Ty
}

The typealias keyword is still allowed (but deprecated and produces a warning)
in Swift 2.2. This warning will become an error in Swift 3.

* Curried function syntax has been deprecated, and is slated to be removed in
Swift 3.

* The ++ and -- operators have been deprecated, and are slated to be removed in
Swift 3.0. As a replacement, please use "x += 1" on integer or floating point
Expand Down Expand Up @@ -104,6 +125,34 @@ Latest

**(rdar://problem/21930334)**

* When referencing a function or initializer, one can provide the
complete name, including argument labels. For example:

let fn1 = someView.insertSubview(_:at:)
let fn2 = someView.insertSubview(_:aboveSubview:)

let buttonFactory = UIButton.init(type:)

For more information, see [SE-0021](https://github.com/apple/swift-evolution/blob/master/proposals/0021-generalized-naming.md).

* There is a new build configuration function, `#if swift(>=x.y)`, which
tests if the current Swift language version is at least `x.y`. This
allows you to conditionally compile code for multiple language
versions in the same file, even with different syntax, by deactivating
parsing in inactive code blocks. For example:

```swift
#if swift(>=2.2)
// Only this code will be parsed in Swift 3
func foo(x: Int) -> (y: Int) -> () {}
#else
// This code is ignored entirely.
func foo(x: Int)(y: Int) {}
#endif
```

For more information, see [SE-0020](https://github.com/apple/swift-evolution/blob/master/proposals/0020-if-swift-version.md).

2015-09-17 [Xcode 7.1, Swift 2.1]
----------

Expand Down
30 changes: 28 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_policy(SET CMP0054 NEW)

# Add path for custom CMake modules.
list(APPEND CMAKE_MODULE_PATH
Expand Down Expand Up @@ -28,6 +29,10 @@ option(SWIFT_STDLIB_ASSERTIONS
"Enable internal checks for the Swift standard library (useful for debugging the library itself, does not affect checks required for safety)"
"${SWIFT_STDLIB_ASSERTIONS_default}")

option(SWIFT_SERIALIZE_STDLIB_UNITTEST
"Compile the StdlibUnittest module with -sil-serialize-all to increase the test coverage for the optimizer"
FALSE)

option(SWIFT_BUILD_TOOLS
"Build the Swift compiler and other tools"
TRUE)
Expand All @@ -54,7 +59,7 @@ option(SWIFT_INCLUDE_DOCS
"Create targets for building docs."
TRUE)

set(SWIFT_VERSION "2.2" CACHE STRING
set(SWIFT_VERSION "3.0" CACHE STRING
"The user-visible version of the Swift compiler")
set(SWIFT_VENDOR "" CACHE STRING
"The vendor name of the Swift compiler")
Expand Down Expand Up @@ -154,7 +159,7 @@ option(SWIFT_AST_VERIFIER
"Enable the AST verifier in the built compiler, and run it on every compilation"
TRUE)

option(SWIFT_VERIFY_ALL
option(SWIFT_SIL_VERIFY_ALL
"Run SIL verification after each transform when building Swift files in the build process"
FALSE)

Expand Down Expand Up @@ -403,6 +408,14 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "aarch64" "aarch64-unknown-linux-gnu")
set(SWIFT_HOST_VARIANT_ARCH "aarch64")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "aarch64")
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "powerpc64" "powerpc64-unknown-linux-gnu")
set(SWIFT_HOST_VARIANT_ARCH "powerpc64")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "powerpc64")
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64le")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "powerpc64le" "powerpc64le-unknown-linux-gnu")
set(SWIFT_HOST_VARIANT_ARCH "powerpc64le")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "powerpc64le")
else()
message(FATAL_ERROR "Unknown or unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
Expand All @@ -425,6 +438,19 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")

set(SWIFT_PRIMARY_VARIANT_SDK_default "FREEBSD")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "x86_64")
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "CYGWIN")
configure_sdk_unix(CYGWIN "Cygwin" "windows" "cygwin" "x86_64" "x86_64-unknown-windows-cygnus")

# set(CMAKE_EXECUTABLE_FORMAT "ELF")

set(SWIFT_HOST_VARIANT "windows" CACHE STRING
"Deployment OS for Swift host tools (the compiler) [windows].")

set(SWIFT_HOST_VARIANT_SDK "CYGWIN")
set(SWIFT_HOST_VARIANT_ARCH "x86_64")

set(SWIFT_PRIMARY_VARIANT_SDK_default "CYGWIN")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "x86_64")
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
# Set defaults.

Expand Down
52 changes: 42 additions & 10 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function(compute_library_subdir result_var_name sdk arch)
set("${result_var_name}" "${SWIFT_SDK_${sdk}_LIB_SUBDIR}/${arch}" PARENT_SCOPE)
endfunction()


function(_add_variant_c_compile_link_flags
sdk arch build_type enable_assertions result_var_name)
sdk arch build_type enable_assertions analyze_code_coverage
result_var_name)
set(result
${${result_var_name}}
"-target" "${SWIFT_SDK_${sdk}_ARCH_${arch}_TRIPLE}")
Expand All @@ -62,20 +62,27 @@ function(_add_variant_c_compile_link_flags
"-arch" "${arch}"
"-F" "${SWIFT_SDK_${sdk}_PATH}/../../../Developer/Library/Frameworks"
"-m${SWIFT_SDK_${sdk}_VERSION_MIN_NAME}-version-min=${SWIFT_SDK_${sdk}_DEPLOYMENT_VERSION}")

if(analyze_code_coverage)
list(APPEND result "-fprofile-instr-generate=swift-%p.profraw"
"-fcoverage-mapping")
endif()
endif()

set("${result_var_name}" "${result}" PARENT_SCOPE)
endfunction()

function(_add_variant_c_compile_flags
sdk arch build_type enable_assertions result_var_name)
sdk arch build_type enable_assertions analyze_code_coverage
result_var_name)
set(result ${${result_var_name}})

_add_variant_c_compile_link_flags(
"${sdk}"
"${arch}"
"${build_type}"
"${enable_assertions}"
FALSE
result)

is_build_type_optimized("${build_type}" optimized)
Expand Down Expand Up @@ -103,6 +110,11 @@ function(_add_variant_c_compile_flags
list(APPEND result "-DNDEBUG")
endif()

if(analyze_code_coverage)
list(APPEND result "-fprofile-instr-generate=swift-%p.profraw"
"-fcoverage-mapping")
endif()

set("${result_var_name}" "${result}" PARENT_SCOPE)
endfunction()

Expand Down Expand Up @@ -139,7 +151,8 @@ function(_add_variant_swift_compile_flags
endfunction()

function(_add_variant_link_flags
sdk arch build_type enable_assertions result_var_name)
sdk arch build_type enable_assertions analyze_code_coverage
result_var_name)

if("${sdk}" STREQUAL "")
message(FATAL_ERROR "Should specify an SDK")
Expand All @@ -156,12 +169,15 @@ function(_add_variant_link_flags
"${arch}"
"${build_type}"
"${enable_assertions}"
"${analyze_code_coverage}"
result)

if("${sdk}" STREQUAL "LINUX")
list(APPEND result "-lpthread" "-ldl")
list(APPEND result "-lpthread" "-ldl" "-Wl,-Bsymbolic")
elseif("${sdk}" STREQUAL "FREEBSD")
list(APPEND result "-lpthread")
list(APPEND result "-lpthread" "-Wl,-Bsymbolic")
elseif("${sdk}" STREQUAL "CYGWIN")
# No extra libraries required.
else()
list(APPEND result "-lobjc")
endif()
Expand Down Expand Up @@ -298,7 +314,7 @@ function(_compile_swift_files dependency_target_out_var_name)
# Don't include libarclite in any build products by default.
list(APPEND swift_flags "-no-link-objc-runtime")

if(SWIFT_VERIFY_ALL)
if(SWIFT_SIL_VERIFY_ALL)
list(APPEND swift_flags "-Xfrontend" "-sil-verify-all")
endif()

Expand Down Expand Up @@ -770,6 +786,11 @@ function(_add_swift_library_single target name)
endif()
endif()

if (SWIFT_COMPILER_VERSION)
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(SWIFTLIB_SINGLE_LINK_FLAGS "${SWIFTLIB_SINGLE_LINK_FLAGS}" "-Xlinker" "-current_version" "-Xlinker" "${SWIFT_COMPILER_VERSION}" "-Xlinker" "-compatibility_version" "-Xlinker" "1")
endif()
endif()

if(XCODE)
string(REGEX MATCHALL "/[^/]+" split_path ${CMAKE_CURRENT_SOURCE_DIR})
Expand Down Expand Up @@ -896,8 +917,12 @@ function(_add_swift_library_single target name)

if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(install_name_dir "@rpath")

if(SWIFTLIB_SINGLE_IS_STDLIB)
set(install_name_dir "${SWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR}")
# Always use @rpath for XCTest.
if(NOT "${module_name}" STREQUAL "XCTest")
set(install_name_dir "${SWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR}")
endif()
endif()

set_target_properties("${target}"
Expand All @@ -907,6 +932,10 @@ function(_add_swift_library_single target name)
set_target_properties("${target}"
PROPERTIES
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/linux")
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Cygwin")
set_target_properties("${target}"
PROPERTIES
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/windows")
endif()

set_target_properties("${target}" PROPERTIES BUILD_WITH_INSTALL_RPATH YES)
Expand Down Expand Up @@ -1041,18 +1070,21 @@ function(_add_swift_library_single target name)
else()
set(build_type "${CMAKE_BUILD_TYPE}")
set(enable_assertions "${LLVM_ENABLE_ASSERTIONS}")
set(analyze_code_coverage "${SWIFT_ANALYZE_CODE_COVERAGE}")
endif()
_add_variant_c_compile_flags(
"${SWIFTLIB_SINGLE_SDK}"
"${SWIFTLIB_SINGLE_ARCHITECTURE}"
"${build_type}"
"${enable_assertions}"
"${analyze_code_coverage}"
c_compile_flags)
_add_variant_link_flags(
"${SWIFTLIB_SINGLE_SDK}"
"${SWIFTLIB_SINGLE_ARCHITECTURE}"
"${build_type}"
"${enable_assertions}"
"${analyze_code_coverage}"
link_flags)

# Handle gold linker flags for shared libraries.
Expand Down Expand Up @@ -1618,14 +1650,14 @@ function(_add_swift_executable_single name)
"${SWIFTEXE_SINGLE_ARCHITECTURE}"
"${CMAKE_BUILD_TYPE}"
"${LLVM_ENABLE_ASSERTIONS}"
FALSE
"${SWIFT_ANALYZE_CODE_COVERAGE}"
c_compile_flags)
_add_variant_link_flags(
"${SWIFTEXE_SINGLE_SDK}"
"${SWIFTEXE_SINGLE_ARCHITECTURE}"
"${CMAKE_BUILD_TYPE}"
"${LLVM_ENABLE_ASSERTIONS}"
FALSE
"${SWIFT_ANALYZE_CODE_COVERAGE}"
link_flags)

list(APPEND link_flags
Expand Down
4 changes: 3 additions & 1 deletion cmake/modules/SwiftSetIfArchBitness.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ function(set_if_arch_bitness var_name)
set("${var_name}" "${SIA_CASE_32_BIT}" PARENT_SCOPE)
elseif("${SIA_ARCH}" STREQUAL "x86_64" OR
"${SIA_ARCH}" STREQUAL "arm64" OR
"${SIA_ARCH}" STREQUAL "aarch64")
"${SIA_ARCH}" STREQUAL "aarch64" OR
"${SIA_ARCH}" STREQUAL "powerpc64" OR
"${SIA_ARCH}" STREQUAL "powerpc64le")
set("${var_name}" "${SIA_CASE_64_BIT}" PARENT_SCOPE)
else()
message(FATAL_ERROR "Unknown architecture: ${SIA_ARCH}")
Expand Down
2 changes: 1 addition & 1 deletion docs/Arrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ to all three of the components.
efficient conversions from Cocoa and back—when ``Element`` can be a class
type, ``Array<Element>`` can be backed by the (potentially non-contiguous)
storage of an arbitrary ``NSArray`` rather than by a Swift
``ContiguousArray``. ``Array<Element>`` also supports up- and down- casts
``ContiguousArray``. ``Array<Element>`` also supports up- and downcasts
between arrays of related class types. When ``Element`` is known to be a
non-class type, the performance of ``Array<Element>`` is identical to that
of ``ContiguousArray<Element>``.
Expand Down
2 changes: 1 addition & 1 deletion docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if(LITRE_EXECUTABLE)
VERBATIM
)

# Only update the real top-level CMakeLists.txt if something changed
# Only update the real top-level CMakeLists.txt if something changed
add_custom_command(
OUTPUT
"litre-tests/CMakeLists.txt"
Expand Down
2 changes: 1 addition & 1 deletion docs/ErrorHandling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ of failability.

One limitation of this approach is that we need to be able to reconstruct
the selector to use when an overload of a method is introduced. For this
reason, the import is likely to be limited to methods where the error
reason, the import is likely to be limited to methods where the error
parameter is the last one and the corresponding selector
chunk is either ``error:`` or the first chunk (see below). Empirically,
this seems to do the right thing for all but two sets of APIs in the
Expand Down
16 changes: 9 additions & 7 deletions docs/ErrorHandlingRationale.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Error Handling Rationale and Proposal
*************************************

.. contents::

This paper surveys the error-handling world, analyzes various ideas
which have been proposed or are in practice in other languages, and
ultimately proposes an error-handling scheme for Swift together
Expand Down Expand Up @@ -636,7 +638,7 @@ of the disadvantages and investigate ways to ameliorate them:

- There are many situations where errors are not actually possible
because the programmer has carefully restricted the input. For
example, matching :code:``/[0-9]{4}/`` and then parsing the result
example, matching ``/[0-9]{4}/`` and then parsing the result
as an integer. It needs to be convenient to do this in a context
that cannot actually propagate errors, but the facility to do this
needs to be carefully designed to discourage use for swallowing
Expand Down Expand Up @@ -1043,9 +1045,9 @@ C++ has exceptions. Exceptions can have almost any type in the
language. Propagation typing is tied only to declarations; an
indirect function pointer is generally assumed to be able to throw.
Propagation typing used to allow functions to be specific about the
kinds of exceptions they could throw (:code:``throws
kinds of exceptions they could throw (``throws
(std::exception)``), but this is deprecated in favor of just indicating
whether a function can throw (:code:``noexcept(false)``).
whether a function can throw (``noexcept(false)``).

C++ aspires to making out-of-memory a recoverable condition, and so
allocation can throw. Therefore, it is essentially compulsory for the
Expand Down Expand Up @@ -1316,16 +1318,16 @@ generalized ``do`` statement::
}

Swift should also provide some tools for doing manual propagation. We
should have a standard Rust-like :code:``Result<T>`` enum in the
should have a standard Rust-like ``Result<T>`` enum in the
library, as well as a rich set of tools, e.g.:

- A function to evaluate an error-producing closure and capture the
result as a :code:``Result<T>``.
result as a ``Result<T>``.

- A function to unpack a :code:``Result<T>`` by either returning its
- A function to unpack a ``Result<T>`` by either returning its
value or propagating the error in the current context.

- A futures library that traffics in :code:``Result<T>`` when
- A futures library that traffics in ``Result<T>`` when
applicable.

- An overload of ``dispatch_sync`` which takes an error-producing
Expand Down
Loading