[all-commits] [llvm/llvm-project] 296d88: Sema: add support for `__attribute__((__swift_newt...
Saleem Abdulrasool via All-commits
all-commits at lists.llvm.org
Thu Sep 24 08:41:48 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 296d8832a3b5fe97725be62c5bbc721cc0e2cd20
https://github.com/llvm/llvm-project/commit/296d8832a3b5fe97725be62c5bbc721cc0e2cd20
Author: Saleem Abdulrasool <compnerd at compnerd.org>
Date: 2020-09-24 (Thu, 24 Sep 2020)
Changed paths:
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/AttrDocs.td
M clang/include/clang/Parse/Parser.h
M clang/lib/Parse/ParseDecl.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
A clang/test/AST/attr-swift_newtype.m
M clang/test/Misc/pragma-attribute-supported-attributes-list.test
A clang/test/SemaObjC/attr-swift_newtype.m
Log Message:
-----------
Sema: add support for `__attribute__((__swift_newtype__))`
Add the `swift_newtype` attribute which allows a type definition to be
imported into Swift as a new type. The imported type must be either an
enumerated type (enum) or an object type (struct).
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/D87652
Reviewed By: Aaron Ballman
More information about the All-commits
mailing list