[clang] [APINotes] Add support for SWIFT_RETURED_AS_UNRETAINED_BY_DEFAULT (PR #138699)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 6 14:00:30 PDT 2025


================
@@ -624,6 +624,13 @@ class TagTableInfo
                                         ReleaseOpLength - 1);
       Data += ReleaseOpLength - 1;
     }
+    unsigned DefaultOwnershipLength =
+        endian::readNext<uint16_t, llvm::endianness::little>(Data);
+    if (DefaultOwnershipLength > 0) {
----------------
fahadnayyar wrote:

For `ConformanceLength`, yes, but for `ImportAsLength`, `RetainOpLength`, and `ReleaseOpLength`, we'll stick to the current style. I'm keeping this style because this change is more closely tied to `SwiftImportAs` rather than `SwiftConformance`.

https://github.com/llvm/llvm-project/pull/138699


More information about the cfe-commits mailing list