Files
swift-mirror/test/Macros/macros_diagnostics.swift
Rintaro Ishizaki 8519e71602 [Macros] Don't include attr range when checking macro definition
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
2025-05-06 16:55:42 -07:00

13 KiB