[all-commits] [llvm/llvm-project] 43efef: [APINotes] Support C++ tag conformances to Swift p...
Egor Zhdan via All-commits
all-commits at lists.llvm.org
Fri Aug 9 12:10:02 PDT 2024
Branch: refs/heads/users/egorzhdan/apinotes-conforms-to
Home: https://github.com/llvm/llvm-project
Commit: 43efef2e1bc48503df98d9f34af3e108f94c7d4e
https://github.com/llvm/llvm-project/commit/43efef2e1bc48503df98d9f34af3e108f94c7d4e
Author: Egor Zhdan <e_zhdan at apple.com>
Date: 2024-08-09 (Fri, 09 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