Commit Graph

16 Commits

Author SHA1 Message Date
Anthony Latsis
2cd90bdd69 AST: Quote attributes more consistently in DiagnosticsSema.def 2025-04-22 18:23:36 +01:00
Daniel Rodríguez Troitiño
ba68faaed5 [test] Mark tests that use experimental/upcoming features as such
Find all the usages of `--enable-experimental-feature` or
`--enable-upcoming-feature` in the tests and replace some of the
`REQUIRES: asserts` to use `REQUIRES: swift-feature-Foo` instead, which
should correctly apply to depending on the asserts/noasserts mode of the
toolchain for each feature.

Remove some comments that talked about enabling asserts since they don't
apply anymore (but I might had miss some).

All this was done with an automated script, so some formatting weirdness
might happen, but I hope I fixed most of those.

There might be some tests that were `REQUIRES: asserts` that might run
in `noasserts` toolchains now. This will normally be because their
feature went from experimental to upcoming/base and the tests were not
updated.
2024-11-02 11:46:46 -07:00
Kavon Farvardin
1502231a69 disable the test entirely to get CI fully unblocked 2024-01-10 12:52:53 -08:00
Kavon Farvardin
1e843245ce disable in macOS & x86_64 until investigation 2024-01-09 11:17:20 -08:00
Kavon Farvardin
f07437a250 temporarily disable test on simulator
See https://github.com/apple/swift/issues/70776 for details.
2024-01-08 14:47:07 -08:00
Yuta Saito
79b3d2d626 Add underscore prefix to extern attribute
It's already guarded by a feature flag, but it would be nice to signal
users that it's not stable yet by adding an underscore prefix.
2023-11-07 02:01:02 +00:00
Yuta Saito
69479933df [c-interop] Rename @_extern to @extern
Now the feature is gated by experimental feature flag.
It's not shipped in any language release, so this rename should be fine.
2023-10-20 17:37:43 +00:00
Yuta Saito
03ed46aa74 [c-interop] Gate @_extern behind experimental feature flag 2023-10-20 17:04:36 +00:00
Yuta Saito
402cb6408d [c-interop][test] Cover default argument values with @_extern 2023-10-20 15:34:09 +00:00
Yuta Saito
b62171a2c7 [c-interop] Relax C name validation as warning
And allow expert users to use potentially invalid symbols by specifying
it explicitly.
2023-10-20 15:34:09 +00:00
Yuta Saito
7767f6d272 [c-interop] Ban non-ASCII identifiers in @_extern(c) conservatively 2023-10-20 15:34:09 +00:00
Yuta Saito
a1b8687867 [c-interop] Reject @_silgen_name with @_extern
To avoid ambiguity at SIL level name since both tries to change the SIL
level name.
2023-10-20 15:34:09 +00:00
Yuta Saito
5978df083a [c-interop] Check interface C compatibility only for @_extern(c)
`@_extern(wasm)` has no limitation on the function interface, so the
check should be applied only for `@_extern(c)`.
2023-10-20 15:34:09 +00:00
Yuta Saito
2b4c0c7bf6 [c-interop][test] Disable availablity checks to test async interface 2023-10-20 15:34:09 +00:00
Yuta Saito
b27fd9a616 [c-interop] Add @_extern(c) attribute to declare C function in Swift 2023-10-20 15:34:08 +00:00
Yuta Saito
bd898b0e7e [wasm] add @_extern(wasm) attribute support
This attribute instructs the compiler that this function declaration
should be "import"ed from host environment. It's equivalent of Clang's
`__attribute__((import_module("module"), import_name("field")))`
2023-10-10 22:42:08 +00:00