diff options
author | Egor Zhdan <e_zhdan@apple.com> | 2024-08-13 12:47:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-13 12:47:23 +0100 |
commit | dc8c217db6329f03a116ef63dafa6de02913d311 (patch) | |
tree | 8435ba21c68d680bee3b7e53fb5c439636eb18db /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | d550ada5ab6cd6e49de71ac4c9aa27ced4c11de0 (diff) | |
download | llvm-dc8c217db6329f03a116ef63dafa6de02913d311.zip llvm-dc8c217db6329f03a116ef63dafa6de02913d311.tar.gz llvm-dc8c217db6329f03a116ef63dafa6de02913d311.tar.bz2 |
[APINotes] Support C++ tag conformances to Swift protocols
This allows adding a Clang attribute
`swift_attr("conforms_to:ModuleName.ProtocolName")` to C++ structs via
API Notes.
The Swift compiler respects this attribute when importing C++ types into
Swift by automatically declaring the C++ type as a conforming type to
the given Swift protocol.
rdar://131388824
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions