mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For macro definition checking, we use the range of the `macro`
declaration and re-parse it with `SwiftParser`. Previously it uses the
range including the attributes, but that can result invalid code because
the attribute can be in a `#if ... #endif` region.
Since we don't use attributes for checking the definition, just use the
range without the attributes instead.
rdar://150805795
(cherry picked from commit 8519e71602)
13 KiB
13 KiB