[all-commits] [llvm/llvm-project] dc8c21: [APINotes] Support C++ tag conformances to Swift p...
Egor Zhdan via All-commits
all-commits at lists.llvm.org
Tue Aug 13 04:47:44 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc8c217db6329f03a116ef63dafa6de02913d311
https://github.com/llvm/llvm-project/commit/dc8c217db6329f03a116ef63dafa6de02913d311
Author: Egor Zhdan <e_zhdan at apple.com>
Date: 2024-08-13 (Tue, 13 Aug 2024)
Changed paths:
M clang/docs/APINotes.rst
M clang/include/clang/APINotes/Types.h
M clang/lib/APINotes/APINotesFormat.h
M clang/lib/APINotes/APINotesReader.cpp
M clang/lib/APINotes/APINotesWriter.cpp
M clang/lib/APINotes/APINotesYAMLCompiler.cpp
M clang/lib/Sema/SemaAPINotes.cpp
M clang/test/APINotes/Inputs/Headers/SwiftImportAs.apinotes
M clang/test/APINotes/swift-import-as.cpp
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list