swift
bca7330f - Respect NS_REFINED_FOR_SWIFT importing anon enums

Commit
2 years ago
Respect NS_REFINED_FOR_SWIFT importing anon enums When an anonymous enum is imported, its imported name is under some circumstances derived from the type that it is backed by. NS_REFINED_FOR_SWIFT is a macro that produces a __attribute__((swift_private)) that when attached to a declaration, the imported name of this declaration should have two underscores prepended. When the name anonymous enum is derived from another declaration, and said declaration does not have the same swift private attribute, the __ is dropped. This patch fixes this.
Author
Nuri Amari
Committer
Nuri Amari
Parents
Loading