================
@@ -542,6 +542,9 @@ class FunctionInfo : public CommonEntityInfo {
   /// The result type of this function, as a C type.
   std::string ResultType;
 
+  /// Swift name of this entity.
+  std::string SwiftReturnOwnership;
----------------
Xazax-hun wrote:

We talked about this with Egor offline. I am also OK with the string approach, 
looks like users can already inject arbitrary `SwiftAttr` using existing 
annotations. So we do not open up new things. That being said, one advantage of 
the enum approach is that the user might get a better diagnostic when something 
is misspelled. 

https://github.com/llvm/llvm-project/pull/118938
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to