swift
f17b7c48 - [Macros] Freestanding declaration macros

Commit
2 years ago
[Macros] Freestanding declaration macros Add support for freestanding declaration macros. - Parse `@declaration` attribute. - Type check and expand `MacroExpansionDecl`. Known issues: - Generic macros are not yet handled. - Expansion does not work when the parent decl context is `BraceStmt`. Need to parse freestanding declaration macro expansions in `BraceStmt` as `MacroExpansionDecl`, and add expanded decls to name lookup.
Author
Committer
Parents
Loading