Skip to content

Commit 983bfbb

Browse files
author
David Ungar
authored
---
yaml --- r: 349286 b: refs/heads/master-next c: ea81fdc h: refs/heads/master
1 parent f26bdeb commit 983bfbb

File tree

353 files changed

+10090
-4076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+10090
-4076
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 4bc40303388691e33716eaf70d24ae568c9cf432
3+
refs/heads/master-next: ea81fdc7d8f88c7fced4b189c0de2175fafe7780
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Swift Next
8181
mutableSelf.someProperty = newValue // Okay
8282
}
8383
}
84-
```
84+
```
8585

8686
* [SE-0253][]:
8787

@@ -145,6 +145,8 @@ Swift Next
145145
Swift 5.1
146146
---------
147147

148+
### 2019-09-20 (Xcode 11.0)
149+
148150
* [SR-8974][]:
149151

150152
Duplicate tuple element labels are no longer allowed, because it leads

branches/master-next/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,7 @@ if(SWIFT_NEED_EXPLICIT_LIBDISPATCH)
996996
-DCMAKE_CXX_COMPILER=${SWIFT_LIBDISPATCH_CXX_COMPILER}
997997
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
998998
-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
999+
-DCMAKE_INSTALL_LIBDIR=lib
9991000
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
10001001
-DCMAKE_LINKER=${CMAKE_LINKER}
10011002
-DCMAKE_RANLIB=${CMAKE_RANLIB}

branches/master-next/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
|**[Ubuntu 16.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_16.04.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64)|
1919
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | ARMv7 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android)|
2020
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64)|
21-
|**[Debian 9.5](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_debian_9.5.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-debian-9_5/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-debian-9_5)|
2221
|**[Windows 2019](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_windows_2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-windows-x86_64)|
2322

2423
**Swift TensorFlow Community-Hosted CI Platforms**

branches/master-next/cmake/modules/SwiftHandleGybSources.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ function(handle_gyb_sources dependency_out_var_name sources_var_name arch)
118118
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/AttributeNodes.py"
119119
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/AvailabilityNodes.py"
120120
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/CommonNodes.py"
121+
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/CompletionOnlyNodes.py"
121122
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/DeclNodes.py"
122123
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/ExprNodes.py"
123124
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/GenericNodes.py"

branches/master-next/cmake/modules/SwiftSource.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,13 @@ function(_compile_swift_files
310310
set(module_base "${module_dir}/${SWIFTFILE_MODULE_NAME}")
311311
if(SWIFTFILE_SDK IN_LIST SWIFT_APPLE_PLATFORMS)
312312
set(specific_module_dir "${module_base}.swiftmodule")
313+
set(specific_module_private_dir "${specific_module_dir}/Private")
314+
set(source_info_file "${specific_module_private_dir}/${SWIFTFILE_ARCHITECTURE}.swiftsourceinfo")
313315
set(module_base "${module_base}.swiftmodule/${SWIFTFILE_ARCHITECTURE}")
314316
else()
315317
set(specific_module_dir)
318+
set(specific_module_private_dir)
319+
set(source_info_file "${module_base}.swiftsourceinfo")
316320
endif()
317321
set(module_file "${module_base}.swiftmodule")
318322
set(module_doc_file "${module_base}.swiftdoc")
@@ -349,7 +353,8 @@ function(_compile_swift_files
349353
swift_install_in_component(DIRECTORY "${specific_module_dir}"
350354
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${library_subdir}"
351355
COMPONENT "${SWIFTFILE_INSTALL_IN_COMPONENT}"
352-
OPTIONAL)
356+
OPTIONAL
357+
PATTERN "Private" EXCLUDE)
353358
else()
354359
swift_install_in_component(FILES ${module_outputs}
355360
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${library_subdir}"
@@ -490,9 +495,11 @@ function(_compile_swift_files
490495
COMMAND
491496
"${CMAKE_COMMAND}" "-E" "make_directory" ${module_dir}
492497
${specific_module_dir}
498+
${specific_module_private_dir}
493499
COMMAND
494500
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "@${file_path}" --
495501
"${swift_compiler_tool}" "-emit-module" "-o" "${module_file}"
502+
"-emit-module-source-info-path" "${source_info_file}"
496503
${swift_flags} ${swift_module_flags} "@${file_path}"
497504
${command_touch_module_outputs}
498505
OUTPUT ${module_outputs}

branches/master-next/docs/ABI/Mangling.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ Entities
290290
entity-spec ::= type 'fu' INDEX // implicit anonymous closure
291291
entity-spec ::= 'fA' INDEX // default argument N+1 generator
292292
entity-spec ::= 'fi' // non-local variable initializer
293+
entity-spec ::= 'fP' // property wrapper backing initializer
293294
entity-spec ::= 'fD' // deallocating destructor; untyped
294295
entity-spec ::= 'fd' // non-deallocating destructor; untyped
295296
entity-spec ::= 'fE' // ivar destroyer; untyped
@@ -480,7 +481,7 @@ Types
480481
type ::= 'Bf' NATURAL '_' // Builtin.Float<n>
481482
type ::= 'Bi' NATURAL '_' // Builtin.Int<n>
482483
type ::= 'BI' // Builtin.IntLiteral
483-
type ::= 'BO' // Builtin.UnknownObject
484+
type ::= 'BO' // Builtin.UnknownObject (no longer a distinct type, but still used for AnyObject)
484485
type ::= 'Bo' // Builtin.NativeObject
485486
type ::= 'Bp' // Builtin.RawPointer
486487
type ::= 'Bt' // Builtin.SILToken

branches/master-next/docs/ARCOptimization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ is_unique performs depends on the argument type:
335335

336336
- Objective-C object types require an additional check that the
337337
dynamic object type uses native Swift reference counting:
338-
(Builtin.UnknownObject, unknown class reference, class existential)
338+
(unknown class reference, class existential)
339339

340340
- Bridged object types allow the dynamic object type check to be
341341
bypassed based on the pointer encoding:

branches/master-next/docs/CToSwiftNameTranslation.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -370,19 +370,6 @@ extension Counter {
370370
}
371371
```
372372

373-
The getter/setter syntax also allows for subscripts by using the base name `subscript`.
374-
375-
```objc
376-
__attribute__((swift_name("getter:LinkedListOfInts.subscript(self:_:)")))
377-
int LinkedListGetAtIndex(const LinkedListOfInts *head, int index);
378-
```
379-
380-
```swift
381-
extension LinkedListOfInts {
382-
subscript(_ index: Int32) -> Int32 { get }
383-
}
384-
```
385-
386373
Finally, functions can be imported as initializers as well by using the base name `init`. These are considered "factory" initializers and are never inherited or overridable. They must not have a `self` parameter.
387374

388375
```objc

branches/master-next/include/swift/AST/ASTContext.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ class ASTContext final {
605605
const CanType TheAnyType; /// This is 'Any', the empty protocol composition
606606
const CanType TheNativeObjectType; /// Builtin.NativeObject
607607
const CanType TheBridgeObjectType; /// Builtin.BridgeObject
608-
const CanType TheUnknownObjectType; /// Builtin.UnknownObject
609608
const CanType TheRawPointerType; /// Builtin.RawPointer
610609
const CanType TheUnsafeValueBufferType; /// Builtin.UnsafeValueBuffer
611610
const CanType TheSILTokenType; /// Builtin.SILToken

branches/master-next/include/swift/AST/ASTMangler.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ class ASTMangler : public Mangler {
124124
SymbolKind SKind);
125125

126126
std::string mangleInitializerEntity(const VarDecl *var, SymbolKind SKind);
127+
std::string mangleBackingInitializerEntity(const VarDecl *var,
128+
SymbolKind SKind);
127129

128130
std::string mangleNominalType(const NominalTypeDecl *decl);
129131

@@ -311,6 +313,7 @@ class ASTMangler : public Mangler {
311313
void appendDefaultArgumentEntity(const DeclContext *ctx, unsigned index);
312314

313315
void appendInitializerEntity(const VarDecl *var);
316+
void appendBackingInitializerEntity(const VarDecl *var);
314317

315318
CanType getDeclTypeForMangling(const ValueDecl *decl,
316319
GenericSignature *&genericSig,

branches/master-next/include/swift/AST/ASTTypeIDZone.def

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,29 @@
1414
// for use with the TypeID template.
1515
//
1616
//===----------------------------------------------------------------------===//
17-
SWIFT_TYPEID_NAMED(NominalTypeDecl *, NominalTypeDecl)
18-
SWIFT_TYPEID_NAMED(VarDecl *, VarDecl)
19-
SWIFT_TYPEID_NAMED(ValueDecl *, ValueDecl)
20-
SWIFT_TYPEID_NAMED(ProtocolDecl *, ProtocolDecl)
21-
SWIFT_TYPEID_NAMED(Decl *, Decl)
22-
SWIFT_TYPEID_NAMED(ModuleDecl *, ModuleDecl)
23-
SWIFT_TYPEID(Type)
24-
SWIFT_TYPEID(TypePair)
17+
18+
SWIFT_TYPEID(AncestryFlags)
19+
SWIFT_TYPEID(CtorInitializerKind)
2520
SWIFT_TYPEID(PropertyWrapperBackingPropertyInfo)
2621
SWIFT_TYPEID(PropertyWrapperTypeInfo)
27-
SWIFT_TYPEID(CtorInitializerKind)
22+
SWIFT_TYPEID(Requirement)
2823
SWIFT_TYPEID(ResilienceExpansion)
29-
SWIFT_TYPEID_NAMED(Optional<PropertyWrapperMutability>, PropertyWrapperMutability)
24+
SWIFT_TYPEID(Type)
25+
SWIFT_TYPEID(TypePair)
3026
SWIFT_TYPEID_NAMED(CustomAttr *, CustomAttr)
31-
SWIFT_TYPEID_NAMED(OperatorDecl *, OperatorDecl)
32-
SWIFT_TYPEID_NAMED(TypeAliasDecl *, TypeAliasDecl)
33-
SWIFT_TYPEID(AncestryFlags)
27+
SWIFT_TYPEID_NAMED(Decl *, Decl)
28+
SWIFT_TYPEID_NAMED(GenericParamList *, GenericParamList)
3429
SWIFT_TYPEID_NAMED(GenericSignature *, GenericSignature)
3530
SWIFT_TYPEID_NAMED(GenericTypeParamType *, GenericTypeParamType)
36-
SWIFT_TYPEID(Requirement)
31+
SWIFT_TYPEID_NAMED(InfixOperatorDecl *, InfixOperatorDecl)
3732
SWIFT_TYPEID_NAMED(IterableDeclContext *, IterableDeclContext)
38-
SWIFT_TYPEID_NAMED(GenericParamList *, GenericParamList)
33+
SWIFT_TYPEID_NAMED(ModuleDecl *, ModuleDecl)
34+
SWIFT_TYPEID_NAMED(NominalTypeDecl *, NominalTypeDecl)
35+
SWIFT_TYPEID_NAMED(OperatorDecl *, OperatorDecl)
36+
SWIFT_TYPEID_NAMED(Optional<PropertyWrapperMutability>,
37+
PropertyWrapperMutability)
38+
SWIFT_TYPEID_NAMED(PrecedenceGroupDecl *, PrecedenceGroupDecl)
39+
SWIFT_TYPEID_NAMED(ProtocolDecl *, ProtocolDecl)
40+
SWIFT_TYPEID_NAMED(TypeAliasDecl *, TypeAliasDecl)
41+
SWIFT_TYPEID_NAMED(ValueDecl *, ValueDecl)
42+
SWIFT_TYPEID_NAMED(VarDecl *, VarDecl)

branches/master-next/include/swift/AST/ASTTypeIDs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@
2121
#include "swift/Basic/TypeID.h"
2222
namespace swift {
2323

24+
class AbstractFunctionDecl;
25+
class BraceStmt;
2426
class CustomAttr;
2527
class Decl;
2628
class GenericParamList;
2729
class GenericSignature;
2830
class GenericTypeParamType;
31+
class InfixOperatorDecl;
2932
class IterableDeclContext;
3033
class ModuleDecl;
3134
class NominalTypeDecl;
3235
class OperatorDecl;
36+
class PrecedenceGroupDecl;
3337
struct PropertyWrapperBackingPropertyInfo;
3438
struct PropertyWrapperTypeInfo;
3539
enum class CtorInitializerKind;

0 commit comments

Comments
 (0)