[clang] [APINotes] Support C++ tag conformances to Swift protocols (PR #102664)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 10 12:56:43 PDT 2024


================
@@ -1230,6 +1231,12 @@ class TagTableInfo : public CommonTypeTableInfo<TagTableInfo, TagInfo> {
     } else {
       writer.write<uint16_t>(0);
     }
+    if (auto ConformsTo = TI.SwiftConformsTo) {
+      writer.write<uint16_t>(ConformsTo->size() + 1);
+      OS.write(ConformsTo->c_str(), ConformsTo->size());
----------------
compnerd wrote:

Nit: I think that `conformances` is a better name than `ConformsTo`.

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


More information about the cfe-commits mailing list