mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Clang recently started wrapping more types in `clang::ElaboratedType` after this change: https://reviews.llvm.org/D112374 This broke some assumptions in ClangImporter, specifically in enum handling logic. This change adjusts those. Fixes these tests in rebranch: * `Interop/Cxx/enum/anonymous-with-swift-name-module-interface.swift` * `Interop/Cxx/enum/anonymous-with-swift-name-objc-module-interface.swift` * `Interop/Cxx/enum/anonymous-with-swift-name.swift` * `Interop/Cxx/enum/c-enums-NS_OPTIONS-NS_REFINED_FOR_SWIFT.swift` * `Interop/Cxx/enum/c-enums-NS_OPTIONS.swift` * `Interop/Cxx/enum/c-enums-withOptions-omit.swift` * `Interop/Cxx/class/inheritance/fields-module-interface.swift` * `Interop/Cxx/class/inheritance/fields.swift` * `Interop/Cxx/class/inheritance/functions-module-interface.swift` * `Interop/Cxx/class/inheritance/sub-types-module-interface.swift` * `Interop/Cxx/class/inheritance/type-aliases-module-interface.swift`
13 KiB
13 KiB