diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-11-29 14:57:58 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-11-29 14:57:58 +0000 |
commit | 80469038c0c420f5f8a4cd580b6f9e69e80ab7f2 (patch) | |
tree | 720d3f46f37e7abf70fd9cde61a2827168265e1d /clang/lib/Sema/SemaDeclAttr.cpp | |
parent | dc5809021372a8cba1e085b80d263bc101b49a70 (diff) | |
download | bcm5719-llvm-80469038c0c420f5f8a4cd580b6f9e69e80ab7f2.tar.gz bcm5719-llvm-80469038c0c420f5f8a4cd580b6f9e69e80ab7f2.zip |
Enables support for custom subject lists for attributes. As a testbed, uses the custom subject for the ibaction attribute.
llvm-svn: 195960
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index f7d8fa7c417..f49ea11faae 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -1119,16 +1119,8 @@ static void handlePackedAttr(Sema &S, Decl *D, const AttributeList &Attr) { } static void handleIBAction(Sema &S, Decl *D, const AttributeList &Attr) { - // The IBAction attributes only apply to instance methods. - if (ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) - if (MD->isInstanceMethod()) { - D->addAttr(::new (S.Context) - IBActionAttr(Attr.getRange(), S.Context, - Attr.getAttributeSpellingListIndex())); - return; - } - - S.Diag(Attr.getLoc(), diag::warn_attribute_ibaction) << Attr.getName(); + D->addAttr(::new (S.Context) IBActionAttr(Attr.getRange(), S.Context, + Attr.getAttributeSpellingListIndex())); } static bool checkIBOutletCommon(Sema &S, Decl *D, const AttributeList &Attr) { |