Sema: add support for `__attribute__((__swift_bridged_typedef__))`
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Sep 2020 22:49:41 +0000 (22:49 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 15 Sep 2020 20:15:34 +0000 (20:15 +0000)
commit7d26d6a1b062f7ce820b02b39d102d5f8f15fa5f
tree202f572677fa8f5aaf08addc650a4af544513be2
parentc19fda9aa073254c0979301bd57d875608329fa2
Sema: add support for `__attribute__((__swift_bridged_typedef__))`

Extend the semantic attributes that clang processes for Swift to include
`swift_bridged_typedef`.  This attribute enables typedefs to be bridged
into Swift with a bridged name.

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/D87396
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_bridged_typedef.m [new file with mode: 0644]
clang/test/AST/attr-swift_bridged_typedef.mm [new file with mode: 0644]
clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/SemaObjC/attr-swift_bridged_typedef.m [new file with mode: 0644]