[clang] [clang][APINotes] Add support for the SwiftEscapable attribute (PR #115866)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 12 09:17:05 PST 2024


================
@@ -757,6 +763,15 @@ class TagInfo : public CommonTypeInfo {
     SwiftCopyable = Value.value_or(false);
   }
 
+  std::optional<bool> isSwiftEscapable() const {
+    return SwiftEscapableSpecified ? std::optional<bool>(SwiftEscapable)
+                                   : std::nullopt;
+  }
----------------
compnerd wrote:

```suggestion
  }

```

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


More information about the cfe-commits mailing list