Commit Graph

2 Commits

Author SHA1 Message Date
Doug Gregor
cfda29ccd4 [SE-0397] Enable freestanding declaration macros by default.
This proposal has been accepted. Move the feature flag from "experimental"
to "always enabled". Tracked by rdar://108637367.
2023-05-24 09:16:55 -07:00
Richard Wei
3ba2f877ab [Macros] Diagnose top-level expansion of undefined freestanding macro
The root problem is that `ResolveMacroRequest` was shortcuting after calling `lookupMacros`. When type-checking a freestanding macro, it shouldn't need to call `lookupMacros` at all, but should go straight to CSGen.

rdar://108280416
2023-04-25 18:59:42 -07:00