[PATCH] D87534: Sema: introduce `__attribute__((__swift_name__))`

Saleem Abdulrasool via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 11:05:37 PDT 2020


compnerd created this revision.
compnerd added a reviewer: aaron.ballman.
Herald added a project: clang.
compnerd requested review of this revision.

This introduces the new `swift_name` attribute that allows annotating
interfaces with an alternate spelling for Swift.  This is used as part
of the importing mechanism to allow interfaces to be imported with a new
name into Swift.  It takes a parameter which is the Swift function name.
This parameter is validated to check if it matches the possible
transformed signature in Swift.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87534

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaDecl.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/SemaObjC/attr-swift-name.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87534.291277.patch
Type: text/x-patch
Size: 27676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200911/211c6568/attachment-0001.bin>


More information about the cfe-commits mailing list