If the retain or release function of a C++ foreign reference type (or SWIFT_SHARED_REFERENCE type) was not imported into swift because of any reasons, then we were just emitting this error:
cannot find retain/release function '<retain/release function name>' for reference type ''.
This is confusing to a C++ developer because the retain/release function clearly exists on C++ side. It is just not imported into swift because it violated some contract.
In this patch I am adding additional notes in such cases when retain/release functions are actually present on the C++ side, but are not imported into swift for whatever reason.
If the retain or release function of a C++ foreign reference type (or SWIFT_SHARED_REFERENCE type) was not imported into swift because of any reasons, then we were just emitting this error: cannot find retain/release function '<retain/release function name>' for reference type ''.
This is confusing to a C++ developer because the retain/release function clearly exists on C++ side. It is just not imported into swift because it violated some contract.
In this patch I am adding additional notes in such cases when retain/release functions are actually present on the C++ side, but are not imported into swift for whatever reason.
rdar://136834573