Skip to content

Commit 1638829

Browse files
committed
---
yaml --- r: 349171 b: refs/heads/master-next c: 4203c2f h: refs/heads/master i: 349169: 3e6d7cc 349167: 0abb008
1 parent f8605f8 commit 1638829

File tree

549 files changed

+4361
-6920
lines changed

Some content is hidden

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

549 files changed

+4361
-6920
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: a51f101f2fb82361964872b64a7691f4e8a1a38d
3+
refs/heads/master-next: 4203c2f9f3fd592c2c927b65d99fbcff46d7f237
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: 1 addition & 3 deletions
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,8 +145,6 @@ Swift Next
145145
Swift 5.1
146146
---------
147147

148-
### 2019-09-20 (Xcode 11.0)
149-
150148
* [SR-8974][]:
151149

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

branches/master-next/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
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)|
2122
|**[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)|
2223

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ 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"
122121
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/DeclNodes.py"
123122
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/ExprNodes.py"
124123
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/GenericNodes.py"

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,9 @@ 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")
315313
set(module_base "${module_base}.swiftmodule/${SWIFTFILE_ARCHITECTURE}")
316314
else()
317315
set(specific_module_dir)
318-
set(specific_module_private_dir)
319-
set(source_info_file "${module_base}.swiftsourceinfo")
320316
endif()
321317
set(module_file "${module_base}.swiftmodule")
322318
set(module_doc_file "${module_base}.swiftdoc")
@@ -326,8 +322,6 @@ function(_compile_swift_files
326322
set(sib_file "${module_base}.Onone.sib")
327323
set(sibopt_file "${module_base}.O.sib")
328324
set(sibgen_file "${module_base}.sibgen")
329-
list(APPEND swift_module_flags
330-
"-emit-module-source-info-path" "${source_info_file}")
331325

332326
if(SWIFT_ENABLE_MODULE_INTERFACES)
333327
set(interface_file "${module_base}.swiftinterface")
@@ -355,8 +349,7 @@ function(_compile_swift_files
355349
swift_install_in_component(DIRECTORY "${specific_module_dir}"
356350
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${library_subdir}"
357351
COMPONENT "${SWIFTFILE_INSTALL_IN_COMPONENT}"
358-
OPTIONAL
359-
PATTERN "Private" EXCLUDE)
352+
OPTIONAL)
360353
else()
361354
swift_install_in_component(FILES ${module_outputs}
362355
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${library_subdir}"
@@ -497,7 +490,6 @@ function(_compile_swift_files
497490
COMMAND
498491
"${CMAKE_COMMAND}" "-E" "make_directory" ${module_dir}
499492
${specific_module_dir}
500-
${specific_module_private_dir}
501493
COMMAND
502494
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "@${file_path}" --
503495
"${swift_compiler_tool}" "-emit-module" "-o" "${module_file}"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ macro(swift_common_xcode_cxx_config)
100100
# Force usage of Clang.
101101
set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
102102
CACHE STRING "Xcode Compiler")
103-
# Use C++'14.
104-
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++14"
103+
# Use C++'11.
104+
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11"
105105
CACHE STRING "Xcode C++ Language Standard")
106106
# Use libc++.
107107
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ 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
294293
entity-spec ::= 'fD' // deallocating destructor; untyped
295294
entity-spec ::= 'fd' // non-deallocating destructor; untyped
296295
entity-spec ::= 'fE' // ivar destroyer; untyped

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ 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);
129127

130128
std::string mangleNominalType(const NominalTypeDecl *decl);
131129

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

315313
void appendInitializerEntity(const VarDecl *var);
316-
void appendBackingInitializerEntity(const VarDecl *var);
317314

318315
CanType getDeclTypeForMangling(const ValueDecl *decl,
319316
GenericSignature *&genericSig,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ namespace swift {
3636
enum class DeclKind : uint8_t;
3737
enum class StmtKind;
3838

39-
struct ASTNode : public llvm::PointerUnion<Expr*, Stmt*, Decl*> {
39+
struct ASTNode : public llvm::PointerUnion3<Expr*, Stmt*, Decl*> {
4040
// Inherit the constructors from PointerUnion.
41-
using PointerUnion::PointerUnion;
42-
41+
using PointerUnion3::PointerUnion3;
42+
4343
SourceRange getSourceRange() const;
4444

4545
/// Return the location of the start of the statement.

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

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,25 @@
1414
// for use with the TypeID template.
1515
//
1616
//===----------------------------------------------------------------------===//
17-
18-
SWIFT_TYPEID(AncestryFlags)
19-
SWIFT_TYPEID(CtorInitializerKind)
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)
2025
SWIFT_TYPEID(PropertyWrapperBackingPropertyInfo)
2126
SWIFT_TYPEID(PropertyWrapperTypeInfo)
22-
SWIFT_TYPEID(Requirement)
27+
SWIFT_TYPEID(CtorInitializerKind)
2328
SWIFT_TYPEID(ResilienceExpansion)
24-
SWIFT_TYPEID(Type)
25-
SWIFT_TYPEID(TypePair)
29+
SWIFT_TYPEID_NAMED(Optional<PropertyWrapperMutability>, PropertyWrapperMutability)
2630
SWIFT_TYPEID_NAMED(CustomAttr *, CustomAttr)
27-
SWIFT_TYPEID_NAMED(Decl *, Decl)
28-
SWIFT_TYPEID_NAMED(GenericParamList *, GenericParamList)
31+
SWIFT_TYPEID_NAMED(OperatorDecl *, OperatorDecl)
32+
SWIFT_TYPEID_NAMED(TypeAliasDecl *, TypeAliasDecl)
33+
SWIFT_TYPEID(AncestryFlags)
2934
SWIFT_TYPEID_NAMED(GenericSignature *, GenericSignature)
3035
SWIFT_TYPEID_NAMED(GenericTypeParamType *, GenericTypeParamType)
31-
SWIFT_TYPEID_NAMED(InfixOperatorDecl *, InfixOperatorDecl)
36+
SWIFT_TYPEID(Requirement)
3237
SWIFT_TYPEID_NAMED(IterableDeclContext *, IterableDeclContext)
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)
38+
SWIFT_TYPEID_NAMED(GenericParamList *, GenericParamList)

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ class Decl;
2626
class GenericParamList;
2727
class GenericSignature;
2828
class GenericTypeParamType;
29-
class InfixOperatorDecl;
3029
class IterableDeclContext;
3130
class ModuleDecl;
3231
class NominalTypeDecl;
3332
class OperatorDecl;
34-
class PrecedenceGroupDecl;
3533
struct PropertyWrapperBackingPropertyInfo;
3634
struct PropertyWrapperTypeInfo;
3735
enum class CtorInitializerKind;

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

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4785,7 +4785,7 @@ class VarDecl : public AbstractStorageDecl {
47854785
};
47864786

47874787
protected:
4788-
PointerUnion<PatternBindingDecl *, Stmt *, VarDecl *> Parent;
4788+
PointerUnion3<PatternBindingDecl *, Stmt *, VarDecl *> Parent;
47894789

47904790
VarDecl(DeclKind kind, bool isStatic, Introducer introducer,
47914791
bool issCaptureList, SourceLoc nameLoc, Identifier name,
@@ -6329,7 +6329,9 @@ class EnumElementDecl : public DeclContext, public ValueDecl {
63296329

63306330
/// The raw value literal for the enum element, or null.
63316331
LiteralExpr *RawValueExpr;
6332-
6332+
/// The type-checked raw value expression.
6333+
Expr *TypeCheckedRawValueExpr = nullptr;
6334+
63336335
public:
63346336
EnumElementDecl(SourceLoc IdentifierLoc, DeclName Name,
63356337
ParameterList *Params,
@@ -6362,6 +6364,13 @@ class EnumElementDecl : public DeclContext, public ValueDecl {
63626364
bool hasRawValueExpr() const { return RawValueExpr; }
63636365
LiteralExpr *getRawValueExpr() const { return RawValueExpr; }
63646366
void setRawValueExpr(LiteralExpr *e) { RawValueExpr = e; }
6367+
6368+
Expr *getTypeCheckedRawValueExpr() const {
6369+
return TypeCheckedRawValueExpr;
6370+
}
6371+
void setTypeCheckedRawValueExpr(Expr *e) {
6372+
TypeCheckedRawValueExpr = e;
6373+
}
63656374

63666375
/// Return the containing EnumDecl.
63676376
EnumDecl *getParentEnum() const {
@@ -6900,6 +6909,7 @@ class OperatorDecl : public Decl {
69006909
/// \endcode
69016910
class InfixOperatorDecl : public OperatorDecl {
69026911
SourceLoc ColonLoc;
6912+
PrecedenceGroupDecl *PrecedenceGroup = nullptr;
69036913

69046914
public:
69056915
InfixOperatorDecl(DeclContext *DC, SourceLoc operatorLoc, Identifier name,
@@ -6910,6 +6920,14 @@ class InfixOperatorDecl : public OperatorDecl {
69106920
identifiers, identifierLocs),
69116921
ColonLoc(colonLoc) {}
69126922

6923+
InfixOperatorDecl(DeclContext *DC, SourceLoc operatorLoc, Identifier name,
6924+
SourceLoc nameLoc, SourceLoc colonLoc,
6925+
PrecedenceGroupDecl *precedenceGroup,
6926+
ArrayRef<NominalTypeDecl *> designatedNominalTypes)
6927+
: OperatorDecl(DeclKind::InfixOperator, DC, operatorLoc, name, nameLoc,
6928+
designatedNominalTypes),
6929+
ColonLoc(colonLoc), PrecedenceGroup(precedenceGroup) {}
6930+
69136931
SourceLoc getEndLoc() const {
69146932
auto identifierLocs = getIdentifierLocs();
69156933
if (identifierLocs.empty())
@@ -6924,7 +6942,10 @@ class InfixOperatorDecl : public OperatorDecl {
69246942

69256943
SourceLoc getColonLoc() const { return ColonLoc; }
69266944

6927-
PrecedenceGroupDecl *getPrecedenceGroup() const;
6945+
PrecedenceGroupDecl *getPrecedenceGroup() const { return PrecedenceGroup; }
6946+
void setPrecedenceGroup(PrecedenceGroupDecl *PGD) {
6947+
PrecedenceGroup = PGD;
6948+
}
69286949

69296950
/// True if this decl's attributes conflict with those declared by another
69306951
/// operator.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ WARNING(implicit_bridging_header_imported_from_module,none,
9191
"is deprecated and will be removed in a later version of Swift",
9292
(StringRef, Identifier))
9393

94+
WARNING(clang_vfs_overlay_is_ignored,none,
95+
"ignoring '-ivfsoverlay' options provided to '-Xcc' in favor of "
96+
"'-vfsoverlay'", ())
97+
9498
#ifndef DIAG_NO_UNDEF
9599
# if defined(DIAG)
96100
# undef DIAG

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ ERROR(error_mode_cannot_emit_module,none,
124124
"this mode does not support emitting modules", ())
125125
ERROR(error_mode_cannot_emit_module_doc,none,
126126
"this mode does not support emitting module documentation files", ())
127-
ERROR(error_mode_cannot_emit_module_source_info,none,
128-
"this mode does not support emitting module source info files", ())
129127
ERROR(error_mode_cannot_emit_interface,none,
130128
"this mode does not support emitting module interface files", ())
131129

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4528,6 +4528,8 @@ ERROR(property_wrapper_wrong_initial_value_init, none,
45284528
(DeclName, Type, Type))
45294529
ERROR(property_wrapper_failable_init, none,
45304530
"%0 cannot be failable", (DeclName))
4531+
ERROR(property_wrapper_ambiguous_initial_value_init, none,
4532+
"property wrapper type %0 has multiple initial-value initializers", (Type))
45314533
ERROR(property_wrapper_ambiguous_default_value_init, none,
45324534
"property wrapper type %0 has multiple default-value initializers", (Type))
45334535
ERROR(property_wrapper_type_requirement_not_accessible,none,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class Evaluator {
260260
// Check for a cycle.
261261
if (checkDependency(getCanonicalRequest(request))) {
262262
return llvm::Error(
263-
std::make_unique<CyclicalRequestError<Request>>(request, *this));
263+
llvm::make_unique<CyclicalRequestError<Request>>(request, *this));
264264
}
265265

266266
// Make sure we remove this from the set of active requests once we're

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ class GenericSignatureBuilder {
9292
class ResolvedType;
9393

9494
using UnresolvedRequirementRHS =
95-
llvm::PointerUnion<Type, PotentialArchetype *, LayoutConstraint>;
95+
llvm::PointerUnion3<Type, PotentialArchetype *, LayoutConstraint>;
9696

9797
using RequirementRHS =
98-
llvm::PointerUnion<Type, PotentialArchetype *, LayoutConstraint>;
98+
llvm::PointerUnion3<Type, PotentialArchetype *, LayoutConstraint>;
9999

100100
/// The location of a requirement as written somewhere in the source.
101101
typedef llvm::PointerUnion<const TypeRepr *, const RequirementRepr *>
@@ -1373,8 +1373,8 @@ class GenericSignatureBuilder::FloatingRequirementSource {
13731373
} kind;
13741374

13751375
using Storage =
1376-
llvm::PointerUnion<const RequirementSource *, const TypeRepr *,
1377-
const RequirementRepr *>;
1376+
llvm::PointerUnion3<const RequirementSource *, const TypeRepr *,
1377+
const RequirementRepr *>;
13781378

13791379
Storage storage;
13801380

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
#include "llvm/ADT/SmallSet.h"
2525
#include "llvm/ADT/TinyPtrVector.h"
2626

27-
namespace llvm {
28-
class FileCollector;
29-
}
30-
3127
namespace clang {
3228
class DependencyCollector;
3329
}
@@ -58,9 +54,8 @@ enum class Bridgeability : unsigned {
5854
class DependencyTracker {
5955
std::shared_ptr<clang::DependencyCollector> clangCollector;
6056
public:
61-
explicit DependencyTracker(
62-
bool TrackSystemDeps,
63-
std::shared_ptr<llvm::FileCollector> FileCollector = {});
57+
58+
explicit DependencyTracker(bool TrackSystemDeps);
6459

6560
/// Adds a file as a dependency.
6661
///

0 commit comments

Comments
 (0)