Files
swift-mirror/include/swift/Subsystems.h
Henrik G. Olsson 406cc1d1f5 [ImportResolution] Override module imports for macros in namespaces
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.
2025-09-16 21:10:08 -07:00

17 KiB