[Macros] Tighten restriction on non-expression macros not having return types

There is no reason to special-case `Void` to permit it. Rather, make
this a syntactic rule. Thanks to Alex Hoppen for the suggestion.
This commit is contained in:
Doug Gregor
2023-06-09 21:51:26 -07:00
parent 91d547f982
commit c78afdc6d1
4 changed files with 9 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ macro am1()
named, // expected-error{{introduced name kind 'named' requires a single argument '(name)'}}
arbitrary(a) // expected-error{{introduced name kind 'arbitrary' must not have an argument}}
)
macro am2() -> Void
macro am2()
// expected-error@-1{{macro 'am2()' requires a definition}}
#m1 + 1