Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
3be8321
[stdlib] Fix the example in LazySequenceProtocol docs.
natecook1000 Apr 25, 2019
ab5846c
Shorten parameter name in doc example.
natecook1000 May 10, 2019
90f9dd4
Merge branch 'master' into nc_lazyscan_fix
natecook1000 Aug 22, 2019
1cc1e58
[Sema] Don't look through CoerceExprs in markDirectCallee
hamishknight Sep 8, 2019
06102a9
Minor additional revisions
natecook1000 Sep 11, 2019
70ad473
[SILOptimizer] ProjectionTree can vend leaf types.
nate-chandler Sep 20, 2019
9bd6fec
[SILOptimizer] Projection tree can vend users.
nate-chandler Sep 20, 2019
27fe849
[SILOptimizer] Epilogue matcher can find partial post dom argument re…
nate-chandler Sep 20, 2019
851d9f4
[Gardening] Minor cleanup to Projection.h.
nate-chandler Sep 20, 2019
782d6cd
[Gardening] Documented ArgumentDescriptor method.
nate-chandler Sep 20, 2019
0038761
[Gardening] Made FSOEnableGenerics option static.
nate-chandler Sep 20, 2019
c99f12f
[SILOptimizer] Added option to force FSO for uncalled functions.
nate-chandler Sep 20, 2019
4412a79
Using %sil-opt is inconsistent with the rest of the tests in this dir…
ematejska Sep 23, 2019
4203c2f
[Diagnostics] Store synthesized arguments in `missing arguments` diag…
xedin Sep 17, 2019
b15ef15
[ConstraintSystem] Change `missingArgument` callback to produce an in…
xedin Sep 18, 2019
65c03d5
[ConstraintSystem] Allow solver to synthesize missing arguments in di…
xedin Sep 18, 2019
e30612e
[Diagnostics] Diagnose missing argument(s) in argument positions
xedin Sep 19, 2019
881f521
[Diagnostics] Diagnose missing arguments in relation to contextual type
xedin Sep 19, 2019
b8528cd
[ConstraintSystem] Short-circuit matching if missing arguments have b…
xedin Sep 19, 2019
ee8c78e
[Diagnostics] Tailored diagnostic when single tuple used instead of N…
xedin Sep 19, 2019
60bcc94
[Diagnostics] Implement single missing argument diagnosis
xedin Sep 23, 2019
9406edc
[Diagnostics] Tailored diagnostic for missing argument in property wr…
xedin Sep 23, 2019
73b6427
[ConstraintSystem] Store parameter flags in synthesized argument locator
xedin Sep 23, 2019
1e87dfc
[Typechecker] Perform capture analysis in enums as well
theblixguy Sep 23, 2019
9c97153
[Test] Adds a test case
theblixguy Sep 23, 2019
7d65012
SILGen: use the correct forwarding substitutions for the setter of an…
eeckstein Sep 23, 2019
ab5d161
[SILGen] Separate the initialization of a wrapped property from a wra…
DougGregor Sep 20, 2019
8613b05
[DI] Support definite initialization for composed property wrappers.
DougGregor Sep 20, 2019
5431efa
Add fixed test case from rdar://problem/53349209
DougGregor Sep 23, 2019
81c0a0e
[Property wrappers] Allow init(wrappedValue:) initializers with defau…
DougGregor Sep 24, 2019
4ba1833
[TBDGen] Emit property wrapper backing initializer symbol
DougGregor Sep 24, 2019
a1541a1
[TBDGen] Only emit backing initializer for non-resilient properties.
DougGregor Sep 24, 2019
2a74d0b
Use ParamDecl::isDefaultArgument().
DougGregor Sep 24, 2019
2120a31
[Diagnostics] Correctly diagnose misplaced missing argument
xedin Sep 24, 2019
a3e26ab
[ConstraintSystem] Mark each of the synthesized arguments as a "hole"
xedin Sep 24, 2019
888529c
[IDE] Fix ModelASTWalker passing syntax nodes before the correspondin…
Sep 24, 2019
fc8a2e6
[SyntaxParse] Parse associatedtype decl
rintaro Sep 23, 2019
061c036
[IRGen] Convert `Builtin.UnknownObject` to `id` instead of `void *`.
varungandhi-apple Sep 24, 2019
77159c8
[polymorphic-builtins] Fix test for rebranch/master-next.
gottesmm Sep 24, 2019
9003774
Add C calling convention shims for creating arrays and strings from b…
Catfish-Man Sep 24, 2019
574a450
Extensions Do Not Have Parent Signatures
CodaFi Sep 24, 2019
3103b5c
Frontend: set up output file .swiftsourceinfo
nkcsgexi Sep 18, 2019
6ec4fc8
test: update driver tests
nkcsgexi Sep 21, 2019
4cd46d9
cmake: exclude Private dir from installation
nkcsgexi Sep 23, 2019
5759fe6
test: add a test about .swiftsourceinfo file using Private directory
nkcsgexi Sep 23, 2019
ec9cf33
Driver: expose -emit-module-source-info-path as a driver option
nkcsgexi Sep 24, 2019
7013725
Address Jordan's code review comments
nkcsgexi Sep 24, 2019
03bdd1c
Merge pull request #27329 from nathawes/r55045797-image-literal-synta…
Sep 24, 2019
5b92814
Debug Info: Add missing debug info propagation to SILCloner.
adrian-prantl Sep 18, 2019
6549a0d
Don't emit the property wrapper backing initializer publicly for resi…
DougGregor Sep 24, 2019
2736d53
Merge pull request #27311 from theblixguy/fix/SR-11509
theblixguy Sep 24, 2019
9f1ce1b
Merge pull request #27301 from rintaro/syntaxparse-associatedtype
rintaro Sep 24, 2019
8ca0f0d
Factor out visitGenericParamList in order to be sure predicates evalu…
Sep 24, 2019
6a9b566
AST: Fix parent type of protocol type alias types
slavapestov Sep 23, 2019
b1ffa19
AST: Refine recursive property checks on type alias types
slavapestov Sep 11, 2019
fffe5c9
AST: Tweak computation of TypeAliasType recursive properties
slavapestov Sep 21, 2019
be87bd1
Merge pull request #27296 from ematejska/update_sil_test_naming
ematejska Sep 24, 2019
b1ef4c8
ASTMangler: Desugar unrepresentable type alias types
slavapestov Sep 23, 2019
0ade7b7
AST: Type::subst() preserves TypeAliasType sugar
slavapestov Sep 21, 2019
38416cf
ASTDemangler: Remove unnecessary calls to TypeAliasType::get()
slavapestov Sep 23, 2019
874bb1d
[Constant Evaluator] Support Array constants in the constant
Jan 4, 2019
b88ee7a
Merge pull request #27336 from gottesmm/pr-3ae2f6959ec99ff084d237c5dc…
shahmishal Sep 24, 2019
a331dee
Merge pull request #27340 from CodaFi/party-crashers
CodaFi Sep 24, 2019
1ba61d7
[Gardening] Sort the ASTTypeIDs
CodaFi Sep 24, 2019
b520076
Merge pull request #27333 from varungandhi-apple/vg-fix-unknownobject…
varungandhi-apple Sep 24, 2019
23a0422
[CallerAnalysis] foundAllCallers reqs nonexternal.
nate-chandler Sep 23, 2019
9567bd4
[SILOptimizer] Alter FSO arg explosion heuristic.
nate-chandler Sep 23, 2019
5ad6bee
Merge pull request #27238 from adrian-prantl/silcloner-varinfo
adrian-prantl Sep 24, 2019
b09631f
Merge pull request #27343 from CodaFi/alpha-beta-call
swift-ci Sep 25, 2019
7d2dac1
Define Requests
CodaFi Sep 25, 2019
5964ce4
Use OperatorPrecedenceGroupRequest to clean up InfixOperatorDecl a bit
CodaFi Sep 25, 2019
698bcad
Merge pull request #27266 from Catfish-Man/the-deep-blue-c
Catfish-Man Sep 25, 2019
6226644
Drop the TypeChecker dependency from some helpers
CodaFi Sep 25, 2019
1cce12f
Add an Array-based NSMutableArray subclass
Catfish-Man Sep 24, 2019
8f96e8f
[Constant Evaluator][Test] Add a couple of tests to check whether
ravikandhadai Sep 25, 2019
c6c1573
Merge pull request #27287 from slavapestov/typealias-sugar
slavapestov Sep 25, 2019
80e6466
[ClangImporter] importMethodType -> importMethodParamsAndReturnType (…
jrose-apple Sep 25, 2019
ccd534d
[TBD] Ensure swift-abi-version is kept in sync with IRGen (#27347)
Sep 25, 2019
88bc5b8
[ClangImporter] Detangle an index-based loop into two for-each loops …
jrose-apple Sep 25, 2019
645fc20
AST: TypeAliasDecl::get{Structural,Underlying}Type() always return no…
slavapestov Sep 24, 2019
edd5105
AST: Clean up usages of TypeAliasDecl::getStructuralType()
slavapestov Sep 20, 2019
040be29
AST: TypeDecl::getDeclaredInterfaceType() always returns a non-empty …
slavapestov Sep 24, 2019
bbce384
Sema: Decouple availability checking from the TypeChecker
slavapestov Sep 25, 2019
5e49002
Sema: Remove outdated comment
slavapestov Sep 25, 2019
adb0e6e
Merge pull request #27277 from nkcsgexi/add-source-info-to-driver
nkcsgexi Sep 25, 2019
9b20012
Merge pull request #27322 from DougGregor/property-wrapper-compositio…
DougGregor Sep 25, 2019
cc2c868
[Diagnostics] Produce a tailored diagnostic for multiple missing argu…
xedin Sep 25, 2019
66a2f62
Merge pull request #27300 from eeckstein/fix-silgen-crash
eeckstein Sep 25, 2019
98aa47c
Merge pull request #27357 from slavapestov/circular-validation-cleanups
slavapestov Sep 25, 2019
b4042eb
Update CHANGELOG.md
twostraws Sep 25, 2019
56edd08
Merge pull request #27359 from twostraws/master
swift-ci Sep 25, 2019
fd7d412
Add release date to CHANGELOG.md
benrimmington Sep 21, 2019
d992ff3
Requestify Operator Validation
CodaFi Sep 25, 2019
48520f7
[CSDiag] Remove obsolete logic to related to missing argument failures
xedin Sep 25, 2019
ec6a874
[TypeChecker] NFC: Update test-cases improved by new missing argument…
xedin Sep 25, 2019
859f90a
Revert "[SyntaxParse] Parse associatedtype decl"
rintaro Sep 25, 2019
0df6b40
Clean up enum raw expression validation a bit
CodaFi Sep 25, 2019
c95c72f
Merge pull request #27293 from benrimmington/changelog-5.1
swift-ci Sep 25, 2019
e052da7
Merge pull request #27363 from apple/revert-27301-syntaxparse-associa…
shahmishal Sep 25, 2019
dcf607d
[ClangImporter] Remove manual setting of Protocol Self depth (#27352)
jrose-apple Sep 25, 2019
c5a27ef
Merge pull request #27351 from CodaFi/not-a-good-start-boris
CodaFi Sep 25, 2019
a37f818
MetadataReader: Correct size measurement reading AnonymousContextDesc…
jckarter Sep 25, 2019
caa5be8
[ClangImporter] Use external_source_symbol to identify Swift decls (#…
jrose-apple Sep 25, 2019
bacbdb8
Merge pull request #27368 from jckarter/metadata-reader-anonymous-con…
jckarter Sep 26, 2019
12e455a
Merge pull request #27353 from ravikandhadai/constexpr-test
ravikandhadai Sep 26, 2019
7189c09
Merge pull request #27344 from ravikandhadai/constexpr-arrays
ravikandhadai Sep 26, 2019
7dabec4
[oslog][stdlib-private] Modify the implementation of the new OSLog
ravikandhadai Sep 25, 2019
dd7d925
Merge pull request #27364 from CodaFi/raw-smackdown
CodaFi Sep 26, 2019
59a57ed
[ownership] Introduce a new BorrowScopeIntroducingOperand that is use…
gottesmm Sep 24, 2019
f9f3f53
[ownership] Add support for adding {end,abort}_apply to the regular u…
gottesmm Sep 24, 2019
51e4792
AST: Types nested inside a subclass shadow types in the superclass wi…
slavapestov Sep 26, 2019
44827bb
IDE: Refactor LookupVisibleDecls to use standard override/shadowing l…
slavapestov Sep 26, 2019
87d1338
Merge pull request #27373 from ravikandhadai/constexpr-bytebuilder-el…
swift-ci Sep 26, 2019
5e8ba1d
Merge pull request #27337 from gottesmm/pr-e029383157166756e653b26032…
gottesmm Sep 26, 2019
8c4df3b
Reflection: Traffic in RemoteRefs.
jckarter Sep 25, 2019
10b1bae
Merge pull request #27362 from xedin/port-missing-args
xedin Sep 26, 2019
d9eba19
[SyntaxParse] Fix ASAN issue
rintaro Sep 26, 2019
c0a57b6
Merge pull request #27365 from slavapestov/member-type-shadowing-rule
slavapestov Sep 26, 2019
1b7da04
Update test error message
hamishknight Sep 26, 2019
8ff1dac
[AST] Break some header dependencies for faster rebuilds (#27374)
jrose-apple Sep 26, 2019
b9b4196
Merge pull request #27239 from nate-chandler/39957093-argument-explos…
nate-chandler Sep 26, 2019
02b5e56
Merge pull request #27369 from jckarter/type-ref-builder-remote-ref
jckarter Sep 26, 2019
7733308
Convert TypeChecker::checkDefaultArguments to static function
Sep 25, 2019
8a91e98
[Sema] Don't look through CoerceExprs in markDirectCallee (#27085)
hamishknight Sep 26, 2019
b904133
[Modules] Add flag to skip non-inlinable function bodies
Sep 25, 2019
8d869e6
[CSApply] Don't diagnose a 'static let none' as ambiguous none unless…
theblixguy Sep 26, 2019
233f864
Move some more common enum diagnostics into the decl checker
CodaFi Sep 26, 2019
f6547cc
Address feedback from @amartini51.
natecook1000 Sep 26, 2019
633471c
Reflection: Share demangler with MetadataReader.
jckarter Sep 25, 2019
1445314
Reflection: Remove `StartAddress` from ReflectionInfo.
jckarter Sep 26, 2019
25e1bb5
[CSApply] Filter out functions and instance members before the ambigu…
theblixguy Sep 26, 2019
694023a
[Diagnostics] Centralize requirement failure impact assessment
xedin Sep 26, 2019
71f3285
Merge pull request #20420 from harlanhaskins/thats-the-uhh-bodies
Sep 26, 2019
c377e8b
Demangler: Fix out-of-bounds read printing quoted high-bit characters.
jckarter Sep 26, 2019
aa565f5
[CSApply] Compare variable's type with the base type of the enum we'r…
theblixguy Sep 26, 2019
7ba1595
cmake: avoid adding source info driver flag to swift_module_flags
nkcsgexi Sep 26, 2019
1653af4
Merge pull request #27386 from nkcsgexi/cmake-move-source-info
nkcsgexi Sep 26, 2019
e5b31c4
Merge pull request #27383 from jckarter/type-ref-builder-remote-metad…
jckarter Sep 26, 2019
11b2c29
swift-reflection-dump: Virtualize logical-to-physical address mapping.
jckarter Sep 26, 2019
e2b6a3d
Fix parsing of ELF images
Sep 25, 2019
c6d51a9
Merge pull request #27381 from CodaFi/raw-smackdown-live
CodaFi Sep 26, 2019
a744607
[NFC] Add some notes to getASTType()'s docstring.
varungandhi-apple Sep 18, 2019
0967783
Merge pull request #27341 from Catfish-Man/mutant-arrays
Catfish-Man Sep 26, 2019
2fe6892
Demangler: Keep printing printable chars in QuotedString
jckarter Sep 26, 2019
2cb6351
build: explicitly specify `lib` as the lib directory (NFC)
compnerd Sep 26, 2019
ed958a7
tests: fix test failure on Windows after #27277
compnerd Sep 26, 2019
dc6067f
Merge pull request #27392 from compnerd/libdir
swift-ci Sep 27, 2019
777d557
Merge pull request #26419 from alexshap/fix_elf_image_parsing
jckarter Sep 27, 2019
4069172
AST: refactor getLoc() of decls to have a single entry point for all …
nkcsgexi Sep 27, 2019
a6dd630
Eliminate Builtin.UnknownObject as an AST type (#27378)
jrose-apple Sep 27, 2019
0a39e7d
[CSApply] Move the variable type check into the lookup filter call
theblixguy Sep 27, 2019
389232a
[Test] Add a FIXME next to a test case that should be diagnosed
theblixguy Sep 27, 2019
aeed242
Merge pull request #27398 from nkcsgexi/get-loc-refactor
nkcsgexi Sep 27, 2019
40016b5
Merge pull request #27394 from compnerd/path-separator
compnerd Sep 27, 2019
24a5003
[ConstraintSystem] Materialize locator only once per missing argument
xedin Sep 27, 2019
f07f5b3
Add SwiftNSMutableArray expected failures to stability-stdlib-abi.ass…
atrick Sep 27, 2019
8db9006
Revert "Fix parsing of ELF images"
compnerd Sep 27, 2019
2940e7d
[apply-site] Refactor out a helper function called insertAfterApply -…
gottesmm Sep 26, 2019
6bf5dae
Merge pull request #27402 from xedin/missing-args-asan-atmpt-2
xedin Sep 27, 2019
d975b1a
Merge pull request #27399 from atrick/fix-nsmutable-abi
atrick Sep 27, 2019
7ecf3dc
[ClangImporter] Clean up adjustTypeForConcreteImport, part 1
jrose-apple Sep 23, 2019
9c53704
[ClangImporter] Add ImportHint::VAList instead of rederiving that info
jrose-apple Sep 23, 2019
c12b924
[ClangImporter] Make it easier to get Swift pointer types
jrose-apple Sep 23, 2019
5d4c456
[ClangImporter] Clean up adjustTypeForConcreteImport, part 2
jrose-apple Sep 23, 2019
9182051
Merge pull request #27404 from compnerd/revert-26419
jckarter Sep 27, 2019
12bf25e
Merge pull request #27388 from jckarter/reflection-remove-start-addre…
jckarter Sep 27, 2019
b34d2c5
[AST] Add Type::wrapInPointer(PointerTypeKind)
jrose-apple Sep 27, 2019
9592fc3
[ClangImporter] Eliminate ImportHint::SwiftNewtypeFromCFPointer
jrose-apple Sep 24, 2019
2de4755
[CSApply] Filtering 'none' results should filter out any other decl (…
theblixguy Sep 27, 2019
f1a2134
[Parse] Assert that the children of syntax tree nodes have contiguous…
Sep 24, 2019
b3d7962
[Test] Add some more tests around edge cases
theblixguy Sep 27, 2019
46823c0
Merge pull request #27236 from apple/vg-doc-siltype-getASTType
swift-ci Sep 28, 2019
60c64bf
Merge pull request #27309 from jrose-apple/adjust-adjustTypeForConcre…
jrose-apple Sep 28, 2019
6aadbc3
Merge pull request #27390 from xedin/sr-11491
xedin Sep 28, 2019
6a0bc45
Merge pull request #27377 from rintaro/syntaxparse-rdar55711699
rintaro Sep 28, 2019
40fdae4
[docs] CToSwift: remove the import-as-member-subscript discussion
jrose-apple Sep 28, 2019
cf526b4
ClangImporter: don't transform NSObject<...> when there's no NSObject…
xymus Sep 17, 2019
066bb61
Merge pull request #27415 from jrose-apple/sub-optimal
swift-ci Sep 28, 2019
325204b
Merge pull request #27406 from nathawes/add-syntax-range-assertions
rintaro Sep 28, 2019
ad4d623
Merge pull request #27382 from theblixguy/fix/SR-11522
theblixguy Sep 28, 2019
4bc4030
Catch failures earlier caused by premature requests for extended nominal
Sep 24, 2019
4012a20
MetadataReader: Add an API for reading absolute pointers.
jckarter Sep 28, 2019
d1c87f3
Merge pull request #24270 from natecook1000/nc_lazyscan_fix
swift-ci Sep 29, 2019
a2fca13
[ClangImporter] In `shouldIgnoreMacro()` Use `Preprocessor::getSpelli…
akyrtzi Sep 29, 2019
ce5295b
build-script: new spelling for swift compiler
compnerd Sep 29, 2019
111c892
Merge pull request #27434 from compnerd/swift-compiler
compnerd Sep 30, 2019
9ae7141
[Test] Modify Runtime.swift.gyb to only test 9999 availability when r…
mikeash Sep 30, 2019
ea81fdc
Merge pull request #27313 from davidungar/generic-request-or-extended…
Sep 30, 2019
40e4010
Merge pull request #27418 from jckarter/reflection-symbolic-absolute-…
jckarter Sep 30, 2019
91e4c0e
Merge pull request #27409 from xymus/fix-no-nsobject
xymus Sep 30, 2019
396dd73
Merge pull request #27437 from mikeash/fix-9999-available-testing-aga…
swift-ci Sep 30, 2019
471c747
[debug-utils] Split deleteAllDebugUses(ValueBase *) into SILValue and…
gottesmm Sep 30, 2019
882d9ef
Update master-rebranch config for swift-integration-tests repo
shahmishal Sep 30, 2019
439361e
Merge pull request #27432 from akyrtzi/check-macro-numeric-char
akyrtzi Sep 30, 2019
2ececec
Merge pull request #27439 from gottesmm/pr-26e70f126cf7c922fa4d390617…
gottesmm Sep 30, 2019
3571b1d
Merge pull request #27405 from gottesmm/pr-daa53ba2f8269780ddc64f9c0e…
gottesmm Sep 30, 2019
3522cbe
Merging swift-DEVELOPMENT-SNAPSHOT-2019-09-30-a into tensorflow
Oct 1, 2019
f78eccf
Update dependencies to new snapshot version 'swift-DEVELOPMENT-SNAPSH…
Oct 1, 2019
7bc4a06
Work around the removal of getUnsafeMutablePointerType
Oct 2, 2019
3ad4b92
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-m…
Oct 2, 2019
b1eb221
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-m…
dan-zheng Oct 2, 2019
7569ff1
[WIP] [AutoDiff] Fix AllocStack SILDebugVariable assertion failure. (…
dan-zheng Oct 2, 2019
329e65d
Merge remote-tracking branch 'upstream/tensorflow' into tensorflow-merge
Oct 2, 2019
bf3cfef
Update the LLDB sha
Oct 2, 2019
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
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Swift Next
mutableSelf.someProperty = newValue // Okay
}
}
```
```

* [SE-0253][]:

Expand Down Expand Up @@ -145,6 +145,8 @@ Swift Next
Swift 5.1
---------

### 2019-09-20 (Xcode 11.0)

* [SR-8974][]:

Duplicate tuple element labels are no longer allowed, because it leads
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ if(SWIFT_NEED_EXPLICIT_LIBDISPATCH)
-DCMAKE_CXX_COMPILER=${SWIFT_LIBDISPATCH_CXX_COMPILER}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DCMAKE_LINKER=${CMAKE_LINKER}
-DCMAKE_RANLIB=${CMAKE_RANLIB}
Expand Down
9 changes: 8 additions & 1 deletion cmake/modules/SwiftSource.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,13 @@ function(_compile_swift_files
set(module_base "${module_dir}/${SWIFTFILE_MODULE_NAME}")
if(SWIFTFILE_SDK IN_LIST SWIFT_APPLE_PLATFORMS)
set(specific_module_dir "${module_base}.swiftmodule")
set(specific_module_private_dir "${specific_module_dir}/Private")
set(source_info_file "${specific_module_private_dir}/${SWIFTFILE_ARCHITECTURE}.swiftsourceinfo")
set(module_base "${module_base}.swiftmodule/${SWIFTFILE_ARCHITECTURE}")
else()
set(specific_module_dir)
set(specific_module_private_dir)
set(source_info_file "${module_base}.swiftsourceinfo")
endif()
set(module_file "${module_base}.swiftmodule")
set(module_doc_file "${module_base}.swiftdoc")
Expand Down Expand Up @@ -362,7 +366,8 @@ function(_compile_swift_files
swift_install_in_component(DIRECTORY "${specific_module_dir}"
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${library_subdir}"
COMPONENT "${SWIFTFILE_INSTALL_IN_COMPONENT}"
OPTIONAL)
OPTIONAL
PATTERN "Private" EXCLUDE)
else()
swift_install_in_component(FILES ${module_outputs}
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/${library_subdir}"
Expand Down Expand Up @@ -503,9 +508,11 @@ function(_compile_swift_files
COMMAND
"${CMAKE_COMMAND}" "-E" "make_directory" ${module_dir}
${specific_module_dir}
${specific_module_private_dir}
COMMAND
"${PYTHON_EXECUTABLE}" "${line_directive_tool}" "@${file_path}" --
"${swift_compiler_tool}" "-emit-module" "-o" "${module_file}"
"-emit-module-source-info-path" "${source_info_file}"
${swift_flags} ${swift_module_flags} "@${file_path}"
${command_touch_module_outputs}
OUTPUT ${module_outputs}
Expand Down
3 changes: 2 additions & 1 deletion docs/ABI/Mangling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ Entities
entity-spec ::= type 'fu' INDEX // implicit anonymous closure
entity-spec ::= 'fA' INDEX // default argument N+1 generator
entity-spec ::= 'fi' // non-local variable initializer
entity-spec ::= 'fP' // property wrapper backing initializer
entity-spec ::= 'fD' // deallocating destructor; untyped
entity-spec ::= 'fd' // non-deallocating destructor; untyped
entity-spec ::= 'fE' // ivar destroyer; untyped
Expand Down Expand Up @@ -480,7 +481,7 @@ Types
type ::= 'Bf' NATURAL '_' // Builtin.Float<n>
type ::= 'Bi' NATURAL '_' // Builtin.Int<n>
type ::= 'BI' // Builtin.IntLiteral
type ::= 'BO' // Builtin.UnknownObject
type ::= 'BO' // Builtin.UnknownObject (no longer a distinct type, but still used for AnyObject)
type ::= 'Bo' // Builtin.NativeObject
type ::= 'Bp' // Builtin.RawPointer
type ::= 'Bt' // Builtin.SILToken
Expand Down
2 changes: 1 addition & 1 deletion docs/ARCOptimization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ is_unique performs depends on the argument type:

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

- Bridged object types allow the dynamic object type check to be
bypassed based on the pointer encoding:
Expand Down
13 changes: 0 additions & 13 deletions docs/CToSwiftNameTranslation.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,19 +370,6 @@ extension Counter {
}
```

The getter/setter syntax also allows for subscripts by using the base name `subscript`.

```objc
__attribute__((swift_name("getter:LinkedListOfInts.subscript(self:_:)")))
int LinkedListGetAtIndex(const LinkedListOfInts *head, int index);
```

```swift
extension LinkedListOfInts {
subscript(_ index: Int32) -> Int32 { get }
}
```

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.

```objc
Expand Down
1 change: 0 additions & 1 deletion include/swift/AST/ASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,6 @@ class ASTContext final {
const CanType TheAnyType; /// This is 'Any', the empty protocol composition
const CanType TheNativeObjectType; /// Builtin.NativeObject
const CanType TheBridgeObjectType; /// Builtin.BridgeObject
const CanType TheUnknownObjectType; /// Builtin.UnknownObject
const CanType TheRawPointerType; /// Builtin.RawPointer
const CanType TheUnsafeValueBufferType; /// Builtin.UnsafeValueBuffer
const CanType TheSILTokenType; /// Builtin.SILToken
Expand Down
3 changes: 3 additions & 0 deletions include/swift/AST/ASTMangler.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ class ASTMangler : public Mangler {
SymbolKind SKind);

std::string mangleInitializerEntity(const VarDecl *var, SymbolKind SKind);
std::string mangleBackingInitializerEntity(const VarDecl *var,
SymbolKind SKind);

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

Expand Down Expand Up @@ -329,6 +331,7 @@ class ASTMangler : public Mangler {
void appendDefaultArgumentEntity(const DeclContext *ctx, unsigned index);

void appendInitializerEntity(const VarDecl *var);
void appendBackingInitializerEntity(const VarDecl *var);

CanType getDeclTypeForMangling(const ValueDecl *decl,
GenericSignature *&genericSig,
Expand Down
34 changes: 19 additions & 15 deletions include/swift/AST/ASTTypeIDZone.def
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,29 @@
// for use with the TypeID template.
//
//===----------------------------------------------------------------------===//
SWIFT_TYPEID_NAMED(NominalTypeDecl *, NominalTypeDecl)
SWIFT_TYPEID_NAMED(VarDecl *, VarDecl)
SWIFT_TYPEID_NAMED(ValueDecl *, ValueDecl)
SWIFT_TYPEID_NAMED(ProtocolDecl *, ProtocolDecl)
SWIFT_TYPEID_NAMED(Decl *, Decl)
SWIFT_TYPEID_NAMED(ModuleDecl *, ModuleDecl)
SWIFT_TYPEID(Type)
SWIFT_TYPEID(TypePair)

SWIFT_TYPEID(AncestryFlags)
SWIFT_TYPEID(CtorInitializerKind)
SWIFT_TYPEID(PropertyWrapperBackingPropertyInfo)
SWIFT_TYPEID(PropertyWrapperTypeInfo)
SWIFT_TYPEID(CtorInitializerKind)
SWIFT_TYPEID(Requirement)
SWIFT_TYPEID(ResilienceExpansion)
SWIFT_TYPEID_NAMED(Optional<PropertyWrapperMutability>, PropertyWrapperMutability)
SWIFT_TYPEID(Type)
SWIFT_TYPEID(TypePair)
SWIFT_TYPEID_NAMED(CustomAttr *, CustomAttr)
SWIFT_TYPEID_NAMED(OperatorDecl *, OperatorDecl)
SWIFT_TYPEID_NAMED(TypeAliasDecl *, TypeAliasDecl)
SWIFT_TYPEID(AncestryFlags)
SWIFT_TYPEID_NAMED(Decl *, Decl)
SWIFT_TYPEID_NAMED(GenericParamList *, GenericParamList)
SWIFT_TYPEID_NAMED(GenericSignature *, GenericSignature)
SWIFT_TYPEID_NAMED(GenericTypeParamType *, GenericTypeParamType)
SWIFT_TYPEID(Requirement)
SWIFT_TYPEID_NAMED(InfixOperatorDecl *, InfixOperatorDecl)
SWIFT_TYPEID_NAMED(IterableDeclContext *, IterableDeclContext)
SWIFT_TYPEID_NAMED(GenericParamList *, GenericParamList)
SWIFT_TYPEID_NAMED(ModuleDecl *, ModuleDecl)
SWIFT_TYPEID_NAMED(NominalTypeDecl *, NominalTypeDecl)
SWIFT_TYPEID_NAMED(OperatorDecl *, OperatorDecl)
SWIFT_TYPEID_NAMED(Optional<PropertyWrapperMutability>,
PropertyWrapperMutability)
SWIFT_TYPEID_NAMED(PrecedenceGroupDecl *, PrecedenceGroupDecl)
SWIFT_TYPEID_NAMED(ProtocolDecl *, ProtocolDecl)
SWIFT_TYPEID_NAMED(TypeAliasDecl *, TypeAliasDecl)
SWIFT_TYPEID_NAMED(ValueDecl *, ValueDecl)
SWIFT_TYPEID_NAMED(VarDecl *, VarDecl)
4 changes: 4 additions & 0 deletions include/swift/AST/ASTTypeIDs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@
#include "swift/Basic/TypeID.h"
namespace swift {

class AbstractFunctionDecl;
class BraceStmt;
class CustomAttr;
class Decl;
class GenericParamList;
class GenericSignature;
class GenericTypeParamType;
class InfixOperatorDecl;
class IterableDeclContext;
class ModuleDecl;
class NominalTypeDecl;
class OperatorDecl;
class PrecedenceGroupDecl;
struct PropertyWrapperBackingPropertyInfo;
struct PropertyWrapperTypeInfo;
enum class CtorInitializerKind;
Expand Down
Loading