Support applying macros to imported-as-member declarations

This commit is contained in:
Doug Gregor
2024-09-16 15:19:22 -07:00
parent f255cf6922
commit ead028bb11
4 changed files with 30 additions and 1 deletions

View File

@@ -1,2 +1,9 @@
void async_divide(double x, double y, void (* _Nonnull completionHandler)(double x))
__attribute__((swift_attr("@macro_library.AddAsync")));
typedef struct SlowComputer {
} SlowComputer;
void computer_divide(const SlowComputer *computer, double x, double y, void (* _Nonnull completionHandler)(double x))
__attribute__((swift_attr("@macro_library.AddAsync")))
__attribute__((swift_name("SlowComputer.divide(self:_:_:completionHandler:)")));