Sema: support __declspec(dll*) on ObjC interfaces
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 15 Jul 2016 20:41:10 +0000 (20:41 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 15 Jul 2016 20:41:10 +0000 (20:41 +0000)
commit511f2e5a8955c90d6b9c176c31af2ec3add395fa
treec598856565811c6447e5ad46de909aa5f57b4519
parent4278047f64c9a364a5af61fbed785db3bdcee206
Sema: support __declspec(dll*) on ObjC interfaces

Extend the __declspec(dll*) attribute to cover ObjC interfaces.  This was
requested by Microsoft for their ObjC support.  Cover both import and export.
This only adds the semantic analysis portion of the support, code-generation
still remains outstanding.  Add some basic initial documentation on the
attributes that were previously empty.  Tweak the previous tests to use the
relative expected-warnings to make the tests easier to read.

llvm-svn: 275610
13 files changed:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/AttributeList.h
clang/test/Sema/dllexport.c
clang/test/Sema/dllimport.c
clang/test/SemaCXX/dllexport.cpp
clang/test/SemaCXX/dllimport.cpp
clang/test/SemaObjC/dllexport.m [new file with mode: 0644]
clang/test/SemaObjC/dllimport.m [new file with mode: 0644]
clang/test/SemaObjCXX/dllexport.mm [new file with mode: 0644]
clang/test/SemaObjCXX/dllimport.mm [new file with mode: 0644]
clang/utils/TableGen/ClangAttrEmitter.cpp