swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.6k stars 10.37k forks source link

[cxx-interop] Implement annotating escapability for class template specs #76748

Closed Xazax-hun closed 1 day ago

Xazax-hun commented 1 month ago

We import class template specializations via type alias declarations. This patch adds logic to look for declaration attributes on the type alias declarations to mark the underlying class template specialization type as non-escapable.

Xazax-hun commented 1 month ago

@swift-ci please smoke test

Xazax-hun commented 1 day ago

We decided to only have conditional escapability and do not implement per-specialization annotation separately.