Sema: add support for `__attribute__((__swift_bridge__))`
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 9 Sep 2020 22:43:37 +0000 (22:43 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 16 Sep 2020 17:54:57 +0000 (17:54 +0000)
commit77a01d9498a79d2e6e3f366fdb363928f188ec11
tree16ef6a7ed864b4463b5aeed5936ca19609c641a1
parentf3c2e0bcee64b0905addaefe9cd0c9ad4d20ac6f
Sema: add support for `__attribute__((__swift_bridge__))`

This extends semantic analysis of attributes for Swift interoperability
by introducing the `swift_bridge` attribute.  This attribute enables
bridging Objective-C types to Swift specific types.

This is based on the work of the original changes in
https://github.com/llvm/llvm-project-staging/commit/8afaf3aad2af43cfedca7a24cd817848c4e95c0c

Differential Revision: https://reviews.llvm.org/D87532
Reviewed By: Aaron Ballman
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/AST/attr-swift_bridge.m [new file with mode: 0644]
clang/test/SemaObjC/attr-swift_bridge.m [new file with mode: 0644]