Rintaro Ishizaki
02a604e7e7
[Tests/Macros] Add %target-codesign before %target-run
...
rdar://107658689
2023-04-05 12:48:09 -07:00
Ben Barham
e5a28caa9a
[Test] Fix swift_swift_parser feature and use in tests
...
The macro tests were all using "REQUIRES: OS=macosx" as a proxy for
"have the Swift Swift parser". There was an existing feature for this,
but it was just checking whether the path was passed through. Fix that
to use the same variable as in CMake.
Also remove all extraneous `-I` and `-L` to the host libs in the target
invocations.
2023-04-03 09:25:03 -07:00
Rintaro Ishizaki
1d2fd4223f
[Test] Add %host_triple and %host_sdkroot substitutions
...
Macro tests need to build host libraries/tools. We can't use %target-*
substitutions for that.
rdar://107398734
2023-03-31 07:41:41 -07:00
Holly Borla
c9a86ac4fa
[Macros] Diagnose macro expansions containing invalid declarations, such as
...
new macro decls or value decls whose names are not covered by the macro.
2023-03-04 15:31:24 -08:00
Doug Gregor
f88d2c638f
Clean up feature flags for macros.
...
Enable expression macros by default, and add separate feature flags for
attached and freestanding macros.
2023-03-02 14:34:59 -08:00
Alex Hoppen
ba5a727983
[Macros] Compile Macros tests with swift-version 5 instead of swift-version 4
2023-02-04 11:10:08 +01:00
Holly Borla
32a0705e90
[Macros] Use the singular 'memberAttribute' spelling for attached member
...
attribute macros.
2023-01-26 21:52:39 -08:00
Holly Borla
f6f57a8099
[Macros] Rename "synthesized member macros" to "member macros".
2023-01-26 21:52:36 -08:00
Holly Borla
e5ba38925a
[Macros] Allow one attached macro declaration to fulfill multiple roles.
2023-01-23 17:56:48 -08:00
Holly Borla
f1742fd721
[Macros] Initial implementation for synthesized member macro expansion.
2023-01-23 17:56:48 -08:00
Holly Borla
6fcd3f6557
[Macros] Enable composition of member attribute macros and accessor macros.
2023-01-17 18:54:16 -08:00
Erik Eckstein
bfa14e64dd
Revert "[Macros] Enable composition of member attribute macros and accessor macros."
...
It causes crashes in some Sema/SwiftUI tests in some configurations.
rdar://104297642
This reverts commit b8d65e1ed9 .
2023-01-17 13:30:27 +01:00
Holly Borla
b8d65e1ed9
[Macros] Enable composition of member attribute macros and accessor macros.
2023-01-15 10:11:00 -08:00