]> granicus.if.org Git - clang/commit
Objective-C diagnostics: isObjCNSObjectType should check through AttributedType.
authorManman Ren <manman.ren@gmail.com>
Mon, 15 Aug 2016 21:05:00 +0000 (21:05 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 15 Aug 2016 21:05:00 +0000 (21:05 +0000)
commit5b5d415d6c948b88c2d78644fe7183f32c3f91e0
treeab699d79c5a49429fd4864c81c33656cc9451bd2
parente0242d84df1df4428f9e05a115a516ba86933cc7
Objective-C diagnostics: isObjCNSObjectType should check through AttributedType.

For the following example:
typedef __attribute__((NSObject)) CGColorRef ColorAttrRef;
@property (strong, nullable) ColorAttrRef color;
The property type should be ObjC NSObject type and the compiler should not emit
error: property with 'retain (or strong)' attribute must be of object type

rdar://problem/27747154

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278742 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Type.cpp
test/SemaObjC/nsobject-attribute.m