[all-commits] [llvm/llvm-project] 58cdbf: Sema: add support for `__attribute__((__swift_priv...

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Fri Sep 25 15:42:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 58cdbf518b6ebaee59d0492375e2e8f7da87ca41
      https://github.com/llvm/llvm-project/commit/58cdbf518b6ebaee59d0492375e2e8f7da87ca41
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/AST/attr-swift_private.m
    A clang/test/SemaObjC/attr-swift_private.m

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

This attribute allows declarations to be restricted to the framework
itself, enabling Swift to remove the declarations when importing
libraries.  This is useful in the case that the functions can be
implemented in a more natural way for 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/D87720
Reviewed By: Aaron Ballman




More information about the All-commits mailing list