Description
C Macros cannot be marked as constants or private when holding a value. As a result there is no way to provide a SwiftName for them, and the compiler provides no insight as to why this is skipped
Reproduction
Try to give a SwiftName to any C macro or declaration to rename it.
Expected behavior
That at least an error or warning explaining why this won't work is printed
Environment
Swift version 6.3.2 (swift-6.3.2-RELEASE)
Target: x86_64-unknown-windows-msvc
Build config: +assertions
Additional information
No response
Description
C Macros cannot be marked as constants or private when holding a value. As a result there is no way to provide a
SwiftNamefor them, and the compiler provides no insight as to why this is skippedReproduction
Try to give a
SwiftNameto any C macro or declaration to rename it.Expected behavior
That at least an error or warning explaining why this won't work is printed
Environment
Swift version 6.3.2 (swift-6.3.2-RELEASE)
Target: x86_64-unknown-windows-msvc
Build config: +assertions
Additional information
No response