]> granicus.if.org Git - clang/commit
Add support for attributes on @implementations in Objective-C
authorErik Pilkington <erik.pilkington@gmail.com>
Thu, 11 Apr 2019 17:55:30 +0000 (17:55 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Thu, 11 Apr 2019 17:55:30 +0000 (17:55 +0000)
commita12e071469fbd8ab16d06f7c99543cfec92284ee
tree7aab24b2f35b24f2edb64cea780948e42b99cb4d
parent0bbdb288ca016f409061cb4d453cb8af90e28e07
Add support for attributes on @implementations in Objective-C

We want to make objc_nonlazy_class apply to implementations, but ran into this.
There doesn't seem to be any reason that this isn't supported.

Differential revision: https://reviews.llvm.org/D60542

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358200 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParseObjc.cpp
lib/Parse/Parser.cpp
lib/Sema/SemaDeclObjC.cpp
test/FixIt/fixit-pragma-attribute.cpp
test/Misc/pragma-attribute-supported-attributes-list.test
test/Parser/attributes.mm
test/Parser/objc-implementation-attrs.m [new file with mode: 0644]
test/Parser/placeholder-recovery.m
test/Sema/pragma-attribute-strict-subjects.c
test/SemaObjC/attr-objc-non-lazy.m
test/SemaObjC/objc-asm-attribute-neg-test.m