[all-commits] [llvm/llvm-project] 916b43: Sema: add support for `__attribute__((__swift_objc...

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Mon Sep 14 08:37:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 916b43403588a85425bbc82712427cf53ed877cc
      https://github.com/llvm/llvm-project/commit/916b43403588a85425bbc82712427cf53ed877cc
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/SemaObjC/attr-swift_objc_members.m

  Log Message:
  -----------
  Sema: add support for `__attribute__((__swift_objc_members__))`

This adds the `__swift_objc_members__` attribute to the semantic
analysis.  It allows for annotating ObjC interfaces to provide Swift
semantics indicating that the types derived from this interface will be
back-bridged to Objective-C to allow interoperability with Objective-C
and Swift.

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/D87395
Reviewed By: Aaron Ballman, Dmitri Gribenko




More information about the All-commits mailing list