swift
526c6833 - [Swiftify] Fix __sized_by and nullable return values (#81693)

Comment changes are shownComment changes are hidden
Commit
48 days ago
[Swiftify] Fix __sized_by and nullable return values (#81693) Nullable return Spans did not include __swiftifyOverrideLifetime, resulting in a lifetime error when returning the Span. Meanwhile return values for __sized_by did not use the correct label for the call to the RawSpan initializer, using `count` instead of `byteCount`. rdar://151804085 rdar://151799287
Author
Parents
  • lib/Macros/Sources/SwiftMacros
    • File
      SwiftifyImportMacro.swift
  • test
    • Interop/C/swiftify-import
      • Inputs
        • File
          counted-by-lifetimebound.h
        • module.modulemap
        • File
          sized-by-lifetimebound.h
      • File
        counted-by-lifetimebound.swift
      • File
        sized-by-lifetimebound.swift
    • Macros/SwiftifyImport
      • CountedBy
        • File
          Nullable.swift
      • SizedBy
        • File
          Nullable.swift
        • File
          PointerReturn.swift