Skip to content

Merge 7952f051a3401494655c09aa785a058a7c997c31 #117

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

Merged
merged 371 commits into from
Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
371 commits
Select commit Hold shift + click to select a range
8c8f5b1
Merge pull request #29588 from DougGregor/silence-the-listeners
swift-ci Feb 1, 2020
e056d46
[Type checker] Remove unused overload of typeCheckExpression().
DougGregor Feb 1, 2020
9fa03cd
[Type checker] Eliminate TypeCheckExprFlags::ConvertTypeIsOnlyAHint.
DougGregor Feb 1, 2020
25c2e02
[Type checker] Eliminate TypeCheckExprFlags::DisableStructuralChecks.
DougGregor Feb 1, 2020
8beb904
Merge pull request #29580 from compnerd/indirection
compnerd Feb 1, 2020
a493004
[Type checker] Remove unused IsInOutYield flag.
DougGregor Feb 1, 2020
c5ed8d6
[Constraint solver] Fix tautological assert.
DougGregor Feb 1, 2020
3190433
[Constraint system] Give SolutionApplicationTarget purpose.
DougGregor Feb 1, 2020
b6d9dcc
Merge pull request #29589 from DougGregor/expr-type-check-flag-cleanups
swift-ci Feb 1, 2020
6052288
[Sema/CSApply] Make sure that the member type references created for …
akyrtzi Feb 1, 2020
2c018ce
Merge pull request #29583 from compnerd/try-try-try-again
shahmishal Feb 1, 2020
b7b0a25
build: remove meaningless dependency
compnerd Jan 26, 2020
c964d18
Add target variant to -print-target-info
beccadax Feb 1, 2020
161061f
Pass target-variant through the driver for -print-target-info
beccadax Feb 1, 2020
ec46f5b
docs: update the repository name (NFC)
compnerd Feb 2, 2020
cc3b6a0
Merge pull request #29587 from rjmccall/export-check-diagnoser
rjmccall Feb 2, 2020
3b761dc
[Constraint system] Add a SolutionApplicationTarget-based typeCheckEx…
DougGregor Feb 2, 2020
1655f78
Merge pull request #29594 from compnerd/rename-repository
compnerd Feb 2, 2020
43742d7
Merge pull request #29593 from compnerd/meaningless
compnerd Feb 2, 2020
c5c7ed1
build: hoist `LINK_LIBRARIES` out of `_add_swift_executable_single`
compnerd Feb 2, 2020
70a417c
[ownership] Refactor checked conversion from ArrayRef<SILInstruction …
gottesmm Jan 28, 2020
178b0ff
add tests
tayloraswift Feb 2, 2020
8f91b9e
[ownership] Get rid of old entrypoint for creatingEndBorrow that take…
gottesmm Feb 2, 2020
a35cfa1
Merge pull request #29598 from compnerd/link-libraries
compnerd Feb 2, 2020
13072cf
Merge pull request #29519 from gottesmm/pr-a38b5f72b7fe7f2e4482b0456b…
swift-ci Feb 2, 2020
92864f1
[sil] Add SILArgument::getSingleTerminator() helper.
gottesmm Feb 2, 2020
52428ff
[Build System: build-script] Remove the host module from swift_build_…
Feb 2, 2020
4450ce3
[Build System: build-script] Remove the diagnostics module from swift…
Feb 2, 2020
a336904
Merge pull request #29599 from gottesmm/pr-762e321418ba69083a3400aa47…
swift-ci Feb 2, 2020
3c582f4
Merge pull request #29601 from gottesmm/pr-132affdd3523248eb7aada4eb4…
swift-ci Feb 2, 2020
ff49d97
Merge pull request #29602 from Rostepher/lto-link-job-defaults
Rostepher Feb 3, 2020
bf82284
[Python: flake8] Update the project .flake8 config to prepare for the…
Feb 2, 2020
e8f2119
Merge pull request #29603 from Rostepher/remove-diagnostics-module
Rostepher Feb 3, 2020
6c5c853
[ownership] Change guaranteed args from transformation terminators to…
gottesmm Feb 1, 2020
1ed9f7f
[ownership] Trivial/Any have both been merged in ValueOwnershipKind::…
gottesmm Feb 3, 2020
288a725
Merge pull request #29604 from Rostepher/blackened-flake8y-salmon
Rostepher Feb 3, 2020
f9b0f99
[semantic-arc] Attempt to handle indirect_mutating parameters that ar…
gottesmm Jan 27, 2020
f300b80
build: prevent `FILE_DEPENDS` from being used
compnerd Feb 3, 2020
d8c9ef8
[Type checker] Return folded expressions even on failure.
DougGregor Feb 3, 2020
52da2d6
[Constraint system] Extend SolutionApplicationTarget with an init pat…
DougGregor Feb 3, 2020
7148108
Merge pull request #29595 from DougGregor/generalize-solution-applica…
DougGregor Feb 3, 2020
365511c
[Constraint system] Remove TypeCheckExprFlags::ExpressionTypeMustBeOp…
DougGregor Feb 3, 2020
bcb18ea
Merge pull request #29606 from gottesmm/pr-9f47b4f61d7482fa90b57ac220…
gottesmm Feb 3, 2020
643227e
Merge pull request #29600 from gottesmm/pr-d1b175b6bba114b57173be25ad…
gottesmm Feb 3, 2020
9278fb8
[Constraint system] Eliminate TypeCheckExprFlags::ConvertTypeIsOpaque…
DougGregor Feb 3, 2020
9ce20c4
Merge pull request #29480 from gottesmm/pr-53b63ed55998c4245196c9d026…
gottesmm Feb 3, 2020
82b3420
Merge pull request #29609 from DougGregor/constraint-solver-remove-ye…
DougGregor Feb 3, 2020
fbc8457
Add profitability check to array-property-opt (#29236)
meg-gupta Feb 3, 2020
c09f397
Experiment, eliminate early semantic arc opts run.
gottesmm Feb 3, 2020
7934cdf
Merge pull request #29608 from compnerd/no-dependency
compnerd Feb 3, 2020
45d35eb
[FunctionBodyTimer] Fix `-warn-long-function-bodies`, whose behavior was
hborla Feb 3, 2020
6d67102
[TypeChecker/BuilderTransform] Make sure implicit load expression upd…
xedin Feb 3, 2020
7453d53
[TypeChecker/BuilderTransform] Switch to use `hasLValueType` instead …
xedin Feb 3, 2020
558262d
Merge pull request #29612 from hborla/warn-long-function-bodies
hborla Feb 3, 2020
273500e
Driver: add an option to avoid emitting .swiftsourceinfo files
nkcsgexi Feb 3, 2020
c096e29
[Python: flake8] Update the utils/python_lint.py script to fail with …
Feb 3, 2020
51d6243
cmake: avoid emitting .swiftsourceinfo files for overlays
nkcsgexi Feb 3, 2020
aa5eb87
Merge pull request #29611 from gottesmm/pr-29886177aaeb616c1543a879b9…
gottesmm Feb 3, 2020
4be7828
[Gardening] Const-qualify some PoundDiagnosticDecl members
CodaFi Feb 3, 2020
b273ba2
Merge pull request #29614 from xedin/rdar-58972627
xedin Feb 3, 2020
b6b67c4
Merge pull request #29585 from akyrtzi/fix-missing-reference
akyrtzi Feb 3, 2020
c5365d4
Merge pull request #29616 from nkcsgexi/emit-no-source-info-overlay
nkcsgexi Feb 3, 2020
9ca298a
Merge pull request #29618 from CodaFi/constant-contact
swift-ci Feb 3, 2020
60ccf00
Merge pull request #29344 from apple/shahmishal/pr-preset-update
swift-ci Feb 3, 2020
1e74c39
[SourceKit] Expose `ExpectedTypeRelation` for the completion results
rintaro Feb 3, 2020
4d64059
Merge pull request #15150 from NevinBR/patch-1
CodaFi Feb 4, 2020
7ff9ba1
Merge pull request #29613 from Rostepher/no-more-flaky-flake8
Rostepher Feb 4, 2020
71aeffd
[CodeCompletion] Calculate type relation for EnumElementDecl
rintaro Feb 4, 2020
4aca39e
[Diagnostics] Provide a better fix-it when trying to boolean-negate a…
owenv Feb 4, 2020
0c0018f
[AutoDiff] Improve `getConstrainedDerivativeGenericSignature` helper.…
dan-zheng Feb 4, 2020
7d498b1
[SourceKit] Add test cases for type relation in code completion
rintaro Feb 4, 2020
77da6bd
[Constraint graph] Don't drop unidirectional constraints.
DougGregor Feb 4, 2020
f8eee50
[Constraint solver] Fix function builders with single-expression clos…
DougGregor Feb 4, 2020
6764366
Add SILGenSourceFileRequest
CodaFi Feb 4, 2020
b4771c2
Merge pull request #29591 from brentdax/stay-on-target
beccadax Feb 4, 2020
377b7b1
[pattern-match] Make sure that when we are extracting a tuple that we…
gottesmm Feb 4, 2020
166555c
[Diagnostics] Better diagnostic for integer used as a boolean condition
owenv Feb 4, 2020
36366bc
[Constraint solver] One SolutionApplicationTarget instance to rule th…
DougGregor Feb 4, 2020
9569714
Clarify method names in SolutionApplicationTarget.
DougGregor Feb 4, 2020
bbc0a95
[Constraint system] Simplify creation of contextual conversion constr…
DougGregor Feb 4, 2020
7e11809
Merge pull request #29632 from gottesmm/pr-0071f3d29aed40bc5467e019b4…
swift-ci Feb 4, 2020
3981a68
Merge pull request #29626 from DougGregor/function-builders-single-ex…
DougGregor Feb 4, 2020
08dca46
Merge pull request #29635 from DougGregor/simplify-solution-target
swift-ci Feb 4, 2020
c8f990b
ClangImporter: Don't force loading of all superclass members in loadN…
slavapestov Jan 21, 2020
95d9aa0
ClangImporter: Refactor importInheritedConstructors()
slavapestov Jan 22, 2020
7e7b6e8
ClangImporter: Fix up importSubscript() to not depend on import order
slavapestov Feb 4, 2020
6ba379f
ClangImporter: Refactor loadObjCMethods() to not call CollectMultiple…
slavapestov Feb 4, 2020
8280b20
Sema: Trigger lazy loading when recording potential selector conflicts
slavapestov Feb 4, 2020
d76a8ce
ClangImporter: Lazily load mirrored protocol members in classes
slavapestov Jan 10, 2020
713e636
Merge pull request #29454 from buttaface/skd-test
drodriguez Feb 4, 2020
e112581
[run-test] Fix --target and --param parsing.
drodriguez Feb 4, 2020
956b9f2
Merge pull request #29628 from owenv/condition_diags
xedin Feb 4, 2020
e631c66
[stdlib/private][os log] Annotate tiny helper functions in the new
ravikandhadai Feb 4, 2020
d0205d8
Merge pull request #26975 from slavapestov/nlml-fixes
slavapestov Feb 4, 2020
2f36375
[metadata prespecialization] Standardize checks to ref tables.
nate-chandler Jan 25, 2020
319cc79
Add a simple TaggedUnion defined in terms of ExternalUnion. NFC.
rjmccall Jan 31, 2020
543d649
[Diagnostics] Warn when the result of a Void-returning function is ig…
theblixguy Feb 4, 2020
849bd62
[AutoDiff upstream] Add SIL differentiability witnesses. (#29623)
dan-zheng Feb 4, 2020
dfeb482
NFC: Rename isStartOfDecl -> isStartOfSwiftDecl
hamishknight Jan 30, 2020
565634c
Handle decl modifier keywords in isStartOfSwiftDecl
hamishknight Jan 28, 2020
312f7dd
Parse Swift decls in one shot
hamishknight Jan 28, 2020
3d3a2a5
Remove redundant state from PersistentParserState
hamishknight Feb 2, 2020
353f396
Merge pull request #29630 from ravikandhadai/oslog-minor-changes
ravikandhadai Feb 4, 2020
e825ca1
[ClangImporter] Reject *all* attempts to redeclare properties
CodaFi Jan 31, 2020
e5aaa68
[sil] Do not eliminate (apply (partial_apply)) if the partial_apply c…
gottesmm Jan 25, 2020
aaed720
Merge pull request #29586 from rjmccall/tagged-union
rjmccall Feb 4, 2020
4570ba8
Refactor GenerateSILRequest into WMO and per-SF SILGen Requests
CodaFi Feb 4, 2020
c9b1723
Merge pull request #29561 from CodaFi/an-air-of-refinement
CodaFi Feb 4, 2020
206e3b1
SInt comparable
tayloraswift Feb 4, 2020
778f894
[MiscDiagnostics] Walk into the body of a non single-statement closure
hborla Feb 5, 2020
37655db
Merge pull request #29645 from gottesmm/pr-4435ac48330e0dd08b30bf6fe8…
gottesmm Feb 5, 2020
c59bcfa
Sema: Fix performance regression by only checking for selector confli…
slavapestov Feb 5, 2020
19a8759
Merge branch 'master' into comparable-enums
tayloraswift Feb 5, 2020
6c29541
Merge pull request #29652 from slavapestov/fix-selector-conflict-regr…
slavapestov Feb 5, 2020
8a76358
[build] avoid use generator expression to add linker parameter (#29636)
edymtt Feb 5, 2020
a7f2878
Fixes for FixedWidthInteger.random(in: ClosedRange<Self>, using:) (#2…
NevinBR Feb 5, 2020
07a69c4
[ConstraintSystem] Make variadics work with anonymous closure parameters
xedin Feb 5, 2020
307a2f0
Merge pull request #29566 from bitjammer/acgarland/rdar-58770554-ssg-…
bitjammer Feb 5, 2020
ff9d3ef
Merge pull request #29568 from bitjammer/acgarland/rdar-59055039-ssg-…
bitjammer Feb 5, 2020
960b5a2
Merge pull request #29629 from CodaFi/big-generator
CodaFi Feb 5, 2020
c722b1a
Merge pull request #29624 from rintaro/sourcekit-typerelation-rdar590…
rintaro Feb 5, 2020
99856ed
Merge pull request #29655 from xedin/rdar-41416758
xedin Feb 5, 2020
95d0d14
[ConstraintLocator] Add accessors for assignemnt and coerce expression
xedin Feb 3, 2020
9a05827
[TypeChecker] ForEach: Don't diagnose unrelated errors if type doesn'…
xedin Feb 3, 2020
0103041
[ConstraintSystem] Tidy up restriction handling in contextual failures
xedin Feb 4, 2020
fb0a484
[ConstraintSystem] Let `try?` infer type from sub-expression even wit…
xedin Feb 4, 2020
506cd7d
[ConstraintSystem] Let optional chaining infer a type from sub-expres…
xedin Feb 4, 2020
c5ae6c9
[ConstraintSystem] Detect missing/extraneous arguments even if there …
xedin Feb 5, 2020
fa659ed
[PrintAsObjc] add macro guard against potential recursive definitions
nkcsgexi Feb 5, 2020
8037f2f
Merge pull request #29619 from hamishknight/a-buffet-of-tokens
hamishknight Feb 5, 2020
e594622
Always mark the initial REPL file as typechecked
hamishknight Feb 4, 2020
5ed2847
Create a new module and SourceFile for REPL completion
hamishknight Jan 28, 2020
9208f5b
Remove StartElem params from various entry points
hamishknight Feb 4, 2020
4ca4d91
build: remove some left over variables
compnerd Jan 3, 2020
17abedf
[CodeCompletion] Introduce 'NotApplicable' type relation
rintaro Feb 5, 2020
c31bfae
[CodeCompletion] Introduce 'Unknown' type relation
rintaro Feb 5, 2020
a6bed21
[SIL Optimization] Make ArraySemantics.cpp aware of "array.uninitiali…
ravikandhadai Feb 4, 2020
1709b61
Merge pull request #29660 from nkcsgexi/macro-guard
nkcsgexi Feb 5, 2020
e9c51a0
[CodeCompletion] Report 'Unrelated' type relation for keywords
rintaro Feb 5, 2020
566a84d
[CodeCompletion] Handle new kinds in type relation printing
rintaro Feb 5, 2020
db6eb27
Sema: Only diagnose 'throws' in 'defer' as part of TypeCheckError
slavapestov Feb 5, 2020
cc8d496
[CodeCompletion] Ensure cached results have 'unknown' type relation
rintaro Feb 6, 2020
bca5511
Merge pull request #29643 from ravikandhadai/fix_dead_array_elim
ravikandhadai Feb 6, 2020
0cdaeb5
Merge pull request #29649 from hborla/function-builder-syntactic-diags
hborla Feb 6, 2020
0ae9e68
[metadata prespecialization] On by default.
nate-chandler Dec 11, 2019
ae1f41e
[metadata prespecialization] Only Apple or linux.
nate-chandler Feb 6, 2020
ead5b95
Merge pull request #29668 from slavapestov/fix-throws-in-defer-diagno…
slavapestov Feb 6, 2020
8238d2c
CI: adjust the temporary drive, unzip path
compnerd Feb 5, 2020
b1761fb
CI: tweak git config handling
compnerd Feb 5, 2020
102fe35
CI: disable python support in lldb
compnerd Feb 5, 2020
3423ee1
Merge pull request #29666 from compnerd/ci-broadening
compnerd Feb 6, 2020
fd88645
Added a document that explains how Swift imports C modules
gribozavr Jan 24, 2020
029afb1
Merge pull request #29431 from gribozavr/how-swift-imports-c
swift-ci Feb 6, 2020
a014248
Merge pull request #29665 from compnerd/dead-variables
compnerd Feb 6, 2020
b3750a7
Add a PrettyStackTrace for working with Clang types.
rjmccall Jan 31, 2020
4a97914
Merge pull request #29488 from nate-chandler/generic-metadata-prespec…
nate-chandler Feb 6, 2020
8679ca2
CI: stylistic changes to simplify script
compnerd Feb 6, 2020
96441c1
[CSFix] Account for nested structural errors related to function argu…
xedin Feb 5, 2020
2875aa8
[Diagnostics] Diagnose an attempt to init/use dictionary with array l…
xedin Feb 6, 2020
17f7598
[Diagnostics] NFC: Remove obsolete `diagnoseContextualConversionError`
xedin Feb 6, 2020
ea1b18f
Merge pull request #29667 from rintaro/ide-completion-typerelation-rd…
rintaro Feb 6, 2020
609c84b
benchmark: Make building with debug info the default (#29669)
vedantk Feb 6, 2020
4300f71
[metadata prespecialization] Available in 5.3.
nate-chandler Feb 6, 2020
9205758
[AutoDiff upstream] Add `SILFunctionType` utilities. (#29674)
dan-zheng Feb 6, 2020
94784f1
Merge pull request #29676 from nate-chandler/generic-metadata-prespec…
swift-ci Feb 6, 2020
02a676b
Merge pull request #29672 from xedin/eliminate-leftover-contextual-di…
xedin Feb 6, 2020
f17a70c
Fix a bug with the printing of optional typealiases.
rjmccall Feb 6, 2020
2b85835
Merge pull request #29664 from hamishknight/inout-decls
hamishknight Feb 6, 2020
b826b3c
[AST] Fix bug in `IndexSubset::findPrevious`. (#29675)
dan-zheng Feb 6, 2020
7d1411e
[Python] Update the utils/80+-check script to be Python 2/3 compatibl…
Feb 6, 2020
29a7edd
[Python] Update the .flake8 config file to lint all existing Python s…
Feb 6, 2020
b903382
ClangImporter: Fix importEnumCaseAlias() when the original is itself …
slavapestov Feb 6, 2020
c5718d5
SILGen: Fix crash with function conversions involving class-constrain…
slavapestov Feb 7, 2020
c3acd7f
Merge pull request #29692 from Rostepher/cleanup-80+-check
Rostepher Feb 7, 2020
2113df4
Improve testcase
adrian-prantl Feb 7, 2020
07bee5c
Bump SymbolGraph format version (NFC)
bitjammer Feb 7, 2020
b074c7a
Merge pull request #29637 from drodriguez/run-test-fix-target-type
drodriguez Feb 7, 2020
faee21b
Implement Swift serialization and deserialization of Clang types.
rjmccall Jan 31, 2020
4adeab8
Merge pull request #29693 from Rostepher/lint-all-python
Rostepher Feb 7, 2020
cd81ef1
Merge pull request #29694 from slavapestov/fix-function-conversion-pr…
slavapestov Feb 7, 2020
fc9ad01
Merge pull request #29697 from adrian-prantl/testfix
swift-ci Feb 7, 2020
b469389
Merge pull request #29670 from rjmccall/ciliainig-teyepee-sieeriiieai…
rjmccall Feb 7, 2020
1ed846d
Merge pull request #25696 from kelvin13/comparable-enums
CodaFi Feb 7, 2020
362047f
Merge pull request #29679 from slavapestov/fix-enum-error-case-alias
slavapestov Feb 7, 2020
9b93a08
[NFC] Add SE-0249 to changelog (#29686)
theblixguy Feb 7, 2020
a54fbab
[ConstraintSystem] Favor resolving closures over any disjunction bind…
xedin Feb 7, 2020
08225c0
[Python] Added a new python_format.py script to the utils directory w…
Feb 7, 2020
0e8f4d4
[SourceKit] Fix cursorinfo.modulename with sourceinfo
johnfairh Feb 7, 2020
bd26447
Merge pull request #29698 from bitjammer/acgarland/rdar-58853310-bump…
bitjammer Feb 7, 2020
7b064a6
[AutoDiff upstream] Add SIL differentiability witness serialization. …
dan-zheng Feb 7, 2020
d30ea11
Update docs/HowSwiftImportsCAPIs.md
benrimmington Feb 6, 2020
d92f7c7
Merge pull request #29700 from xedin/rdar-59208419
xedin Feb 7, 2020
3fb1707
SIL: add missing newline (NFC)
compnerd Feb 7, 2020
167fea2
Merge pull request #29701 from Rostepher/python-format-script
Rostepher Feb 7, 2020
b4386f4
Merge pull request #29705 from apple/compnerd-newline
swift-ci Feb 7, 2020
8841d6d
[gardening] Add a comment to BUILTIN_MISC_OPERATION_WITH_SILGEN that …
gottesmm Feb 7, 2020
1137c00
[builtin] Add a new SIL builtin convertStrongToUnownedUnsafe()
gottesmm Feb 6, 2020
f7f9888
[builtin] Add a new SIL builtin convertUnownedUnsafeToGuaranteed()
gottesmm Feb 6, 2020
e932580
Emit debug info for generic type aliases.
adrian-prantl Feb 7, 2020
a174243
[AutoDiff upstream] Add SIL differentiability witness IRGen. (#29704)
dan-zheng Feb 7, 2020
f56fee8
[ModuleInterface] Pass Through Flags for Nested Types Tables
CodaFi Feb 7, 2020
6093b79
test: loosen the differentiability witness test
compnerd Feb 7, 2020
94cd804
Merge pull request #29680 from gottesmm/pr-5cabc7ee4a3e006145b5d4716d…
gottesmm Feb 7, 2020
a7f113d
Merge pull request #29671 from compnerd/cmake-harder
compnerd Feb 7, 2020
9a8f55a
CI: use verbose mode during the CI runs
compnerd Feb 7, 2020
e200165
Merge pull request #29702 from johnfairh/cursorinfo-module-name
Feb 8, 2020
313d424
Merge pull request #29710 from CodaFi/cereal-is-a-soup-change-my-mind
CodaFi Feb 8, 2020
5f26e93
Merge pull request #29699 from adrian-prantl/59238327
swift-ci Feb 8, 2020
134cab6
Add regression test for https://bugs.swift.org/browse/SR-9225
slavapestov Feb 7, 2020
4f2a55b
[stdlib/private][OSLog] Support expressive, fprintf-style formatting
ravikandhadai Jan 28, 2020
4eaa520
Merge pull request #29711 from compnerd/tensorflow-testing
compnerd Feb 8, 2020
6ff129c
Move file only
Feb 8, 2020
eed603d
Merge pull request #29518 from ravikandhadai/oslog-string-formatting
swift-ci Feb 8, 2020
d2604a0
Merge pull request #29712 from compnerd/verbosity
swift-ci Feb 8, 2020
ec9844b
[SIL Optimization] Add a new mandatory pass for unrolling forEach
ravikandhadai Feb 4, 2020
dea51d6
Merge pull request #29714 from slavapestov/regression-test-sr-9225
slavapestov Feb 8, 2020
efd4152
[Constraint solver] Factor constraint generation logic for solution t…
DougGregor Feb 8, 2020
7c3cf1d
ClangImporter: Fix mirroring of instance properties as static methods…
slavapestov Feb 8, 2020
614f618
[Constraint system] Allow recording pattern types in the system.
DougGregor Feb 8, 2020
aea86ec
CI: expand `%ProgramFiles%` manually
compnerd Feb 8, 2020
d70c055
[Constraint system] Sink more init logic into SolutionApplicationTarget
DougGregor Feb 8, 2020
de5bc08
[Python: black] Update the utils/python_format.py script to accept a …
Feb 8, 2020
6de9f11
Merge pull request #29716 from compnerd/correctness-over-portability
swift-ci Feb 8, 2020
6301e02
Merge pull request #29677 from benrimmington/how-swift-imports-c
swift-ci Feb 8, 2020
a448656
CI: attempt to fix the index for swift
compnerd Feb 8, 2020
a840b1b
Merge pull request #29651 from ravikandhadai/oslog-forEach-unroll
ravikandhadai Feb 8, 2020
7b88f71
Merge pull request #29718 from Rostepher/flexible-format-script
Rostepher Feb 8, 2020
db47e45
[Tests][SILOptimizer] Make the new OSLogPrototypeFullOptTest.swift
ravikandhadai Feb 8, 2020
78737c2
Merge pull request #29724 from ravikandhadai/oslog-full-opt-test-fix
ravikandhadai Feb 8, 2020
9bfe1d2
Merge pull request #29720 from compnerd/refresh
compnerd Feb 9, 2020
d186228
Merge pull request #29721 from davidungar/move-file-only
Feb 9, 2020
caf2f62
Merge pull request #29717 from DougGregor/init-via-solution-target
DougGregor Feb 9, 2020
68f3341
Merge pull request #29715 from slavapestov/fix-static-method-mirrorin…
slavapestov Feb 9, 2020
3ac5ceb
Small fixes and debugging improvements for SwiftDriverTests
Feb 8, 2020
8e8d195
Merge pull request #29722 from davidungar/unit-test-users-v2
Feb 9, 2020
ced1c2b
test: repair the SourceKit test for Windows (NFC)
compnerd Feb 9, 2020
7f27d6b
Merge pull request #29730 from compnerd/r29667
shahmishal Feb 9, 2020
4b64be4
Add presets for source compat suite.
gottesmm Feb 9, 2020
c04131c
Merge pull request #29731 from gottesmm/pr-9ed4a1a42ee84888e7b5eb9544…
gottesmm Feb 9, 2020
704b0cc
Presets add missing preset default for build_swift test.
gottesmm Feb 10, 2020
91c974f
Merge pull request #29733 from gottesmm/pr-b341bf82efc02b09c6a2178f90…
gottesmm Feb 10, 2020
a60ada1
Gate a test that dumps stats on an asserts build
CodaFi Feb 10, 2020
7177f4a
Merge pull request #29736 from CodaFi/be-more-assertive
shahmishal Feb 10, 2020
f53b1a7
Revert "Emit debug info for generic type aliases. …"
shahmishal Feb 10, 2020
ec92253
Merge pull request #29737 from apple/revert-29699-59238327
gottesmm Feb 10, 2020
6d40e7b
XFAIL a test holding up the rebranch process
CodaFi Feb 10, 2020
d617e2f
Merge pull request #29743 from CodaFi/the-great-gates
shahmishal Feb 10, 2020
df31c72
Disable running indexstoreDB tests part of Swift pull request preset.…
shahmishal Feb 10, 2020
7952f05
Disable linux-fatal-backtrace.swift (59328972)
shahmishal Feb 10, 2020
2c84189
Merge remote-tracking branch 'swiftwasm/master' into merge/7952f051a3…
kateinoigakukun Feb 11, 2020
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
  •  
  •  
  •  
102 changes: 71 additions & 31 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,32 +1,72 @@
[flake8]
ignore = W291 W504
filename = *.py,
./utils/80+-check,
./utils/backtrace-check,
./benchmark/scripts/Benchmark_Driver,
./benchmark/scripts/Benchmark_DTrace.in,
./benchmark/scripts/Benchmark_GuardMalloc.in,
./benchmark/scripts/Benchmark_RuntimeLeaksRunner.in,
./utils/build-script,
./utils/check-incremental,
./test/Driver/Inputs/fake-toolchain/clang++,
./utils/coverage/coverage-build-db,
./utils/coverage/coverage-generate-data,
./utils/coverage/coverage-query-db,
./utils/coverage/coverage-touch-tests,
./utils/gyb,
./test/Driver/Inputs/fake-toolchain/ld,
./utils/line-directive,
./utils/swift_build_support/tests/mock-distcc,
./docs/scripts/ns-html2rst,
./utils/PathSanitizingFileCheck,
./utils/recursive-lipo,
./utils/round-trip-syntax-test,
./utils/rth,
./utils/run-remote,
./utils/run-test,
./utils/scale-test,
./utils/submit-benchmark-results,
./utils/update-checkout,
./utils/viewcfg,
./utils/symbolicate-linux-fatal,

filename =
*.py,

./benchmark/scripts/Benchmark_Driver,
./benchmark/scripts/Benchmark_DTrace.in,
./benchmark/scripts/Benchmark_GuardMalloc.in,
./benchmark/scripts/Benchmark_RuntimeLeaksRunner.in,

./docs/scripts/ns-html2rst,

./test/Driver/Inputs/fake-toolchain/clang++,
./test/Driver/Inputs/fake-toolchain/ld,

./utils/80+-check,
./utils/backtrace-check,
./utils/build-parser-lib,
./utils/build-script,
./utils/check-incremental,
./utils/coverage/coverage-build-db,
./utils/coverage/coverage-generate-data,
./utils/coverage/coverage-query-db,
./utils/coverage/coverage-touch-tests,
./utils/dev-scripts/blockifyasm,
./utils/dev-scripts/split-cmdline,
./utils/gyb,
./utils/line-directive,
./utils/PathSanitizingFileCheck,
./utils/recursive-lipo,
./utils/round-trip-syntax-test,
./utils/rth,
./utils/run-remote,
./utils/run-test,
./utils/scale-test,
./utils/submit-benchmark-results,
./utils/swift_build_support/tests/mock-distcc,
./utils/symbolicate-linux-fatal,
./utils/update-checkout,
./utils/viewcfg,

# TODO: We should be linting the lit configs.
#lit.cfg,

exclude =
.git,
__pycache__,

ignore =
# The black tool treats slices consistently, the E203 warning is not PEP8
# compliant (https://github.com/psf/black#slices).
E203,

# FIXME: We should not have trailing whitespace.
W291,

# Line breaks before binary operators are not explicitly disallowed in
# PEP8, rather it should be consistent throughout the project. The black
# tool puts them on new lines which is to be considered a best practice
# in the future.
W503,

# Similarly ignore line break after binary operators.
W504,

# TODO: Ignore Bugbear lints for now, but we should enable these in the
# future.
B,

# 10% larger than the standard 80 character limit. Conforms to the black
# standard and Bugbear's B950.
max-line-length = 88
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,23 @@ Swift 5.2
* `mutating func callAsFunction` is supported.
* `func callAsFunction` works with `throws` and `rethrows`.
* `func callAsFunction` works with trailing closures.

* [SE-0249][]:

A `\Root.value` key path expression is now allowed wherever a `(Root) -> Value`
function is allowed. Such an expression is implicitly converted to a key path
application of `{ $0[keyPath: \Root.value] }`.

For example:

```swift
struct User {
let email: String
let isAdmin: Bool
}

users.map(\.email) // this is equivalent to: users.map { $0[keyPath: \User.email] }
```

* [SR-4206][]:

Expand Down Expand Up @@ -7880,6 +7897,7 @@ Swift 1.0
[SE-0242]: <https://github.com/apple/swift-evolution/blob/master/proposals/0242-default-values-memberwise.md>
[SE-0244]: <https://github.com/apple/swift-evolution/blob/master/proposals/0244-opaque-result-types.md>
[SE-0245]: <https://github.com/apple/swift-evolution/blob/master/proposals/0245-array-uninitialized-initializer.md>
[SE-0249]: <https://github.com/apple/swift-evolution/blob/master/proposals/0249-key-path-literal-function-expressions.md>
[SE-0252]: <https://github.com/apple/swift-evolution/blob/master/proposals/0252-keypath-dynamic-member-lookup.md>
[SE-0253]: <https://github.com/apple/swift-evolution/blob/master/proposals/0253-callable.md>
[SE-0254]: <https://github.com/apple/swift-evolution/blob/master/proposals/0254-static-subscripts.md>
Expand Down
4 changes: 4 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ option(SWIFT_BENCHMARK_GENERATE_OPT_VIEW
set(SWIFT_BENCHMARK_OPT_VIEWER "" CACHE FILEPATH
"Path to opt-viewer")

option(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO
"Produce debug info for benchmarks"
TRUE)

if(SWIFT_BENCHMARK_OPT_VIEWER)
# If the path to the opt-viewer was specified manually and we have no access
# to the LLVM tree, assume we have the modules for the opt-viewer installed.
Expand Down
3 changes: 3 additions & 0 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ The following build options are available:
* Enable this option to link the benchmark binaries against the target
machine's Swift standard library and runtime installed with the OS.
(default: OFF)
* `-DSWIFT_BENCHMARK_GENERATE_DEBUG_INFO`
* Enable this option to compile benchmark binaries with debug info.
(default: ON)

The following build targets are available:

Expand Down
8 changes: 8 additions & 0 deletions benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ function (swift_benchmark_compile_archopts)
"-target" "${target}"
"-${BENCH_COMPILE_ARCHOPTS_OPT}" ${PAGE_ALIGNMENT_OPTION})

if(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO)
list(APPEND common_options "-g")
endif()

if (is_darwin)
list(APPEND common_options
"-I" "${srcdir}/utils/ObjectiveCTests"
Expand Down Expand Up @@ -384,6 +388,10 @@ function (swift_benchmark_compile_archopts)
"-target" "${target}"
"-${driver_opt}")

if(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO)
list(APPEND common_options_driver "-g")
endif()

if (is_darwin)
list(APPEND common_options_driver
"-sdk" "${sdk}"
Expand Down
44 changes: 31 additions & 13 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1416,10 +1416,27 @@ function(_add_swift_library_single target name)
# Include LLVM Bitcode slices for iOS, Watch OS, and Apple TV OS device libraries.
if(SWIFT_EMBED_BITCODE_SECTION AND NOT SWIFTLIB_SINGLE_DONT_EMBED_BITCODE)
if(${SWIFTLIB_SINGLE_SDK} MATCHES "(I|TV|WATCH)OS")
target_link_options(${target} PRIVATE
"LINKER:-bitcode_bundle"
$<$<BOOL:SWIFT_EMBED_BITCODE_SECTION_HIDE_SYMBOLS>:"LINKER:-bitcode_hide_symbols">
"LINKER:-lto_library,${LLVM_LIBRARY_DIR}/libLTO.dylib")
# The two branches of this if statement accomplish the same end result
# We are simply accounting for the fact that on CMake < 3.16
# using a generator expression to
# specify a LINKER: argument does not work,
# since that seems not to allow the LINKER: prefix to be
# evaluated (i.e. it will be added as-is to the linker parameters)
if(CMAKE_VERSION VERSION_LESS 3.16)
target_link_options(${target} PRIVATE
"LINKER:-bitcode_bundle"
"LINKER:-lto_library,${LLVM_LIBRARY_DIR}/libLTO.dylib")

if(SWIFT_EMBED_BITCODE_SECTION_HIDE_SYMBOLS)
target_link_options(${target} PRIVATE
"LINKER:-bitcode_hide_symbols")
endif()
else()
target_link_options(${target} PRIVATE
"LINKER:-bitcode_bundle"
$<$<BOOL:SWIFT_EMBED_BITCODE_SECTION_HIDE_SYMBOLS>:"LINKER:-bitcode_hide_symbols">
"LINKER:-lto_library,${LLVM_LIBRARY_DIR}/libLTO.dylib")
endif()
endif()
endif()
endif()
Expand Down Expand Up @@ -1554,6 +1571,9 @@ function(add_swift_host_library name)
if(ASHL_DEPENDS)
message(SEND_ERROR "library ${name} is using DEPENDS parameter which is deprecated. Please use add_dependencies instead")
endif()
if(ASHL_FILE_DEPENDS)
message(SEND_ERROR "library ${name} is using FILE_DEPENDS parameter which is deprecated.")
endif()
if(ASHL_LINK_LIBRARIES)
message(SEND_ERROR "library ${name} is using LINK_LIBRARIES parameter which is deprecated. Please use target_link_libraries instead")
endif()
Expand All @@ -1573,7 +1593,6 @@ function(add_swift_host_library name)
SDK ${SWIFT_HOST_VARIANT_SDK}
ARCHITECTURE ${SWIFT_HOST_VARIANT_ARCH}
LLVM_LINK_COMPONENTS ${ASHL_LLVM_LINK_COMPONENTS}
FILE_DEPENDS ${ASHL_FILE_DEPENDS}
INSTALL_IN_COMPONENT "dev"
)

Expand Down Expand Up @@ -2153,7 +2172,10 @@ function(add_swift_target_library name)

list(APPEND swiftlib_swift_compile_flags_all "-Fsystem" "${ios_support_frameworks_path}")
list(APPEND swiftlib_c_compile_flags_all "-iframework" "${ios_support_frameworks_path}")
list(APPEND swiftlib_link_flags_all "-F" "${ios_support_frameworks_path}")
# We collate -F with the framework path to avoid unwanted deduplication
# of options by target_compile_options -- this way no undesired
# side effects are introduced should a new search path be added.
list(APPEND swiftlib_link_flags_all "-F${ios_support_frameworks_path}")
endif()

if(sdk IN_LIST SWIFT_APPLE_PLATFORMS AND SWIFTLIB_IS_SDK_OVERLAY)
Expand Down Expand Up @@ -2523,6 +2545,9 @@ function(_add_swift_executable_single name)
if(SWIFTEXE_SINGLE_EXCLUDE_FROM_ALL)
message(SEND_ERROR "${name} is using EXCLUDE_FROM_ALL option which is deprecated.")
endif()
if(SWIFTEXE_SINGLE_LINK_LIBRARIES)
message(SEND_ERROR "${name} is using LINK_LIBRARIES parameter which is deprecated. Please use target_link_libraries instead")
endif()

# Check arguments.
precondition(SWIFTEXE_SINGLE_SDK MESSAGE "Should specify an SDK")
Expand Down Expand Up @@ -2557,12 +2582,6 @@ function(_add_swift_executable_single name)
LINK_LIBRARIES_VAR_NAME link_libraries
LIBRARY_SEARCH_DIRECTORIES_VAR_NAME library_search_directories)

_list_add_string_suffix(
"${SWIFTEXE_SINGLE_LINK_LIBRARIES}"
"-${SWIFT_SDK_${SWIFTEXE_SINGLE_SDK}_LIB_SUBDIR}-${SWIFTEXE_SINGLE_ARCHITECTURE}"
SWIFTEXE_SINGLE_LINK_LIBRARIES_TARGETS)
set(SWIFTEXE_SINGLE_LINK_LIBRARIES ${SWIFTEXE_SINGLE_LINK_LIBRARIES_TARGETS})

handle_swift_sources(
dependency_target
unused_module_dependency_target
Expand Down Expand Up @@ -2626,7 +2645,6 @@ function(_add_swift_executable_single name)
BINARY_DIR ${SWIFT_RUNTIME_OUTPUT_INTDIR}
LIBRARY_DIR ${SWIFT_LIBRARY_OUTPUT_INTDIR})

target_link_libraries("${name}" PRIVATE ${SWIFTEXE_SINGLE_LINK_LIBRARIES})
swift_common_llvm_config("${name}" ${SWIFTEXE_SINGLE_LLVM_LINK_COMPONENTS})

# NOTE(compnerd) use the C linker language to invoke `clang` rather than
Expand Down
7 changes: 1 addition & 6 deletions cmake/modules/SwiftSource.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,9 @@ function(_compile_swift_files
if(SWIFTFILE_SDK IN_LIST SWIFT_APPLE_PLATFORMS OR
SWIFTFILE_SDK STREQUAL "MACCATALYST")
set(specific_module_dir "${module_base}.swiftmodule")
set(specific_module_project_dir "${specific_module_dir}/Project")
set(source_info_file "${specific_module_project_dir}/${SWIFTFILE_ARCHITECTURE}.swiftsourceinfo")
set(module_base "${module_base}.swiftmodule/${SWIFTFILE_ARCHITECTURE}")
else()
set(specific_module_dir)
set(specific_module_project_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 @@ -622,11 +618,10 @@ function(_compile_swift_files
COMMAND
"${CMAKE_COMMAND}" "-E" "make_directory" ${module_dir}
${specific_module_dir}
${specific_module_project_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}"
"-avoid-emit-module-source-info"
${swift_flags} ${swift_module_flags} "@${file_path}"
${command_touch_module_outputs}
OUTPUT ${module_outputs}
Expand Down
Loading