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)
commit848b378c986629f3fce061cf71fec40fa112a086
treeac16862f6cb37cb733b2b23af85a538d04305a25
parentdd81efed3dd160a634137661a215704fd373d41f
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275610 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/AttributeList.h
test/Sema/dllexport.c
test/Sema/dllimport.c
test/SemaCXX/dllexport.cpp
test/SemaCXX/dllimport.cpp
test/SemaObjC/dllexport.m [new file with mode: 0644]
test/SemaObjC/dllimport.m [new file with mode: 0644]
test/SemaObjCXX/dllexport.mm [new file with mode: 0644]
test/SemaObjCXX/dllimport.mm [new file with mode: 0644]
utils/TableGen/ClangAttrEmitter.cpp