mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Contents in namespaces are imported to the bridging header module `__ObjC`. When macros attached to a decl imported from a namespace are expanded, they also end up in `__ObjC`. This prevents them from inheriting imports from the module they originated in. This patch implements a workaround by adding an alternative constructor to `ImportResolver` that takes an explicit origin module as input, overriding which module counts as the "parent" module.
17 KiB
17 KiB