Commit Graph

60 Commits

Author SHA1 Message Date
Doug Gregor
f78f5729c3 Start requiring expression macros to be marked with @expression 2022-12-22 09:18:05 -08:00
Alastair Houghton
da51c04116 Two of the macros tests are failing to import SwiftDiagnostics.
Disabling these for now, pending a fix.
2022-12-22 09:45:59 +00:00
Doug Gregor
3be6344619 Eliminate dependencies on _SwiftSyntaxMacros having actual macros in it 2022-12-14 16:13:48 -08:00
Doug Gregor
54625a3a70 Only diagnose a missing external macro definition when we try to expand 2022-12-12 13:18:13 -08:00
Doug Gregor
a9ee5dd142 [Macros] Don't allow local names to shadow macro names. 2022-11-28 18:33:10 -08:00
Doug Gregor
1a10009cae [Macro] Diagnose macros declared in nested scopes 2022-11-28 18:33:10 -08:00
Doug Gregor
ab9608cd78 [Macros] Add tests for redeclarations of macros 2022-11-28 18:33:10 -08:00
Doug Gregor
e2c66cb67d [Macros] Check access control and availability 2022-11-28 18:33:10 -08:00
Doug Gregor
4f823c60be [Macros] Ensure that macros cannot return opaque result types 2022-11-28 18:33:10 -08:00
Doug Gregor
3c80b714bf [Macros] Fix end location of macro declarations with where clauses 2022-11-28 18:33:10 -08:00