swift
da23bcf1 - [cxx-interop] allow shared ref retain function to return self

Commit
200 days ago
[cxx-interop] allow shared ref retain function to return self Many existing C APIs for retaining references, including Apple's own, return the reference. Support this pattern, along with the existing void return signature, with when importing reference types from C++.
Author
Committer
Parents
  • include/swift/AST
    • File
      DiagnosticsClangImporter.def
  • lib/ClangImporter
    • File
      ImportDecl.cpp
  • test/Interop/Cxx/foreign-reference
    • File
      invalid-retain-operation-errors.swift