]> granicus.if.org Git - clang/commit
ObjC properties: consider ownership of properties from protocols when synthesizing.
authorDouglas Gregor <dgregor@apple.com>
Fri, 18 Dec 2015 00:52:31 +0000 (00:52 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 18 Dec 2015 00:52:31 +0000 (00:52 +0000)
commit1a3cb157e1a1fc24fc64d782b5c54b03f5c6313f
tree8388bd4abc078db7ebe131cddc0a26bf839ad29f
parent3c6aebac5161b5a3e6e495fdea3ac39e1af3815d
ObjC properties: consider ownership of properties from protocols when synthesizing.

When determining whether ownership was explicitly written for a
property when it is being synthesized, also consider that the original
property might have come from a protocol. Fixes rdar://problem/23931441.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255943 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaObjCProperty.cpp
test/SemaObjC/arc-property-decl-attrs.m