Paolo Tranquilli
33b6ce7365
Swift: update formatting to clang-format 17.0.6
...
Also, added a format check in `swift.yml`.
2024-01-25 13:58:14 +01:00
Alex Denisov
8f3d31818c
Swift: fix autobuilder bug when Xcode failure breaks the whole autobuild process
2023-12-05 09:58:33 +01:00
Alex Denisov
eb3e140008
Swift: remove outdated CLI argument
2023-10-18 14:44:47 +02:00
Alex Denisov
5cce37baa9
Swift: update test expectations
2023-08-22 11:11:28 +02:00
Alex Denisov
6a5e539833
Swift: update test expectations
2023-08-18 13:18:02 +02:00
Alexandre Boulgakov
81372d0b63
Merge commit '36d86787e6fbbb158a148f93eb63f829134fd6b1' into alexdenisov+redsun82/tuple-mangling
2023-06-28 12:21:59 +01:00
Kasper Svendsen
8ce09438a0
Swift: Enable implicit this warnings for remaining packs
2023-06-27 12:09:27 +02:00
Paolo Tranquilli
ab3b87a3f2
Swift: add nested generic function to test
2023-05-31 09:52:20 +02:00
Paolo Tranquilli
2fb6cdc19b
Merge branch 'main' into alexdenisov+redsun82/tuple-mangling
2023-05-24 11:16:59 +02:00
Alexandre Boulgakov
b3e76d6052
Swift: Drop support for plaintext diagnostics (and helpLinks).
...
The recommended option is Markdown diagnostics, and we have already migrated everything to emit them. The empty help link we're currently emitting everywhere is a bug.
2023-05-19 15:16:02 +01:00
Alexandre Boulgakov
1e9b849e93
Merge branch 'main' into redsun82/swift-diagnostics-wording
2023-05-19 14:43:01 +01:00
Alexandre Boulgakov
5bb2eb4155
Swift: TSP message wording changes.
...
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com >
2023-05-19 14:37:18 +01:00
Alexandre Boulgakov
ddcac20a94
Swift: TSP message wording changes.
...
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com >
2023-05-19 14:36:14 +01:00
Alexandre Boulgakov
8a15af5614
Swift: TSP message wording changes.
...
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com >
2023-05-19 14:36:04 +01:00
Alexandre Boulgakov
060a48571a
Swift: Emit diagnostics on assertion/expectation violations.
2023-05-16 19:40:00 +01:00
Paolo Tranquilli
42d40900d3
Swift: reword TSP diagnostics after doc team review
2023-05-16 17:52:02 +02:00
Paolo Tranquilli
cfcd26cf0d
Swift: support markdown TSP diagnostics
2023-05-15 13:48:24 +02:00
Paolo Tranquilli
9a555aea5f
Merge branch 'main' into redsun82/swift-diagnostics-locations
2023-05-15 10:01:45 +02:00
Paolo Tranquilli
95cd948f09
Swift: order help links in integration test checks
...
They are currently a set within the codeql cli.
2023-05-14 22:33:48 +02:00
Paolo Tranquilli
03f4625b5f
Swift: go back to explicit DIAGNOSE_ERROR macros
2023-05-12 06:30:58 +02:00
Alexandre Boulgakov
0915d2ad77
Swift: Emit a diagnostic when attempting to use the autobuilder on Linux.
2023-05-11 14:43:13 +01:00
Paolo Tranquilli
8534ba0218
Swift: surface error about unsupported SPM build
2023-05-10 14:31:33 +02:00
Paolo Tranquilli
c507754324
Swift: surface error about no viable swift targets found
2023-05-10 14:31:33 +02:00
Paolo Tranquilli
8f26c7e2d2
Swift: add one more help link to diagnostics
2023-05-09 10:52:26 +02:00
Paolo Tranquilli
e17a8d03ab
Swift: add diagnostic for no project found
2023-05-09 10:13:42 +02:00
Paolo Tranquilli
8079af7ed6
Swift: add autobuild failure diagnostics
2023-05-08 12:54:18 +00:00
Mathias Vorreiter Pedersen
1f018d69ab
Swift: Accept test changes.
2023-05-03 13:45:17 +01:00
Paolo Tranquilli
c65c65557d
Swift: accept string representation changes in test
2023-05-02 10:49:31 +02:00
Paolo Tranquilli
0aed7d56c2
Swift: more mangling
2023-05-02 10:45:42 +02:00
Paolo Tranquilli
2592129d83
Swift: mangle remaining unmangled types appearing during test run
2023-05-02 10:45:42 +02:00
Paolo Tranquilli
c8ca6057d3
Swift: mangle several new things
2023-05-02 10:45:40 +02:00
Paolo Tranquilli
4ac91ea1b2
Swift: mangle function types, type paramters, metatypes, dependent member types
2023-05-02 10:39:46 +02:00
Paolo Tranquilli
dcca0278b8
Swift: add more functions to deduplication test
2023-05-02 09:54:59 +02:00
Paolo Tranquilli
ab5b267a39
Swift: add GenericFunctionType to deduplication test
2023-05-02 09:54:04 +02:00
Paolo Tranquilli
2eb82fede7
Swift: restrict Type.ql for deduplication test
2023-05-02 09:52:34 +02:00
Paolo Tranquilli
b6146478dc
Swift: mangle nominal and bound generic types
2023-05-02 09:49:48 +02:00
Nora Dimitrijević
91a151ec2a
Swift: update tests
2023-04-26 15:47:20 +02:00
AlexDenisov
3cd0af6622
Merge pull request #12700 from github/redsun82/swift-fix-wmo
...
Swift: extract all source files in WMO mode
2023-03-30 18:01:48 +02:00
Geoffrey White
704e42cf22
Swift: Accept integration test changes (not sure what caused this exactly but it looks OK to me).
2023-03-29 15:49:44 +01:00
Paolo Tranquilli
f3f17791c3
Swift: extract all source files in WMO mode
...
WMO stands for whole module optimization. It's a compilation mode where
all sources of a module are compiled together, e.g.
```
swift-frontend -emit-module A.swift B.swift -o Module.swiftmodule
```
This is opposed to incremental mode, where one would do something like
```
swift-frontend -emit-module -primary-file A.swift B.swift -module-name Module -o Module~A.swiftmodule
swift-frontend -emit-module A.swift -primary-file B.swift -module-name Module -o Module~B.swiftmodule
swift-frontend -merge-modules Module~A.swiftmodule Module~B.swiftmodule -o Module.swiftmodule
```
In WMO mode we were skipping extraction of all files after the first
one, because we were filtering in only files with an associated output,
and internally swift only assigns the output to the first input file in
WMO mode (which is just an implementation detail).
This patch refines that filter, by getting all input source files in
case there are no primary inputs.
2023-03-29 10:39:58 +02:00
Paolo Tranquilli
91ce88e2d9
Swift: make deduplication test cross-platform
2023-03-14 11:24:03 +01:00
Paolo Tranquilli
fcd14a78ab
Swift: add an initial draft for a deduplication test
2023-03-13 15:55:45 +01:00
Paolo Tranquilli
50889b8fa1
Swift: move regex test to integration tests
2023-02-07 10:21:37 +01:00
Paolo Tranquilli
d201c1eadd
Swift: support linux-only tests
2023-02-07 09:41:06 +01:00
Paolo Tranquilli
20eaa34485
Swift: failing tests for linkage awareness
2023-01-18 10:07:46 +01:00
Paolo Tranquilli
874fe2b8f9
Swift: introduce an in-memory file hash cache
...
File hashing is now done internally in `SwiftFileInterception` (and
exported as a `getHashOfRealFile` function for future use in linkage
awareness), and using a per-process in-memory cache. The persistent
caching of paths is removed, so the solution is now robust against input
file changes during the build.
For the same reason, the hash to artifact mapping have the symlinks
reversed now. The artifacts themselves are stored using the hash as
filenames, and the original paths of the artifacts are reacreated in the
scratch dir with symlinks mostly for debugging purposes (to understand
what artifact each hash corresponds to, and to follow what was built by
the extractor).
2023-01-16 12:05:36 +01:00
Paolo Tranquilli
82d9edfabf
Merge branch 'main' into redsun82/swift-open-redirection
2023-01-09 08:44:02 +01:00
Nora Dimitrijević
893ec33da0
Swift: update .expected for integration tests
2022-12-15 11:28:02 -05:00
Paolo Tranquilli
3084eda28a
Swift: add swiftmodule hash map testing to frontend_invocations
2022-12-15 10:33:47 +01:00
Paolo Tranquilli
14fd89d482
Swift: generalize output redirection code
2022-12-14 18:26:48 +01:00